diff options
Diffstat (limited to 'arch/powerpc/Makefile')
-rw-r--r-- | arch/powerpc/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index aacf629c1a9f..1a54a3b3a3fa 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile | |||
@@ -164,6 +164,17 @@ PHONY += $(BOOT_TARGETS) | |||
164 | 164 | ||
165 | boot := arch/$(ARCH)/boot | 165 | boot := arch/$(ARCH)/boot |
166 | 166 | ||
167 | ifeq ($(CONFIG_RELOCATABLE),y) | ||
168 | quiet_cmd_relocs_check = CALL $< | ||
169 | cmd_relocs_check = perl $< "$(OBJDUMP)" "$(obj)/vmlinux" | ||
170 | |||
171 | PHONY += relocs_check | ||
172 | relocs_check: arch/powerpc/relocs_check.pl vmlinux | ||
173 | $(call cmd,relocs_check) | ||
174 | |||
175 | zImage: relocs_check | ||
176 | endif | ||
177 | |||
167 | $(BOOT_TARGETS): vmlinux | 178 | $(BOOT_TARGETS): vmlinux |
168 | $(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@) | 179 | $(Q)$(MAKE) ARCH=ppc64 $(build)=$(boot) $(patsubst %,$(boot)/%,$@) |
169 | 180 | ||