From patchwork Fri Sep 7 22:05:43 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/2] image.bbclass: Enable the complementary install to be called w/ globbing params Date: Fri, 07 Sep 2012 22:05:43 -0000 From: Mark Hatle X-Patchwork-Id: 36143 Message-Id: To: If the image.bbclass is called with arguments, and these arguments are not "populate_sdk", they will be passed in as the expected GLOBS. This enables external components and scripting to use the rootfs_install_complementary code. Signed-off-by: Mark Hatle --- meta/classes/image.bbclass | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 2e95556..9433d48 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -329,8 +329,10 @@ rootfs_install_complementary() { list_installed_packages arch > ${WORKDIR}/installed_pkgs.txt # Apply the globs to all the packages currently installed - if [ "$1" = "populate_sdk" ] ; then + if [ -n "$1" -a "$1" = "populate_sdk" ] ; then GLOBS="${SDKIMAGE_INSTALL_COMPLEMENTARY}" + elif [ -n "$1" ]; then + GLOBS="$@" else GLOBS="${IMAGE_INSTALL_COMPLEMENTARY}" # Add locales