From 6e5419b7acc217c83d410775ae3d71d37efdaa91 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 28 Mar 2010 22:40:17 +0000 Subject: [PATCH] uboot-ifxmips: fix portability bug SVN-Revision: 20560 --- .../patches/001-portability.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 package/uboot-ifxmips/patches/001-portability.patch diff --git a/package/uboot-ifxmips/patches/001-portability.patch b/package/uboot-ifxmips/patches/001-portability.patch new file mode 100644 index 000000000000..02af987a410a --- /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 ; \ -- 2.30.2