image/image_types: Convert CONVERSION_CMD/COMPRESS_CMD to new override syntax
PATCH 1/2 image/image_types: Convert CONVERSION_CMD/COMPRESS_CMD to new override syntax
For consistency, use override syntax for these variables as well since it is more consistent with the rest of the image code. We may be able to use these as proper overrides in due course.
Signed-off-by Richard Purdie <[email protected]>
--- meta/classes/image.bbclass | 6 ++-- meta/classes/image_types.bbclass | 50 ++++++++++++++-------------- scripts/contrib/convert-overrides.py | 2 +- 3 files changed, 29 insertions(+), 29 deletions(-)
meta/classes/image.bbclass +3 -3
@@ -457,11 +457,11 @@ python () { # Create input image first. gen_conversion_cmds(type) localdata.setVar('type', type) - cmd = "\t" + (localdata.getVar("CONVERSION_CMD_" + ctype) or localdata.getVar("COMPRESS_CMD_" + ctype)) + cmd = "\t" + (localdata.getVar("CONVERSION_CMD:" + ctype) or localdata.getVar("COMPRESS_CMD:" + ctype)) if cmd not in cmds: cmds.append(cmd) - vardeps.add('CONVERSION_CMD_' + ctype) - vardeps.add('COMPRESS_CMD_' + ctype) + vardeps.add('CONVERSION_CMD:' + ctype) + vardeps.add('COMPRESS_CMD:' + ctype) subimage = type + "." + ctype if subimage not in subimages: subimages.append(subimage)
meta/classes/image_types.bbclass +25 -25
56 lines not on this page · raw message
scripts/contrib/convert-overrides.py +1 -1
@@ -64,7 +64,7 @@ skips = skips + ["get_appends_for_files", "test_doubleref_remove", "test_bitbake skips = skips + ["test_rpm_remove", "test_bitbakelayers_add_remove", "recipe_append_file", "log_data_removed", "recipe_append", "systemd_machine_unit_append"] skips = skips + ["recipetool_append", "changetype_remove", "try_appendfile_wc", "test_qemux86_directdisk", "test_layer_appends", "tgz_removed"] -imagevars = ["IMAGE_CMD", "EXTRA_IMAGECMD", "IMAGE_TYPEDEP"] +imagevars = ["IMAGE_CMD", "EXTRA_IMAGECMD", "IMAGE_TYPEDEP", "CONVERSION_CMD", "COMPRESS_CMD"] packagevars = packagevars + imagevars vars_re = {}
Signature · 1 line
2.30.2
PATCH 2/2 image: Drop COMPRESS_CMD
This was replaced by CONVERSION_CMD a long time ago and is no longer referenced in core. Remove the references to it.
Signed-off-by Richard Purdie <[email protected]>
--- meta/classes/image.bbclass | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
meta/classes/image.bbclass +1 -2
@@ -457,11 +457,10 @@ python () { # Create input image first. gen_conversion_cmds(type) localdata.setVar('type', type) - cmd = "\t" + (localdata.getVar("CONVERSION_CMD:" + ctype) or localdata.getVar("COMPRESS_CMD:" + ctype)) + cmd = "\t" + localdata.getVar("CONVERSION_CMD:" + ctype) if cmd not in cmds: cmds.append(cmd) vardeps.add('CONVERSION_CMD:' + ctype) - vardeps.add('COMPRESS_CMD:' + ctype) subimage = type + "." + ctype if subimage not in subimages: subimages.append(subimage)
Signature · 1 line
2.30.2