aboutsummaryrefslogtreecommitdiffstats
path: root/package/uboot-ifxmips/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-03-28 22:40:17 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-03-28 22:40:17 +0000
commitb4197c908d09b9bd00e01d8ac6514709f5dc193e (patch)
treeccb4a04cee1a74adfcde78aea6f2d4c5d10891fe /package/uboot-ifxmips/patches
parente287c055e8c19529225089462a23d87786358f4d (diff)
downloadupstream-b4197c908d09b9bd00e01d8ac6514709f5dc193e.tar.gz
upstream-b4197c908d09b9bd00e01d8ac6514709f5dc193e.tar.bz2
upstream-b4197c908d09b9bd00e01d8ac6514709f5dc193e.zip
uboot-ifxmips: fix portability bug
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20560 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/uboot-ifxmips/patches')
-rw-r--r--package/uboot-ifxmips/patches/001-portability.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/uboot-ifxmips/patches/001-portability.patch b/package/uboot-ifxmips/patches/001-portability.patch
new file mode 100644
index 0000000000..02af987a41
--- /dev/null
+++ b/package/uboot-ifxmips/patches/001-portability.patch
@@ -0,0 +1,30 @@
+--- a/Makefile
++++ b/Makefile
+@@ -275,10 +275,10 @@ $(U_BOOT_NAND): $(NAND_SPL) $(obj)u-boot
+ cat nand_spl/u-boot-spl-16k.bin $(obj)u-boot.bin > $(obj)u-boot-nand.bin
+
+ version:
+- @echo -n "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
+- echo -n "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
+- echo -n $(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
+- $(TOPDIR)) >> $(VERSION_FILE); \
++ @printf "#define U_BOOT_VERSION \"U-Boot " > $(VERSION_FILE); \
++ printf "$(U_BOOT_VERSION)" >> $(VERSION_FILE); \
++ printf "$(shell $(CONFIG_SHELL) $(TOPDIR)/tools/setlocalversion \
++ $(TOPDIR))" >> $(VERSION_FILE); \
+ echo "\"" >> $(VERSION_FILE)
+
+ gdbtools:
+@@ -1593,10 +1593,10 @@ MPC8540EVAL_66_slave_config: unconf
+ @mkdir -p $(obj)include
+ @echo "" >$(obj)include/config.h ; \
+ if [ "$(findstring _33_,$@)" ] ; then \
+- echo -n "... 33 MHz PCI" ; \
++ printf "... 33 MHz PCI" ; \
+ else \
+ echo "#define CONFIG_SYSCLK_66M" >>$(obj)include/config.h ; \
+- echo -n "... 66 MHz PCI" ; \
++ printf "... 66 MHz PCI" ; \
+ fi ; \
+ if [ "$(findstring _slave_,$@)" ] ; then \
+ echo "#define CONFIG_PCI_SLAVE" >>$(obj)include/config.h ; \