* duplicate dtbs in deploydir
@ 2020-06-08 18:08 Jonathan Richardson
2020-06-09 12:39 ` [poky] " Richard Purdie
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Richardson @ 2020-06-08 18:08 UTC (permalink / raw)
To: poky
Hi,
Just wondering why there are 2 symlinks to a dtb in the deploy dir. It has
been like this for a while but creates a lot of clutter. It's from the
last 2 lines in kernel-devicetree.bbclass. I was going to clean it up but
wondered if it's there for a reason.. Thanks.
do_deploy_append() {
for dtbf in ${KERNEL_DEVICETREE}; do
dtb=`normalize_dtb "$dtbf"`
dtb_ext=${dtb##*.}
dtb_base_name=`basename $dtb .$dtb_ext`
install -d $deployDir
install -m 0644
${D}/${KERNEL_IMAGEDEST}/$dtb_base_name.$dtb_ext
$deployDir/$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext
ln -sf $dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext
$deployDir/$dtb_base_name.$dtb_ext
ln -sf $dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext
$deployDir/$dtb_base_name-${KERNEL_DTB_LINK_NAME}.$dtb_ext
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [poky] duplicate dtbs in deploydir
2020-06-08 18:08 duplicate dtbs in deploydir Jonathan Richardson
@ 2020-06-09 12:39 ` Richard Purdie
0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2020-06-09 12:39 UTC (permalink / raw)
To: jonathan.richardson, poky
On Mon, 2020-06-08 at 11:08 -0700, Jonathan Richardson via
lists.yoctoproject.org wrote:
> Hi,
>
> Just wondering why there are 2 symlinks to a dtb in the deploy dir.
> It has
> been like this for a while but creates a lot of clutter. It's from
> the
> last 2 lines in kernel-devicetree.bbclass. I was going to clean it up
> but
> wondered if it's there for a reason.. Thanks.
>
> do_deploy_append() {
> for dtbf in ${KERNEL_DEVICETREE}; do
> dtb=`normalize_dtb "$dtbf"`
> dtb_ext=${dtb##*.}
> dtb_base_name=`basename $dtb .$dtb_ext`
> install -d $deployDir
> install -m 0644
> ${D}/${KERNEL_IMAGEDEST}/$dtb_base_name.$dtb_ext
> $deployDir/$dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext
> ln -sf $dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext
> $deployDir/$dtb_base_name.$dtb_ext
> ln -sf $dtb_base_name-${KERNEL_DTB_NAME}.$dtb_ext
> $deployDir/$dtb_base_name-${KERNEL_DTB_LINK_NAME}.$dtb_ext
Some automated testing code relies upon symlinks in the deploy
directory to find the latest dtb/image/whatever. The symlink names
usually remove elements like date/timestamps.
Whether that is the case here and whether its used or not I'm not sure
but that is why you see these as it saves pattern matching which may
change over time.
Cheers,
Richard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-09 12:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-08 18:08 duplicate dtbs in deploydir Jonathan Richardson
2020-06-09 12:39 ` [poky] " Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.