|
@@ -81,7 +81,7 @@ ZTEXTADDR := 0
|
|
|
ZBSSADDR := ALIGN(8)
|
|
|
endif
|
|
|
|
|
|
-SEDFLAGS = s/TEXT_START/$(ZTEXTADDR)/;s/BSS_START/$(ZBSSADDR)/
|
|
|
+CPPFLAGS_vmlinux.lds := -DTEXT_START="$(ZTEXTADDR)" -DBSS_START="$(ZBSSADDR)"
|
|
|
|
|
|
suffix_$(CONFIG_KERNEL_GZIP) = gzip
|
|
|
suffix_$(CONFIG_KERNEL_LZO) = lzo
|
|
@@ -114,7 +114,7 @@ targets := vmlinux vmlinux.lds \
|
|
|
# Make sure files are removed during clean
|
|
|
extra-y += piggy.gzip piggy.lzo piggy.lzma piggy.xzkern piggy.lz4 \
|
|
|
lib1funcs.S ashldi3.S bswapsdi2.S $(libfdt) $(libfdt_hdrs) \
|
|
|
- hyp-stub.S vmlinux.lds.S
|
|
|
+ hyp-stub.S
|
|
|
|
|
|
ifeq ($(CONFIG_FUNCTION_TRACER),y)
|
|
|
ORIG_CFLAGS := $(KBUILD_CFLAGS)
|
|
@@ -199,8 +199,5 @@ CFLAGS_font.o := -Dstatic=
|
|
|
$(obj)/font.c: $(FONTC)
|
|
|
$(call cmd,shipped)
|
|
|
|
|
|
-$(obj)/vmlinux.lds.S: $(obj)/vmlinux.lds.in arch/arm/boot/Makefile $(KCONFIG_CONFIG)
|
|
|
- @sed "$(SEDFLAGS)" < $< > $@
|
|
|
-
|
|
|
$(obj)/hyp-stub.S: $(srctree)/arch/$(SRCARCH)/kernel/hyp-stub.S
|
|
|
$(call cmd,shipped)
|