mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
classes: Add mechanism to install packages into images only if they've been built
This commit is contained in:
@@ -9,6 +9,7 @@ INHIBIT_DEFAULT_DEPS = "1"
|
||||
# "export IMAGE_BASENAME" not supported at this time
|
||||
IMAGE_BASENAME[export] = "1"
|
||||
export PACKAGE_INSTALL ?= "${IMAGE_INSTALL}"
|
||||
PACKAGE_INSTALL_ATTEMPTONLY ?= ""
|
||||
|
||||
# We need to recursively follow RDEPENDS and RRECOMMENDS for images
|
||||
do_rootfs[recrdeptask] += "do_deploy do_populate_staging"
|
||||
@@ -36,6 +37,7 @@ python () {
|
||||
bb.data.setVarFlag('do_rootfs', 'depends', deps, d)
|
||||
|
||||
runtime_mapping_rename("PACKAGE_INSTALL", d)
|
||||
runtime_mapping_rename("PACKAGE_INSTALL_ATTEMPTONLY", d)
|
||||
}
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user