odroid-firmware: add new package
authorStijn Tintel <stijn@linux-ipv6.be>
Mon, 8 Oct 2018 21:54:23 +0000 (00:54 +0300)
committerStijn Tintel <stijn@linux-ipv6.be>
Wed, 3 Aug 2022 09:59:14 +0000 (12:59 +0300)
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
package/firmware/odroid/Makefile [new file with mode: 0644]

diff --git a/package/firmware/odroid/Makefile b/package/firmware/odroid/Makefile
new file mode 100644 (file)
index 0000000..4839118
--- /dev/null
@@ -0,0 +1,43 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Copyright (C) 2017 - 2021 Stijn Tintel <stijn@linux-ipv6.be>
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=odroid-firmware
+PKG_VERSION:=2017-02-24
+PKG_RELEASE:=1
+
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=https://github.com/hardkernel/u-boot.git
+PKG_SOURCE_VERSION:=205c7b3259559283161703a1a200b787c2c445a5
+PKG_MIRROR_HASH:=
+
+PKG_MAINTAINER:=Stijn Tintel <stijn@linux-ipv6.be>
+
+PKG_FLAGS:=nonshared
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/odroid-firmware-c2
+  SECTION:=firmware
+  CATEGORY:=Firmware
+  TITLE:=Odroid C2 firmware
+  DEPENDS:=@TARGET_mesongx
+endef
+
+define Build/Compile
+
+endef
+
+define Package/odroid-firmware-c2/install
+       $(INSTALL_DIR) $(STAGING_DIR_IMAGE)/odroidc2
+       $(CP) \
+               $(PKG_BUILD_DIR)/fip/gxb/{bl2.package,bl30{,1}.bin} \
+               $(STAGING_DIR_IMAGE)/odroidc2
+       $(CP) \
+               $(PKG_BUILD_DIR)/sd_fuse/bl1.bin.hardkernel \
+               $(STAGING_DIR_IMAGE)/odroidc2
+endef
+
+$(eval $(call BuildPackage,odroid-firmware-c2))