blob: daf2834958de436c742cfb2c811131a7ec35b375 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001LICENSE = "MIT"
2LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
3
Patrick Williams213cb262021-08-07 19:21:33 -05004MCMACHINE:virtclass-mcextend-musl = "qemux86-64"
5MCMACHINE:virtclass-mcextend-tiny = "qemux86"
6MCIMGTYPE:virtclass-mcextend-musl = "ext4"
7MCIMGTYPE:virtclass-mcextend-tiny = "cpio.gz"
Brad Bishop19323692019-04-05 15:28:33 -04008
9MC_DEPLOY_DIR_IMAGE = "${TOPDIR}/tmp-mc-${MCNAME}/deploy/images/${MCMACHINE}"
10
Brad Bishop15ae2502019-06-18 21:44:24 -040011do_install[mcdepends] += "mc::${MCNAME}:core-image-minimal:do_image_complete mc::${MCNAME}:virtual/kernel:do_deploy"
Brad Bishop19323692019-04-05 15:28:33 -040012
13do_install () {
14 install -d ${D}/var/lib/machines/${MCNAME}
15 install ${MC_DEPLOY_DIR_IMAGE}/core-image-minimal-${MCMACHINE}.${MCIMGTYPE} ${D}/var/lib/machines/${MCNAME}/core-image-minimal.${MCIMGTYPE}
16 install ${MC_DEPLOY_DIR_IMAGE}/bzImage ${D}/var/lib/machines/${MCNAME}
17}
18
19python () {
20 mcname = d.getVar('MCNAME')
21 if not mcname:
22 raise bb.parse.SkipRecipe("Not a multiconfig target")
23 multiconfigs = d.getVar('BBMULTICONFIG') or ""
24 if mcname not in multiconfigs:
25 raise bb.parse.SkipRecipe("multiconfig target %s not enabled" % mcname)
26}
27
28BBCLASSEXTEND = "mcextend:tiny mcextend:musl"