diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2010-04-20 23:04:46 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-04-20 23:04:46 +0000 |
commit | 7b769126d0065e237eea2fcb0b8218781faf4d1c (patch) | |
tree | 1fea98917e80d44ec5aaf2b4f949cad044bbe748 /payloads/bayou/Makefile | |
parent | bda29314c25aca190071988ec9adfb42f4ba5114 (diff) |
bayou compile fixes
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5468 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/bayou/Makefile')
-rw-r--r-- | payloads/bayou/Makefile | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/payloads/bayou/Makefile b/payloads/bayou/Makefile index 0865ae1f65..4ad9d0de03 100644 --- a/payloads/bayou/Makefile +++ b/payloads/bayou/Makefile @@ -24,9 +24,14 @@ CONFIG_BUILTIN_LAR=y PBUILDER_CONFIG=bayou.xml BUILTIN_LAR=builtin.lar -LIBPAYLOAD_DIR := ../libpayload +export src := $(shell pwd) +export obj := $(src)/build -CC=gcc +LIBPAYLOAD_DIR := $(obj)/libpayload + +CC?=gcc +STRIP?=strip +OBJCOPY?=objcopy FFLAGS-y= FFLAGS-$(CONFIG_BUILTIN_LAR) += -DCONFIG_BUILTIN_LAR @@ -46,22 +51,22 @@ LPCC=$(LIBPAYLOAD_DIR)/bin/lpgcc bayou.elf: $(OBJECTS-y) $(LPCC) $(LDFLAGS) -m32 -o $@ $(OBJECTS-y) - @ strip $@ + @$(STRIP) $@ builtin-lar.o: $(BUILTIN_LAR) - @ objcopy -I binary -B i386 -O elf32-i386 $(BUILTIN_LAR) $@ + @$(OBJCOPY) -I binary -B i386 -O elf32-i386 $(BUILTIN_LAR) $@ builtin.lar: util/pbuilder/pbuilder - @ rm -f $@ + @rm -f $@ util/pbuilder/pbuilder -c $(PBUILDER_CONFIG) create $@ util/pbuilder/pbuilder: - make -C util/pbuilder + $(MAKE) -C util/pbuilder %.o: %.c $(LPCC) $(CFLAGS) -c -o $@ $< clean: rm -f *.o bayou.elf builtin.lar - make -C util/pbuilder clean + $(MAKE) -C util/pbuilder clean |