summaryrefslogtreecommitdiff
path: root/payloads/coreinfo/Makefile
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2016-04-16 00:54:23 +0800
committerMartin Roth <martinroth@google.com>2016-04-21 23:06:41 +0200
commit12b641d3dfde1e24536d61060d6e4fe99cc8ae62 (patch)
tree5e491cf90a8ba4bc6f693eec078c2574ffac4984 /payloads/coreinfo/Makefile
parenta4db050318c52ae59c8914c9bc9ae25e1e344238 (diff)
coreinfo: Build libpayload in coreinfo directory
When building libpayload, make the build directory and .config outside libpayload source directory so it'll not pollute the libpayload source and cause conflicts with other builds. Change-Id: Idcfbc7dbe4d52a3559229d8450c3efaafd33b93b Signed-off-by: Iru Cai <mytbk920423@gmail.com> Reviewed-on: https://review.coreboot.org/14389 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'payloads/coreinfo/Makefile')
-rw-r--r--payloads/coreinfo/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/payloads/coreinfo/Makefile b/payloads/coreinfo/Makefile
index e62cdda644..d953091187 100644
--- a/payloads/coreinfo/Makefile
+++ b/payloads/coreinfo/Makefile
@@ -114,11 +114,12 @@ ifneq ($(strip $(HAVE_LIBPAYLOAD)),)
libpayload:
printf "Found Libpayload $(LIBPAYLOAD_OBJ).\n"
else
+LPOPTS=obj="$(CURDIR)/lpbuild" DOTCONFIG="$(CURDIR)/lp.config"
libpayload:
printf "Building libpayload @ $(LIBPAYLOAD_PATH).\n"
- $(MAKE) -C $(LIBPAYLOAD_PATH) distclean coreinfo_obj=$(coreinfo_obj)/libptmp
- $(MAKE) -C $(LIBPAYLOAD_PATH) defconfig KBUILD_DEFCONFIG=$(LIBPAYLOAD_CONFIG)
- $(MAKE) -C $(LIBPAYLOAD_PATH) install DESTDIR=$(coreinfo_obj)
+ $(MAKE) -C $(LIBPAYLOAD_PATH) $(LPOPTS) distclean coreinfo_obj=$(coreinfo_obj)/libptmp
+ $(MAKE) -C $(LIBPAYLOAD_PATH) $(LPOPTS) defconfig KBUILD_DEFCONFIG=$(LIBPAYLOAD_CONFIG)
+ $(MAKE) -C $(LIBPAYLOAD_PATH) $(LPOPTS) install DESTDIR=$(coreinfo_obj)
endif
$(coreinfo_obj)/config.h:
@@ -130,8 +131,8 @@ clean:
rm -rf build/*.elf build/*.o .xcompile
distclean: clean
- rm -rf build
- rm -f .config .config.old ..config.tmp .kconfig.d .tmpconfig*
+ rm -rf build lpbuild
+ rm -f *.config *.config.old ..config.tmp .kconfig.d .tmpconfig*
include $(srck)/Makefile