I also tested, it works nicely for symbolic link sources (it returns the real
path). As we see the best to use os.path.realpath() to check the source path in
is_work_shared() function.
I will send a V2 patch soon to get it in the code.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages
Jose Quaresma via lists.openembedded.org escreveu (quarta, 12/06/2024 à(s) 10:32):
> Hi Livius,
>
> In reality, although the kernel has its code in S = "${WORKDIR}/git" it
> ends up being moved to ${STAGING_KERNEL_DIR} in the do_symlink_kernsrc
> kernel.bbclass function.
>
>
Hi Livius,
In reality, although the kernel has its code in S = "${WORKDIR}/git" it
ends up being moved to ${STAGING_KERNEL_DIR} in the do_symlink_kernsrc
kernel.bbclass function.
[Edited Message Follows]
S = "${WORKDIR}/git" does not contain "${TMPDIR}/work-shared" path, therefore
"def is_work_shared(d):" will be returned with False and archiver is failed for
linux kernel recipe (somewhy unpack is broken and kernel source is missing in
work-shared folder in this
[Edited Message Follows]
S = "${WORKDIR}/git" does not contain "${TMPDIR}/work-shared" path, therefore
"def is_work_shared(d):" will be returned with False and archiver is failed for
linux kernel recipe (somewhy unpack is broken and kernel source is missing in
work-shared folder in this
[Edited Message Follows]
S = "${WORKDIR}/git" does not contain "${TOPDIR}/work-shared" path, therefore
"def is_work_shared(d):" will be returned with False and archiver is failed for
linux kernel recipe (somewhy unpack is broken and kernel source is missing in
work-shared folder in this
S = "${WORKDIR}/git" does not contain "${TOPDIR}/work-shared" path, therefore
"def is_work_shared(d):" will be returned with False and archiver is failed for
linux kernel recipe (somewhy unpack is broken and kernel source is missing in
work-shared folder in this situation).
On 6 Jun 2024, at 21:48, Livius via lists.openembedded.org
wrote:
>
> From: Benjamin Szőke
>
> Restore to use checking inherited kernel class, because it possible
> that some BSP's linux kernel recipe (like linux-fslc in meta-freescale)
> change source dir to S = "${WORKDIR}/git" symbolic
From: Benjamin Szőke
Restore to use checking inherited kernel class, because it possible
that some BSP's linux kernel recipe (like linux-fslc in meta-freescale)
change source dir to S = "${WORKDIR}/git" symbolic link and in this
case work-shared checking is failed for kernel recipe.