我有
DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MACHINE}${SETTINGS}"
在local.conf
中以及在其他地方的SETTINGS
中添加了BB_ENV_EXTRAWHITE
。
某些食谱正在使用inherit deploy
,例如,安装如下文件:
do_deploy() {
install -d ${DEPLOYDIR}
install -m 644 ${S}/keys/*.pubkey ${DEPLOYDIR}/my_keys
}
我想在该行中进行两个构建:
SETTINGS=Alpha MACHINE=mymachine nice bitbake yocto-myimage
SETTINGS=Beta MACHINE=mymachine nice bitbake yocto-myimage
预期:
my_keys
文件夹同时安装到两个文件夹:/images/mymachineAlpha
和/images/mymachineBeta
实际:
my_keys
文件夹仅安装到/images/mymachineAlpha
我试图在配方中添加以下内容:
do_deploy[vardeps] += "SETTINGS"
或
PACKAGE_ARCH = "${MACHINE_ARCH}${SETTINGS}"
然后运行
SETTINGS=Alpha MACHINE=mymachine nice bitbake yocto-myimage
SETTINGS=Beta MACHINE=mymachine nice bitbake yocto-myimage
实际:
my_keys
已安装到images/mymachineBeta
但已从/images/mymachineAlpha
卸载