summaryrefslogtreecommitdiff
path: root/kexec_test
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2006-10-06 12:27:58 +0900
committerSimon Horman <horms@verge.net.au>2006-10-06 12:46:16 +0900
commitba686313d496ee25db69803ef7e5bfb1e07eb841 (patch)
tree91ba8a16a03ed3710c16a01c9cf413d57983c371 /kexec_test
parent103c946e39eb9dd57ccbda20ac12ccb01f883c17 (diff)
build-cpp-and-ld-flags
[BUILD] CPPFLAGS, CFLAGS and LDFLAGS fixes * Set internal CPPFLAGS as EXTRA_CPPFLAGS, CFLAGS as EXTRA_CFLAGS, and LDFLAGS as EXTRA_LDFLAGS - Don't overwrite CPPFLAGS, LDLFAGS or CFLAGS from the environment - They are irrelevant for BUILD_CC - When cross-compiling for a ppc64 host on a non-ppc64 host, EXTRA_CFLAGS, which is included in BUILD_CPPFLAGS contains -mcall-aixdesc, which does not work on i386 at least * Use LDFLAGS when linking kexec - Append rather than overwrite in purgatory/Makefile The purpose of these changes is three-fold. * CPPFLAGS, CFLAGS and LDFLAGS from the environment really ought to be honoured. For one thing; * Without these changes, the confgiure taget in the toplevel makefile can't work * Without these changes, cross compiling does not work - well, I can't work out how to get it to work anyway. Signed-Off-By: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec_test')
-rw-r--r--kexec_test/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/kexec_test/Makefile b/kexec_test/Makefile
index 3e932d5..70542de 100644
--- a/kexec_test/Makefile
+++ b/kexec_test/Makefile
@@ -15,11 +15,11 @@ include $(KEXEC_TEST_DEPS)
$(KEXEC_TEST_S_DEPS): $(OBJDIR)/%.d: %.S
mkdir -p $(@D)
- $(CC) -m32 $(CFLAGS) -M $< | sed -e 's|$(patsubst %.d,%.o,$(@F))|$(patsubst %.d,%.o,$(@))|' > $@
+ $(CC) -m32 $(CFLAGS) $(EXTRA_CFLAGS) -M $< | sed -e 's|$(patsubst %.d,%.o,$(@F))|$(patsubst %.d,%.o,$(@))|' > $@
$(KEXEC_TEST_S_TEMPS): $(OBJDIR)/%.s: %.S
mkdir -p $(@D)
- $(CPP) $(CPPFLAGS) -DRELOC=$(RELOC) $< > $@
+ $(CPP) $(CPPFLAGS) $(EXTRA_CPPFLAGS) -DRELOC=$(RELOC) $< > $@
$(KEXEC_TEST_S_OBJS): $(OBJDIR)/%.o: $(OBJDIR)/%.s
mkdir -p $(@D)