* [PATCH] kernel.bbclass: add deploy link to KERNEL_IMAGETYPE
@ 2012-05-16 1:25 Christopher Larson
2012-05-17 14:46 ` Darren Hart
0 siblings, 1 reply; 4+ messages in thread
From: Christopher Larson @ 2012-05-16 1:25 UTC (permalink / raw)
To: openembedded-core; +Cc: Christopher Larson
From: Christopher Larson <chris_larson@mentor.com>
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.
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
meta/classes/kernel.bbclass | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index a85f130..90af597 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -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
}
--
1.7.7
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] kernel.bbclass: add deploy link to KERNEL_IMAGETYPE
2012-05-16 1:25 [PATCH] kernel.bbclass: add deploy link to KERNEL_IMAGETYPE Christopher Larson
@ 2012-05-17 14:46 ` Darren Hart
2012-05-17 14:58 ` Koen Kooi
0 siblings, 1 reply; 4+ messages in thread
From: Darren Hart @ 2012-05-17 14:46 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Christopher Larson
On 05/15/2012 06:25 PM, Christopher Larson wrote:
> From: Christopher Larson <chris_larson@mentor.com>
>
> 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
>
> Signed-off-by: Christopher Larson <chris_larson@mentor.com>
> ---
> meta/classes/kernel.bbclass | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index a85f130..90af597 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -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
> }
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] kernel.bbclass: add deploy link to KERNEL_IMAGETYPE
2012-05-17 14:46 ` Darren Hart
@ 2012-05-17 14:58 ` Koen Kooi
2012-05-18 21:50 ` Darren Hart
0 siblings, 1 reply; 4+ messages in thread
From: Koen Kooi @ 2012-05-17 14:58 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Christopher Larson
Op 17 mei 2012, om 16:46 heeft Darren Hart het volgende geschreven:
> On 05/15/2012 06:25 PM, Christopher Larson wrote:
>> From: Christopher Larson <chris_larson@mentor.com>
>>
>> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] kernel.bbclass: add deploy link to KERNEL_IMAGETYPE
2012-05-17 14:58 ` Koen Kooi
@ 2012-05-18 21:50 ` Darren Hart
0 siblings, 0 replies; 4+ messages in thread
From: Darren Hart @ 2012-05-18 21:50 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Cc: Koen Kooi, Christopher Larson
On 05/17/2012 07:58 AM, Koen Kooi wrote:
>
> Op 17 mei 2012, om 16:46 heeft Darren Hart het volgende geschreven:
>
>> On 05/15/2012 06:25 PM, Christopher Larson wrote:
>>> From: Christopher Larson <chris_larson@mentor.com>
>>>
>>> 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}"
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?
>
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-05-18 22:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-16 1:25 [PATCH] kernel.bbclass: add deploy link to KERNEL_IMAGETYPE Christopher Larson
2012-05-17 14:46 ` Darren Hart
2012-05-17 14:58 ` Koen Kooi
2012-05-18 21:50 ` Darren Hart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox