summaryrefslogtreecommitdiff
path: root/target/linux/patches/2.6.39.4/arm-statcmd.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-11-17 12:51:22 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-11-17 12:51:22 +0100
commit9f02979caebb6e900fe101a257d8e6c344a7a173 (patch)
tree350b808ae23e8abb4ff08d472b76104a89e1f35a /target/linux/patches/2.6.39.4/arm-statcmd.patch
parentafb9908771db100ee97bb933fcca850c4f49af5a (diff)
parentee3c54b1570b9dd8ea900a11d496ced1ad1ae356 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'target/linux/patches/2.6.39.4/arm-statcmd.patch')
-rw-r--r--target/linux/patches/2.6.39.4/arm-statcmd.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/patches/2.6.39.4/arm-statcmd.patch b/target/linux/patches/2.6.39.4/arm-statcmd.patch
new file mode 100644
index 000000000..3aed60cbc
--- /dev/null
+++ b/target/linux/patches/2.6.39.4/arm-statcmd.patch
@@ -0,0 +1,12 @@
+diff -Nur linux-2.6.39-rc6.orig/arch/arm/boot/compressed/Makefile linux-2.6.39-rc6/arch/arm/boot/compressed/Makefile
+--- linux-2.6.39-rc6.orig/arch/arm/boot/compressed/Makefile 2011-05-04 04:59:13.000000000 +0200
++++ linux-2.6.39-rc6/arch/arm/boot/compressed/Makefile 2011-05-10 10:35:34.000000000 +0200
+@@ -99,7 +99,7 @@
+ asflags-y := -Wa,-march=all
+
+ # Provide size of uncompressed kernel to the decompressor via a linker symbol.
+-LDFLAGS_vmlinux = --defsym _image_size=$(shell stat -c "%s" $(obj)/../Image)
++LDFLAGS_vmlinux = --defsym _image_size=$(shell if stat -qs .>/dev/null 2>&1;then statcmd='stat -f %z';else statcmd='stat -c %s';fi; $$statcmd "%s" $(obj)/../Image)
+ # Supply ZRELADDR to the decompressor via a linker symbol.
+ ifneq ($(CONFIG_AUTO_ZRELADDR),y)
+ LDFLAGS_vmlinux += --defsym zreladdr=$(ZRELADDR)