uboot-bcm4908: include SoC in output files
authorRafał Miłecki <rafal@milecki.pl>
Wed, 20 Jul 2022 11:47:06 +0000 (13:47 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Mon, 25 Jul 2022 16:13:12 +0000 (18:13 +0200)
This fixes problem of overwriting BCM4908 U-Boot and DTB files by
BCM4912 ones. That bug didn't allow booting BCM4908 devices.

Fixes: f4c2dab544ec2 ("uboot-bcm4908: add BCM4912 build")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
package/boot/uboot-bcm4908/Makefile
target/linux/bcm4908/image/bootfs-bcm4908.its
target/linux/bcm4908/image/bootfs-bcm4912.its

index d6b689c9ce1b11cb12f8b2933c2d581ed6c031a7..7eacd23a02ca4e838c7bf052d87fa47d7fe8fc97 100644 (file)
@@ -23,11 +23,13 @@ endef
 define U-Boot/bcm4908
   NAME:=Broadcom's BCM4908
   UBOOT_CONFIG:=bcm94908
+  SOC:=bcm4908
 endef
 
 define U-Boot/bcm4912
   NAME:=Broadcom's BCM4912
   UBOOT_CONFIG:=bcm94912
+  SOC:=bcm4912
 endef
 
 UBOOT_TARGETS := \
@@ -46,8 +48,8 @@ endef
 
 define Build/InstallDev
        $(INSTALL_DIR) $(STAGING_DIR_IMAGE)/u-boot
-       $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(UBOOT_IMAGE) $(STAGING_DIR_IMAGE)/u-boot/
-       $(INSTALL_BIN) $(PKG_BUILD_DIR)/u-boot.dtb $(STAGING_DIR_IMAGE)/u-boot/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(UBOOT_IMAGE) $(STAGING_DIR_IMAGE)/u-boot/u-boot-$(SOC).bin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/u-boot.dtb $(STAGING_DIR_IMAGE)/u-boot/u-boot-$(SOC).dtb
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/arch/arm/dts/*.dtb $(STAGING_DIR_IMAGE)/u-boot/
 endef
 
index b80cbd529e2d60700dd3ff2ea0e179b7491bec84..d5ac21fd6a44f2f303c3e9a4cea4e99e54cbdff1 100644 (file)
@@ -5,11 +5,11 @@
 / {
        images {
                uboot {
-                       data = /incbin/("${images_dir}/u-boot/u-boot-nodtb.bin");
+                       data = /incbin/("${images_dir}/u-boot/u-boot-bcm4908.bin");
                };
 
                fdt_uboot {
-                       data = /incbin/("${images_dir}/u-boot/u-boot.dtb");
+                       data = /incbin/("${images_dir}/u-boot/u-boot-bcm4908.dtb");
                };
 
                fdt_uboot_RAX220 {
index 7c91144a185f582466d8383f5411920fbcae24c8..6f4548956c57ccc697b9ff2543aea46737037f24 100644 (file)
@@ -5,11 +5,11 @@
 / {
        images {
                uboot {
-                       data = /incbin/("${images_dir}/u-boot/u-boot-nodtb.bin");
+                       data = /incbin/("${images_dir}/u-boot/u-boot-bcm4912.bin");
                };
 
                fdt_uboot {
-                       data = /incbin/("${images_dir}/u-boot/u-boot.dtb");
+                       data = /incbin/("${images_dir}/u-boot/u-boot-bcm4912.dtb");
                };
 
                fdt_GTAX6000 {