diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2007-12-13 16:18:53 +0900 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2007-12-19 14:50:07 +0900 |
commit | adf85cbc1756e56c1f52f56235a3c08b3c5b8e05 (patch) | |
tree | 480e2d89501d7e51f3c7abf3291930932c3a3371 /purgatory/arch | |
parent | ac12ceecf15f637e024e6be9a030497e732a74eb (diff) |
Build system simplification/standardisation
This change makes kexec-tools work more like a standard configure-make-
make-install-type project:
* Remove $(OBJDIR) stuff. To do an out-of-tree build, just configure
from a different directory.
* Use the implicit Makefile rules more, and just edit the compiler
flags for specific targets.
* Simplify compiler/linker flags - no need for EXTRA_*
* Add TARGET_CC, and improve checks for BUILD_CC too.
* Set arch-specific flags in arch-specific makefiles, not conditional
on $(ARCH).
* Generate dependency files in the main compile, rather than as a
separate step.
* Don't #include sha256.c, but re-build it into the purgatory.
Still a work-in-progress.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'purgatory/arch')
-rw-r--r-- | purgatory/arch/ia64/Makefile | 3 | ||||
-rw-r--r-- | purgatory/arch/ppc64/Makefile | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/purgatory/arch/ia64/Makefile b/purgatory/arch/ia64/Makefile index 953b3ee..12d9f75 100644 --- a/purgatory/arch/ia64/Makefile +++ b/purgatory/arch/ia64/Makefile @@ -1,9 +1,10 @@ # # Purgatory ia64 # -PCFLAGS += -ffixed-r28 PURGATORY_S_SRCS+= purgatory/arch/ia64/entry.S PURGATORY_C_SRCS+= purgatory/arch/ia64/purgatory-ia64.c PURGATORY_C_SRCS+= purgatory/arch/ia64/console-ia64.c PURGATORY_C_SRCS+= purgatory/arch/ia64/vga.c +$(PURGATORY): CFLAGS += -ffixed-r28 + diff --git a/purgatory/arch/ppc64/Makefile b/purgatory/arch/ppc64/Makefile index 0406278..792a0b3 100644 --- a/purgatory/arch/ppc64/Makefile +++ b/purgatory/arch/ppc64/Makefile @@ -2,9 +2,11 @@ # Purgatory ppc # -PURGATORY_S_SRCS+= purgatory/arch/ppc64/v2wrap.S +PURGATORY_S_SRCS += purgatory/arch/ppc64/v2wrap.S PURGATORY_C_SRCS += purgatory/arch/ppc64/purgatory-ppc64.c PURGATORY_C_SRCS += purgatory/arch/ppc64/console-ppc64.c PURGATORY_C_SRCS += purgatory/arch/ppc64/crashdump_backup.c -PCFLAGS += -m64 -mcall-aixdesc +$(PURGATORY): CFLAGS += -m64 -mcall-aixdesc +$(PURGATORY): ASFLAGS += -m64 -mcall-aixdesc +$(PURGATORY): LDFLAGS += -melf64ppc |