kernel.bbclass: add deploy link to KERNEL_IMAGETYPE
PATCH 1/1 kernel.bbclass: add deploy link to KERNEL_IMAGETYPE
From: Christopher Larson <[email protected]>
It's common to provide a non-machine-suffixed link in DEPLOY_DIR_IMAGE, so let's be consistent and do so here as well.
--- meta/classes/kernel.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
meta/classes/kernel.bbclass +1 -0
@@ -538,6 +538,7 @@ kernel_do_deploy() { cd ${DEPLOYDIR} rm -f ${KERNEL_IMAGE_SYMLINK_NAME}.bin ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${KERNEL_IMAGE_SYMLINK_NAME}.bin + ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${KERNEL_IMAGETYPE} cp ${COREBASE}/meta/files/deploydir_readme.txt ${DEPLOYDIR}/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt }
Signature · 1 line
1.7.7
Quoted 4 lines · Christopher Larson
From: Christopher Larson <[email protected]>
It's common to provide a non-machine-suffixed link in
DEPLOY_DIR_IMAGE, so let's be consistent and do so here as well.
This of course means that building two machines in the same build dir will result in overwriting the latest non-machine-suffixed link (provided they are the same image type).
I agree that sometimes I wished I just had a bzImage, but the current behavior seems more robust, consistent, and is less prone to user error.
Is there a reason other than aligning with what other packages do to do this? Which packages do this?
--
Darren
Quoted 18 lines
Signed-off-by Christopher Larson <[email protected]>--- meta/classes/kernel.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)meta/classes/kernel.bbclass +1
-0@@ -538,6 +538,7 @@ kernel_do_deploy() { cd ${DEPLOYDIR} rm -f ${KERNEL_IMAGE_SYMLINK_NAME}.bin ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${KERNEL_IMAGE_SYMLINK_NAME}.bin + ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${KERNEL_IMAGETYPE} cp ${COREBASE}/meta/files/deploydir_readme.txt ${DEPLOYDIR}/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt }
Signature · 3 lines
Darren Hart Intel Open Source Technology Center Yocto Project - Linux Kernel
Op 17 mei 2012, om 16:46 heeft Darren Hart het volgende geschreven:
Quoted 9 lines · Christopher Larson
Quoted 4 lines
From: Christopher Larson <[email protected]>
It's common to provide a non-machine-suffixed link in
DEPLOY_DIR_IMAGE, so let's be consistent and do so here as well.This of course means that building two machines in the same build dir will result in overwriting the latest non-machine-suffixed link (provided they are the same image type)
Actually it doesn't. At least not on angstrom, shr and slugos:
koen@dominion:/OE/tentacle/sources/meta-angstrom$ git grep DEPLOY_DIR_IMAGE
conf/distro/include/angstrom.inc:DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MACHINE}"The above was mentioned a few weeks ago, but it looks like no one but the distros above and Chris care about proper multimachine builds.
Quoted 13 lines · Koen Kooi
Op 17 mei 2012, om 16:46 heeft Darren Hart het volgende geschreven:
Quoted 9 lines · Christopher Larson
Quoted 4 lines
From: Christopher Larson <[email protected]>
It's common to provide a non-machine-suffixed link in
DEPLOY_DIR_IMAGE, so let's be consistent and do so here as well.This of course means that building two machines in the same build dir will result in overwriting the latest non-machine-suffixed link (provided they are the same image type)
Quoted 5 lines
Actually it doesn't. At least not on angstrom, shr and slugos:
koen@dominion:/OE/tentacle/sources/meta-angstrom$ git grep DEPLOY_DIR_IMAGE conf/distro/include/angstrom.inc:DEPLOY_DIR_IMAGE = "${DEPLOY_DIR}/images/${MACHINE}"
That seems like a good idea to me. It would make more sense to me for that to be the default. Having a DISTRO define BUILD policy seems a bit backwards.
Would anyone object to including ${MACHINE} in the deploy dir by default?
Quoted 3 lines
The above was mentioned a few weeks ago, but it looks like no one but the distros above and Chris care about proper multimachine builds.
Awe, you were doing so well up until there.
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel