diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-04-13 13:38:45 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-04-13 13:38:45 +0000 |
commit | ec667208e67461068515f4502304f77dcd6803a4 (patch) | |
tree | e5ec52e7e124613dbca9f0254fbb00ca961431ba /target | |
parent | 93b8648b153836157f63850adea87b32f4b5cea8 (diff) | |
download | mtk-20170518-ec667208e67461068515f4502304f77dcd6803a4.zip mtk-20170518-ec667208e67461068515f4502304f77dcd6803a4.tar.gz mtk-20170518-ec667208e67461068515f4502304f77dcd6803a4.tar.bz2 |
kernel: fix arm compressed images build on mac os x
SVN-Revision: 31274
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/generic/patches-3.2/350-arm_compressed_size.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.2/350-arm_compressed_size.patch b/target/linux/generic/patches-3.2/350-arm_compressed_size.patch new file mode 100644 index 0000000..05d6618 --- /dev/null +++ b/target/linux/generic/patches-3.2/350-arm_compressed_size.patch @@ -0,0 +1,11 @@ +--- a/arch/arm/boot/compressed/Makefile ++++ b/arch/arm/boot/compressed/Makefile +@@ -127,7 +127,7 @@ ccflags-y := -fpic -fno-builtin -I$(obj) + asflags-y := -Wa,-march=all + + # Supply kernel BSS size to the decompressor via a linker symbol. +-KBSS_SZ = $(shell size $(obj)/../../../../vmlinux | awk 'END{print $$3}') ++KBSS_SZ = $(shell $(CROSS_COMPILE)size $(obj)/../../../../vmlinux | awk 'END{print $$3}') + LDFLAGS_vmlinux = --defsym _kernel_bss_size=$(KBSS_SZ) + # Supply ZRELADDR to the decompressor via a linker symbol. + ifneq ($(CONFIG_AUTO_ZRELADDR),y) |