diff options
| -rw-r--r-- | arch/arm/boot/compressed/Makefile | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index 53faa9063a03..541944894734 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile | |||
| @@ -79,16 +79,13 @@ endif | |||
| 79 | EXTRA_CFLAGS := -fpic -fno-builtin | 79 | EXTRA_CFLAGS := -fpic -fno-builtin |
| 80 | EXTRA_AFLAGS := -Wa,-march=all | 80 | EXTRA_AFLAGS := -Wa,-march=all |
| 81 | 81 | ||
| 82 | # Supply ZRELADDR, INITRD_PHYS and PARAMS_PHYS to the decompressor via | 82 | # Supply ZRELADDR and PARAMS_PHYS to the decompressor via linker symbols. We |
| 83 | # linker symbols. We only define initrd_phys and params_phys if the | 83 | # only define params_phys if the machine class defined the corresponding |
| 84 | # machine class defined the corresponding makefile variable. | 84 | # makefile variable. |
| 85 | LDFLAGS_vmlinux := --defsym zreladdr=$(ZRELADDR) | 85 | LDFLAGS_vmlinux := --defsym zreladdr=$(ZRELADDR) |
| 86 | ifeq ($(CONFIG_CPU_ENDIAN_BE8),y) | 86 | ifeq ($(CONFIG_CPU_ENDIAN_BE8),y) |
| 87 | LDFLAGS_vmlinux += --be8 | 87 | LDFLAGS_vmlinux += --be8 |
| 88 | endif | 88 | endif |
| 89 | ifneq ($(INITRD_PHYS),) | ||
| 90 | LDFLAGS_vmlinux += --defsym initrd_phys=$(INITRD_PHYS) | ||
| 91 | endif | ||
| 92 | ifneq ($(PARAMS_PHYS),) | 89 | ifneq ($(PARAMS_PHYS),) |
| 93 | LDFLAGS_vmlinux += --defsym params_phys=$(PARAMS_PHYS) | 90 | LDFLAGS_vmlinux += --defsym params_phys=$(PARAMS_PHYS) |
| 94 | endif | 91 | endif |
