From: Thomas Strobel <ts...@cam.ac.uk>

Fix compilation of uboot-lantiq for AVM Fritzbox 3370.

Signed-off-by: Thomas Strobel <ts...@cam.ac.uk>
---
Index: patches/0023-MIPS-add-support-for-Lantiq-XWAY-SoCs.patch
===================================================================
--- patches/0023-MIPS-add-support-for-Lantiq-XWAY-SoCs.patch    (revision
37814)
+++ patches/0023-MIPS-add-support-for-Lantiq-XWAY-SoCs.patch    (working
copy)
@@ -28,7 +28,7 @@
                $(BOARD_SIZE_CHECK)
  
 +$(obj)u-boot.bin.lzma:        $(obj)u-boot.bin
-+              cat $< | lzma -9 -f - > $@
++              cat $< | /usr/bin/lzma -9 -f - > $@
 +
 +$(obj)u-boot.bin.lzo: $(obj)u-boot.bin
 +              cat $< | lzop -9 -f - > $@
@@ -2837,22 +2837,22 @@
 +
 +      .section .rodata.__ltq_fw_phy11g_a1x
 +EXPORT(__ltq_fw_phy11g_a1x_start)
-+      .incbin "fw_phy11g_a1x.bin"
++      .incbin "vr9_phy11g_a1x.bin"
 +EXPORT(__ltq_fw_phy11g_a1x_end)
 +
 +      .section .rodata.__ltq_fw_phy11g_a2x
 +EXPORT(__ltq_fw_phy11g_a2x_start)
-+      .incbin "fw_phy11g_a2x.bin"
++      .incbin "vr9_phy11g_a2x.bin"
 +EXPORT(__ltq_fw_phy11g_a2x_end)
 +
 +      .section .rodata.__ltq_fw_phy22f_a1x
 +EXPORT(__ltq_fw_phy22f_a1x_start)
-+      .incbin "fw_phy22f_a1x.bin"
++      .incbin "vr9_phy22f_a1x.bin"
 +EXPORT(__ltq_fw_phy22f_a1x_end)
 +
 +      .section .rodata.__ltq_fw_phy22f_a2x
 +EXPORT(__ltq_fw_phy22f_a2x_start)
-+      .incbin "fw_phy22f_a2x.bin"
++      .incbin "vr9_phy22f_a2x.bin"
 +EXPORT(__ltq_fw_phy22f_a2x_end)
 --- /dev/null
 +++ b/arch/mips/cpu/mips32/vrx200/mem.c
Index: Makefile
===================================================================
--- Makefile    (revision 37814)
+++ Makefile    (working copy)
@@ -61,10 +61,27 @@
   SOC:=danube
 endef
 
+define uboot/fb3370_ram
+  TITLE:=U-Boot for AVM Fritzbox 3370 (RAM)
+  SOC:=vrx200
+endef
+
+define uboot/fb3370_eva
+  TITLE:=U-Boot for AVM Fritzbox 3370 (EVA)
+  SOC:=vrx200
+endef
+
+define uboot/fb3370_sfspl
+  TITLE:=U-Boot for AVM Fritzbox 3370 (SFSPL)
+  SOC:=vrx200
+endef
+
 UBOOTS:= \
        arv4519pw_ram arv4519pw_nor \
        arv7518pw_ram arv7518pw_nor \
-       gigasx76x_ram gigasx76x_nor
+       gigasx76x_ram gigasx76x_nor \
+       fb3370_ram fb3370_eva \
+       fb3370_sfspl
 
 define Package/uboot/template
 define Package/uboot-lantiq-$(1)
@@ -78,6 +95,12 @@
 endef
 endef
 
+define Package/uboot/install/firmware
+       $(CP) \
+               
$(TOPDIR)/target/linux/lantiq/files/firmware/lantiq/vr9_phy*.bin \
+         $(PKG_BUILD_DIR)/arch/mips/cpu/mips32/vrx200/
+endef
+
 define BuildUBootPackage
        $(eval $(uboot/Default))
        $(eval $(uboot/$(1)))
@@ -89,6 +112,7 @@
 endef
 
 define Build/Compile
+       $(call Package/uboot/install/firmware)
        $(MAKE) -C $(PKG_BUILD_DIR) CROSS_COMPILE=$(TARGET_CROSS)
 endef
---
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to