[oe-commits] [openembedded-core] 02/22: build-appliance: make the inclusion of downloaded sources optional

git at git.openembedded.org git at git.openembedded.org
Sat Mar 12 09:19:24 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 3cebd80a6fc2de053bb62d7b11dd6b6e5b1baf1f
Author: Joshua Lock <joshua.g.lock at intel.com>
AuthorDate: Fri Mar 11 12:13:32 2016 +0000

    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 at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-core/images/build-appliance-image_14.0.0.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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 8f9ce1b..61f69f4 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_*

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list