Use target CC and LD to build kdump and kexec_test.
Subsystems (3)
PATCH 1/1 Use target CC and LD to build kdump and kexec_test.
Signed-off-by Jamey Sharp <[email protected]>
---
Another generic patch extracted from my Windows porting work.
I think this is correct, but review would be appreciated.
Makefile.in | 1 + configure.ac | 2 ++ kdump/Makefile | 1 + kexec_test/Makefile | 4 ++-- 4 files changed, 6 insertions(+), 2 deletions(-)
Makefile.in +1 -0
@@ -37,6 +37,7 @@ AR = @AR@ BUILD_CC = @BUILD_CC@ BUILD_CFLAGS = @BUILD_CFLAGS@ TARGET_CC = @TARGET_CC@ +TARGET_LD = @TARGET_LD@ TARGET_CFLAGS = @TARGET_CFLAGS@
configure.ac +2 -0
@@ -87,6 +87,7 @@ fi dnl Find compiler for target if test "${target}" != "${host}" ; then AC_CHECK_PROGS(TARGET_CC, [${target_alias}-gcc ${target}-gcc gcc]) + AC_CHECK_PROGS(TARGET_LD, [${target_alias}-ld ${target}-ld ld]) else TARGET_CC="$CC" fi
@@ -148,6 +149,7 @@ dnl ---Output variables... AC_SUBST([BUILD_CC]) AC_SUBST([BUILD_CFLAGS]) AC_SUBST([TARGET_CC]) +AC_SUBST([TARGET_LD]) AC_SUBST([TARGET_CFLAGS]) AC_SUBST([ASFLAGS])
kdump/Makefile +1 -0
@@ -15,6 +15,7 @@ clean += $(KDUMP_OBJS) $(KDUMP_DEPS) $(KDUMP) $(KDUMP_MANPAGE) -include $(KDUMP_DEPS) +$(KDUMP): CC=$(TARGET_CC) $(KDUMP): $(KDUMP_OBJS) @$(MKDIR) -p $(@D) $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ $(KDUMP_OBJS)
kexec_test/Makefile +2 -2
@@ -26,6 +26,7 @@ clean += $(KEXEC_TEST_OBJS) $(KEXEC_TEST_DEPS) $(KEXEC_TEST) -include $(KEXEC_TEST_DEPS) +$(KEXEC_TEST): CC=$(TARGET_CC) $(KEXEC_TEST): CPPFLAGS+=-DRELOC=$(RELOC) $(KEXEC_TEST): ASFLAGS+=-m32 #$(KEXEC_TEST): LDFLAGS=-m32 -Wl,-e -Wl,_start -Wl,-Ttext -Wl,$(RELOC) \
@@ -34,7 +35,6 @@ $(KEXEC_TEST): LDFLAGS=-melf_i386 -e _start -Ttext $(RELOC) $(KEXEC_TEST): $(KEXEC_TEST_OBJS) mkdir -p $(@D) - #$(LINK.o) -o $@ $^ - $(LD) $(LDFLAGS) -o $@ $^ + $(TARGET_LD) $(LDFLAGS) -o $@ $^ endif
Signature · 7 lines
1.5.4.1 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Quoted 5 lines · Jamey Sharp
Signed-off-by Jamey Sharp <[email protected]>---
Another generic patch extracted from my Windows porting work.I think this is correct, but review would be appreciated.
Thanks, that looks correct to me. Applied.
Signature · 7 lines
Horms _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec