This is a bit puzzling. The values seem ok, but the 'if' statement
still evaluates to true.

First, does /home/build/project/meta-eaton/conf/layer.conf exist?

Can you split up the two conditions in the 'if' statement into two
different 'if' statements one after the other and see which one is
evaluated to true?

I'm starting to wonder what shell implementation is being used here.

Alex

On Wed, 15 Jan 2025 at 17:23, Ganesh Mahajan via
lists.yoctoproject.org
<ganesh.manoj.mahajan=signify....@lists.yoctoproject.org> wrote:
>
> Tried with echo got the vlaues same as expected but still facing same error.
>
>  fi
>     templatesdir=$(python3 -c "import sys; 
> print(sys.argv[1].strip('/').split('/')[-2])" "$TEMPLATECONF")
>     echo "templatdirvalue = $templatesdir , templateconf value = 
> $TEMPLATECONF"
>     if [ "$templatesdir" != templates ] || [ ! -f 
> "$TEMPLATECONF/../../layer.conf" ]; then
>      echo "templateconf value = $TEMPLATECONF"
>         die "TEMPLATECONF value (which is $TEMPLATECONF) must point to 
> meta-some-layer/conf/templates/template-name"
>     fi
>
> build@ubuntu-bionic:~/project$ source meta-eaton/setup-build-env
>
> templatdirvalue = templates , templateconf value = 
> /home/build/project/meta-eaton/conf/templates/template-name
> templateconf value = 
> /home/build/project/meta-eaton/conf/templates/template-name
>
> Error: TEMPLATECONF value (which is 
> /home/build/project/meta-eaton/conf/templates/template-name) must point to 
> meta-some-layer/conf/templates/template-name
> build@ubuntu-bionic:~/project$ cd meta-eaton/conf/templates/template-name/
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64562): https://lists.yoctoproject.org/g/yocto/message/64562
Mute This Topic: https://lists.yoctoproject.org/mt/110623411/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

  • [yocto] [HELP] Ganesh Mahajan via lists.yoctoproject.org
    • Re: [yocto] [HELP] Adrian Freihofer via lists.yoctoproject.org
      • Re: [yocto] [HELP] Ganesh Mahajan via lists.yoctoproject.org
        • Re: [yocto] [HEL... Peter Marko via lists.yoctoproject.org
        • Re: [yocto] [HEL... Alexander Kanavin via lists.yoctoproject.org
          • Re: [yocto] ... Ganesh Mahajan via lists.yoctoproject.org
            • Re: [yo... Ganesh Mahajan via lists.yoctoproject.org
              • Re:... Alexander Kanavin via lists.yoctoproject.org
                • ... Ganesh Mahajan via lists.yoctoproject.org
                • ... Alexander Kanavin via lists.yoctoproject.org
                • ... Ganesh Mahajan via lists.yoctoproject.org
                • ... Alexander Kanavin via lists.yoctoproject.org
                • ... Ganesh Mahajan via lists.yoctoproject.org

Reply via email to