[LEDE-DEV] [PATCH 1/2] uboot-at91: remove sama5 platform

Sandeep Sheriker Mallikarjun sandeepsheriker.mallikarjun at microchip.com
Wed Oct 4 16:14:21 PDT 2017


configuring a legacy(i.e sam9x soc) device as a subtarget in menuconfig.
The bootloader menu shows both legacy and sama5 u-boot targets and if
user selects sama5 as uboot target for legacy devices. The build fails
due to incorrect cpu flags. To avoid these build error removing sama5
platform from uboot-at91.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun at microchip.com>
---
 package/boot/uboot-at91/Makefile | 54 ++--------------------------------------
 1 file changed, 2 insertions(+), 52 deletions(-)

diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile
index 8dc5e3e..6a806ff 100644
--- a/package/boot/uboot-at91/Makefile
+++ b/package/boot/uboot-at91/Makefile
@@ -17,71 +17,21 @@ include $(INCLUDE_DIR)/package.mk
 
 define U-Boot/Default
   BUILD_TARGET:=at91
+  BUILD_SUBTARGET:=legacy
   UBOOT_IMAGE:=u-boot.bin boot.bin
 endef
 
 define U-Boot/at91sam9m10g45ek_nandflash
   NAME:=AT91SAM9M10G45-EK board (NandFlash)
-  BUILD_SUBTARGET:=legacy
 endef
 
 define U-Boot/at91sam9x5ek_nandflash
   NAME:=AT91SAM9X5-EK board (NandFlash)
-  BUILD_SUBTARGET:=legacy
-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 := \
 	at91sam9m10g45ek_nandflash \
-	at91sam9x5ek_nandflash \
-    sama5d3_xplained_nandflash \
-    sama5d3_xplained_mmc \
-    sama5d2_xplained_mmc \
-    sama5d2_xplained_spiflash \
-    sama5d4_xplained_mmc \
-    sama5d4_xplained_spiflash \
-    sama5d4_xplained_nandflash
+	at91sam9x5ek_nandflash
 
 define Build/Compile
 	+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
-- 
2.7.4




More information about the Lede-dev mailing list