arm-statcmd.patch 821 B

123456789101112
  1. diff -Nur linux-2.6.39-rc6.orig/arch/arm/boot/compressed/Makefile linux-2.6.39-rc6/arch/arm/boot/compressed/Makefile
  2. --- linux-2.6.39-rc6.orig/arch/arm/boot/compressed/Makefile 2011-05-04 04:59:13.000000000 +0200
  3. +++ linux-2.6.39-rc6/arch/arm/boot/compressed/Makefile 2011-05-10 10:35:34.000000000 +0200
  4. @@ -99,7 +99,7 @@
  5. asflags-y := -Wa,-march=all
  6. # Provide size of uncompressed kernel to the decompressor via a linker symbol.
  7. -LDFLAGS_vmlinux = --defsym _image_size=$(shell stat -c "%s" $(obj)/../Image)
  8. +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)
  9. # Supply ZRELADDR to the decompressor via a linker symbol.
  10. ifneq ($(CONFIG_AUTO_ZRELADDR),y)
  11. LDFLAGS_vmlinux += --defsym zreladdr=$(ZRELADDR)