diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
| commit | 8c22ff0d8b70d9b12f0487ef696a7e915b9e3173 (patch) | |
| tree | efdc32587159d0050a69009bdf2330a531727d95 /meta-selftest/recipes-test/multiconfig | |
| parent | d412d2747595c1cc4a5e3ca975e3adc31b2f7891 (diff) | |
| download | poky-8c22ff0d8b70d9b12f0487ef696a7e915b9e3173.tar.gz | |
The poky repository master branch is no longer being updated.
You can either:
a) switch to individual clones of bitbake, openembedded-core, meta-yocto and yocto-docs
b) use the new bitbake-setup
You can find information about either approach in our documentation:
https://docs.yoctoproject.org/
Note that "poky" the distro setting is still available in meta-yocto as
before and we continue to use and maintain that.
Long live Poky!
Some further information on the background of this change can be found
in: https://lists.openembedded.org/g/openembedded-architecture/message/2179
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-selftest/recipes-test/multiconfig')
| -rw-r--r-- | meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb | 44 | ||||
| -rw-r--r-- | meta-selftest/recipes-test/multiconfig/multiconfig-test-parse.bb | 11 |
2 files changed, 0 insertions, 55 deletions
diff --git a/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb b/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb deleted file mode 100644 index f6cf0a47c8..0000000000 --- a/meta-selftest/recipes-test/multiconfig/multiconfig-image-packager_0.1.bb +++ /dev/null | |||
| @@ -1,44 +0,0 @@ | |||
| 1 | LICENSE = "MIT" | ||
| 2 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
| 3 | |||
| 4 | MCMACHINE:virtclass-mcextend-musl = "qemux86-64" | ||
| 5 | MCMACHINE:virtclass-mcextend-tiny = "qemux86" | ||
| 6 | MCIMGTYPE:virtclass-mcextend-musl = "ext4.zst" | ||
| 7 | MCIMGTYPE:virtclass-mcextend-tiny = "cpio.gz" | ||
| 8 | |||
| 9 | MC_DEPLOY_DIR_IMAGE = "${TOPDIR}/tmp-mc-${MCNAME}/deploy/images/${MCMACHINE}" | ||
| 10 | MC_DEPLOY_IMAGE_BASENAME = "core-image-minimal" | ||
| 11 | |||
| 12 | do_install[mcdepends] += "mc::${MCNAME}:core-image-minimal:do_image_complete mc::${MCNAME}:virtual/kernel:do_deploy" | ||
| 13 | |||
| 14 | do_install () { | ||
| 15 | install -d ${D}/var/lib/machines/${MCNAME} | ||
| 16 | install ${MC_DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME_CORE_IMAGE_MINIMAL}.${MCIMGTYPE} ${D}/var/lib/machines/${MCNAME}/${MC_DEPLOY_IMAGE_BASENAME}.${MCIMGTYPE} | ||
| 17 | install ${MC_DEPLOY_DIR_IMAGE}/bzImage ${D}/var/lib/machines/${MCNAME} | ||
| 18 | } | ||
| 19 | |||
| 20 | # for IMAGE_LINK_NAME, IMAGE_BASENAME | ||
| 21 | inherit image-artifact-names | ||
| 22 | |||
| 23 | python () { | ||
| 24 | mcname = d.getVar('MCNAME') | ||
| 25 | if not mcname: | ||
| 26 | raise bb.parse.SkipRecipe("Not a multiconfig target") | ||
| 27 | multiconfigs = d.getVar('BBMULTICONFIG') or "" | ||
| 28 | if mcname not in multiconfigs: | ||
| 29 | raise bb.parse.SkipRecipe("multiconfig target %s not enabled" % mcname) | ||
| 30 | |||
| 31 | # these will most likely start with my BPN multiconfig-image-packager, but I want them from core-image-minimal | ||
| 32 | # as there is no good way to query core-image-minimal's context lets assume that there are no overrides | ||
| 33 | # and that we can just replace IMAGE_BASENAME | ||
| 34 | image_link_name = d.getVar('IMAGE_LINK_NAME') | ||
| 35 | image_basename = d.getVar('IMAGE_BASENAME') | ||
| 36 | machine = d.getVar('MACHINE') | ||
| 37 | mcmachine = d.getVar('MCMACHINE') | ||
| 38 | image_to_deploy = d.getVar('MC_DEPLOY_IMAGE_BASENAME') | ||
| 39 | image_link_name_to_deploy = image_link_name.replace(image_basename, image_to_deploy).replace(machine, mcmachine) | ||
| 40 | bb.warn('%s: assuming that "%s" built for "%s" has IMAGE_LINK_NAME "%s"' % (d.getVar('PN'), mcmachine, image_to_deploy, image_link_name_to_deploy)) | ||
| 41 | d.setVar('IMAGE_LINK_NAME_CORE_IMAGE_MINIMAL', image_link_name_to_deploy) | ||
| 42 | } | ||
| 43 | |||
| 44 | BBCLASSEXTEND = "mcextend:tiny mcextend:musl" | ||
diff --git a/meta-selftest/recipes-test/multiconfig/multiconfig-test-parse.bb b/meta-selftest/recipes-test/multiconfig/multiconfig-test-parse.bb deleted file mode 100644 index 6236697453..0000000000 --- a/meta-selftest/recipes-test/multiconfig/multiconfig-test-parse.bb +++ /dev/null | |||
| @@ -1,11 +0,0 @@ | |||
| 1 | SUMMARY = "Test Multiconfig Parsing" | ||
| 2 | LICENSE = "MIT" | ||
| 3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
| 4 | |||
| 5 | INHIBIT_DEFAULT_DEPS = "1" | ||
| 6 | |||
| 7 | do_showvar() { | ||
| 8 | bbplain "MCTESTVAR=${MCTESTVAR}" | ||
| 9 | } | ||
| 10 | addtask do_showvar | ||
| 11 | |||
