[LEDE-DEV] [PATCH 2/2] uboot-at91_sama5: Add New package uboot-at91_sama5
Sandeep Sheriker Mallikarjun
sandeepsheriker.mallikarjun at microchip.com
Wed Oct 4 16:14:22 PDT 2017
Added new package uboot-at91_sama5 to build uboot binaries for
Microchip(Atmel AT91) sama5 socs.
Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun at microchip.com>
---
package/boot/uboot-at91_sama5/Makefile | 82 ++++++++++++++++++++++++++++++++++
1 file changed, 82 insertions(+)
create mode 100644 package/boot/uboot-at91_sama5/Makefile
diff --git a/package/boot/uboot-at91_sama5/Makefile b/package/boot/uboot-at91_sama5/Makefile
new file mode 100644
index 0000000..6e63064
--- /dev/null
+++ b/package/boot/uboot-at91_sama5/Makefile
@@ -0,0 +1,82 @@
+#
+# Copyright (C) 2016 Microchip Technology Inc.
+# <Sandeepsheriker.mallikarjun at microchip.com>
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_VERSION:=2017.07
+PKG_RELEASE:=1
+
+PKG_HASH:=5374bfdc8acb9a38c025371b1ff20f45e7533668e84e685d0df5d9e7c0e4feff
+
+include $(INCLUDE_DIR)/u-boot.mk
+include $(INCLUDE_DIR)/package.mk
+
+define U-Boot/Default
+ BUILD_TARGET:=at91
+ BUILD_SUBTARGET:=sama5
+ UBOOT_IMAGE:=u-boot.bin boot.bin
+endef
+
+define uboot/sama5d3_xplained_nandflash
+ TITLE:=U-Boot for the SAMA5D3 Xplained board (NandFlash)
+ BUILD_SUBTARGET:=sama5
+ BUILD_DEVICES:=at91-sama5d3_xplained
+endef
+
+define uboot/sama5d3_xplained_mmc
+ TITLE:=U-Boot for the SAMA5D3 Xplained board (SDcard)
+ BUILD_SUBTARGET:=sama5
+ BUILD_DEVICES:=at91-sama5d3_xplained
+endef
+
+define uboot/sama5d2_xplained_spiflash
+ TITLE:=U-Boot for the SAMA5D2 Xplained board (SPI Flash)
+ BUILD_SUBTARGET:=sama5
+ BUILD_DEVICES:=at91-sama5d2_xplained
+endef
+
+define uboot/sama5d2_xplained_mmc
+ TITLE:=U-Boot for the SAMA5D2 Xplained board (SDcard/EMMC)
+ BUILD_SUBTARGET:=sama5
+ BUILD_DEVICES:=at91-sama5d2_xplained
+endef
+
+define uboot/sama5d4_xplained_spiflash
+ TITLE:=U-Boot for the SAMA5D4 Xplained board (SPI Flash)
+ BUILD_SUBTARGET:=sama5
+ BUILD_DEVICES:=at91-sama5d4_xplained
+endef
+
+define uboot/sama5d4_xplained_mmc
+ TITLE:=U-Boot for the SAMA5D4 Xplained board (SDcard)
+ BUILD_SUBTARGET:=sama5
+ BUILD_DEVICES:=at91-sama5d4_xplained
+endef
+
+define uboot/sama5d4_xplained_nandflash
+ TITLE:=U-Boot for the SAMA5D4 Xplained board (NandFlash)
+ BUILD_SUBTARGET:=sama5
+ BUILD_DEVICES:=at91-sama5d4_xplained
+endef
+
+UBOOT_TARGETS := \
+ sama5d3_xplained_nandflash \
+ sama5d3_xplained_mmc \
+ sama5d2_xplained_mmc \
+ sama5d2_xplained_spiflash \
+ sama5d4_xplained_mmc \
+ sama5d4_xplained_spiflash \
+ sama5d4_xplained_nandflash
+
+define Build/Compile
+ +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
+ CROSS_COMPILE=$(TARGET_CROSS) \
+ KCFLAGS="$(filter-out -fstack-protector, $(TARGET_CFLAGS))"
+endef
+
+$(eval $(call BuildPackage/U-Boot))
--
2.7.4
More information about the Lede-dev
mailing list