FYI: I'm still hitting some regressions with the patches applied, so
I've been debugging it further today.

with any luck, I'll have a solution by end of the day .. and it won't
come back to haunt me :)

Bruce

On Thu, Sep 29, 2022 at 2:40 PM Bruce Ashfield via
lists.yoctoproject.org
<bruce.ashfield=gmail....@lists.yoctoproject.org> wrote:
>
> Thanks,
>
> I'll run this against the builds where I developed the problematic
> change. If everything keeps working, the choice is simple .. I'll
> merge this and we can all keep moving.
>
> If something breaks, I'll have a jumping point to try and reproduce
> your issue and still keep all three working.
>
> Bruce
>
>
> On Thu, Sep 29, 2022 at 2:33 PM Jose Quaresma <quaresma.j...@gmail.com> wrote:
> >
> > The strip_common_prefix function is changed in a way that they will
> > use the expanded path of the input argument.
> > There are some changes in the process_file function for the *.cfg files
> > only and not none for *.scc, *.patch and *defconfig.
> >
> > This doesn't work for cases where we have the defconfig files
> > provided in the some meta-layer and fail with:
> >
> > [ERROR]: processing of file /tmp/tmp.8hcr45TMiO failed
> >
> > The content of the '/tmp/tmp.8hcr45TMiO' file is currently:
> > | #
> > | # spp v0.8
> > | # processed: Thu Sep 29 04:18:21 PM UTC 2022
> > | #
> > | # This is a preprocessor output file, do not edit
> > | #
> > | #
> > | prefix 
> > /oe/build/conf/../../layers/meta-lmp/meta-lmp-bsp/recipes-kernel/linux/linux-lmp-dev-mfgtool/imx8mq-evk/defconfig
> > | kconf non-hardware 
> > /oe//build/conf/../../layers/meta-lmp/meta-lmp-bsp/recipes-kernel/linux/linux-lmp-dev-mfgtool/imx8mq-evk/defconfig
> > | # run time: 0 seconds
> > | # processed files:
> > | # _cfg 
> > /oe//build/conf/../../layers/meta-lmp/meta-lmp-bsp/recipes-kernel/linux/linux-lmp-dev-mfgtool/imx8mq-evk/defconfig
> >
> > Before commit 9320c2a the prefix is clean:
> > | #
> > | # spp v0.8
> > | # processed: Thu Sep 29 04:15:36 PM UTC 2022
> > | #
> > | # This is a preprocessor output file, do not edit
> > | #
> > | #
> > | prefix
> > | kconf non-hardware 
> > /oe/build/conf/../../layers/meta-lmp/meta-lmp-bsp/recipes-kernel/linux/linux-lmp-dev-mfgtool/imx8mq-evk/defconfig
> > | # run time: 0 seconds
> > | # processed files:
> > | # _cfg 
> > /oe/build/conf/../../layers/meta-lmp/meta-lmp-bsp/recipes-kernel/linux/linux-lmp-dev-mfgtool/imx8mq-evk/defconfig
> >
> > With this patch applied the prefix is clean as before 9320c2a:
> > | #
> > | # spp v0.8
> > | # processed: Thu Sep 29 05:09:21 PM UTC 2022
> > | #
> > | # This is a preprocessor output file, do not edit
> > | #
> > | #
> > | prefix
> > | kconf non-hardware 
> > /oe/layers/meta-lmp/meta-lmp-bsp/recipes-kernel/linux/linux-lmp-dev-mfgtool/imx8mq-evk/defconfig
> > | # run time: 0 seconds
> > | # processed files:
> > | # _cfg 
> > /oe/layers/meta-lmp/meta-lmp-bsp/recipes-kernel/linux/linux-lmp-dev-mfgtool/imx8mq-evk/defconfig
> >
> > Signed-off-by: Jose Quaresma <jose.quare...@foundries.io>
> > ---
> >  tools/spp | 13 ++++++++++++-
> >  1 file changed, 12 insertions(+), 1 deletion(-)
> >
> > diff --git a/tools/spp b/tools/spp
> > index f9bb76b..f379205 100755
> > --- a/tools/spp
> > +++ b/tools/spp
> > @@ -300,8 +300,19 @@ search_include_paths()
> >      done
> >  }
> >
> > +expand_if_full_path()
> > +{
> > +        for i in $@; do
> > +            if [ "${i:0:1}" = "/" ]; then
> > +                i=$(readlink -f $i)
> > +            fi
> > +            echo $i
> > +        done
> > +}
> > +
> > +
> >  # args are the input files
> > -infiles=$@
> > +infiles=$(expand_if_full_path $@)
> >
> >  processed_files=""
> >
> > --
> > 2.34.1
> >
> >
> >
> >
>
>
> --
> - Thou shalt not follow the NULL pointer, for chaos and madness await
> thee at its end
> - "Use the force Harry" - Gandalf, Star Trek II
>
> 
>


-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#11748): 
https://lists.yoctoproject.org/g/linux-yocto/message/11748
Mute This Topic: https://lists.yoctoproject.org/mt/94001124/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to