summaryrefslogtreecommitdiff
path: root/meta/recipes-core/images
diff options
context:
space:
mode:
authorJoshua Lock <joshua.g.lock@intel.com>2016-03-11 12:13:32 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-12 22:11:19 +0000
commit7975325e3d8dee159752ae2304b0c00361bfd2a7 (patch)
tree76edac602c3832de2d04174ffd228c68f8838050 /meta/recipes-core/images
parentcd43436def38a0a87f0cd330fa487ad5fc0748d0 (diff)
downloadopenembedded-core-7975325e3d8dee159752ae2304b0c00361bfd2a7.tar.gz
openembedded-core-7975325e3d8dee159752ae2304b0c00361bfd2a7.tar.bz2
openembedded-core-7975325e3d8dee159752ae2304b0c00361bfd2a7.zip
build-appliance: make the inclusion of downloaded sources optional
Including the entirety of DL_DIR in the generated build appliance image adds a significant amount of space and makes the build appliance image more awkward to distribute. Add a configuration option to make the inclusion of sources option and default to disabling this functionality. Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/images')
-rw-r--r--meta/recipes-core/images/build-appliance-image_14.0.0.bb5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-core/images/build-appliance-image_14.0.0.bb b/meta/recipes-core/images/build-appliance-image_14.0.0.bb
index 8f9ce1b662..61f69f42ec 100644
--- a/meta/recipes-core/images/build-appliance-image_14.0.0.bb
+++ b/meta/recipes-core/images/build-appliance-image_14.0.0.bb
@@ -26,6 +26,7 @@ SRC_URI = "git://git.yoctoproject.org/poky \
file://Yocto_Build_Appliance.vmx \
file://Yocto_Build_Appliance.vmxf \
"
+BA_INCLUDE_SOURCES ??= "0"
IMAGE_CMD_ext4_append () {
# We don't need to reserve much space for root, 0.5% is more than enough
@@ -42,7 +43,9 @@ fakeroot do_populate_poky_src () {
mkdir -p ${IMAGE_ROOTFS}/home/builder/poky/build/conf
mkdir -p ${IMAGE_ROOTFS}/home/builder/poky/build/downloads
- cp -RpL ${DL_DIR}/* ${IMAGE_ROOTFS}/home/builder/poky/build/downloads/
+ if [ ${BA_INCLUDE_SOURCES} != 0 ]; then
+ cp -RpL ${DL_DIR}/* ${IMAGE_ROOTFS}/home/builder/poky/build/downloads/
+ fi
# Remove the git2_* tarballs -- this is ok since we still have the git2/.
rm -rf ${IMAGE_ROOTFS}/home/builder/poky/build/downloads/git2_*