From af90a141207f3faae55a08d8baed1abd4a8320e2 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Sun, 7 Aug 2005 06:33:04 +0000 Subject: Added the top-level prefetch target, and added BITBAKE variable to openembedded.mk to allow options to be added. --- common/openembedded.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'common') diff --git a/common/openembedded.mk b/common/openembedded.mk index c23f206122..c4b5d564fe 100644 --- a/common/openembedded.mk +++ b/common/openembedded.mk @@ -15,16 +15,21 @@ include conf/auto.conf BUILD_DIRS = downloads REQUIRED_DIRS = bitbake openembedded FIRMWARE_DEPS = create-topdir $(BUILD_DIRS) $(REQUIRED_DIRS) +BITBAKE = bitbake # The default rule is to build the firmware in an unprotected environment. firmware: $(FIRMWARE_DEPS) - . ./setup-env; exec bitbake $(DISTRO)-packages + . ./setup-env; exec ${BITBAKE} $(DISTRO)-packages # This rule clobbers the environment (note that ccache uses '$HOME' by # default, so the cache will end up there). firmware-safe: env -i HOME="$${HOME}" PATH="$${PATH}" $(MAKE) firmware +# The default rule is to build the firmware in an unprotected environment. +prefetch: $(FIRMWARE_DEPS) + . ./setup-env; exec ${BITBAKE} -cfetch $(DISTRO)-packages + # topdir.conf is re-created automatically if the directory is # moved - this will cause a full bitbake reparse .PHONY: create-topdir -- cgit v1.2.3