summaryrefslogtreecommitdiff
path: root/common/openembedded.mk
diff options
context:
space:
mode:
Diffstat (limited to 'common/openembedded.mk')
-rw-r--r--common/openembedded.mk7
1 files changed, 6 insertions, 1 deletions
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