Re: [OE-core] [PATCH] archiver.bbclass: Fix work-shared checking for kernel recipes

2024-06-13 Thread Livius
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

Re: [OE-core] [PATCH] archiver.bbclass: Fix work-shared checking for kernel recipes

2024-06-13 Thread Jose Quaresma
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. > >

Re: [OE-core] [PATCH] archiver.bbclass: Fix work-shared checking for kernel recipes

2024-06-12 Thread Jose Quaresma
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.

Re: [OE-core] [PATCH] archiver.bbclass: Fix work-shared checking for kernel recipes

2024-06-11 Thread Livius
[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

Re: [OE-core] [PATCH] archiver.bbclass: Fix work-shared checking for kernel recipes

2024-06-11 Thread Livius
[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

Re: [OE-core] [PATCH] archiver.bbclass: Fix work-shared checking for kernel recipes

2024-06-11 Thread Livius
[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

Re: [OE-core] [PATCH] archiver.bbclass: Fix work-shared checking for kernel recipes

2024-06-11 Thread Livius
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).

Re: [OE-core] [PATCH] archiver.bbclass: Fix work-shared checking for kernel recipes

2024-06-11 Thread Ross Burton
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

[OE-core] [PATCH] archiver.bbclass: Fix work-shared checking for kernel recipes

2024-06-06 Thread Livius
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.