Re: [meta-freescale] Unable to resolve error when attempting to use a custom device tree
Andrey Zhizhikin <[email protected]> Wed, 17 Apr 2024 09:52:52 +0200
| Newsgroups | org.yoctoproject.lists.meta-freescale |
|---|---|
| Message-ID | <CAHtQpK4TnvLv3Td47FqfZxAxU6wNXdYTnK+ojM+vCKyRwPh=sg@mail.gmail.com> |
Hello Joe, On Tue, Apr 16, 2024 at 4:05=E2=80=AFPM JoeB via lists.yoctoproject.org <[email protected]> wrote: > > Yocto Release: Mickledore > > I am getting the following error when running "bitbake -c compile virtual= /kernel" when attempting to add a custom device tree. I have not been able= to figure out what is going on., > > | make[2]: *** No rule to make target 'arch/arm64/boot/dts/freescale/fsl-= lx2160a-qds.dtbfreescale/lgs-scv4.dtb'. Stop. > | make[1]: *** [/work/output/build/tmp/work-shared/lx2160ardb/kernel-sour= ce/scripts/Makefile.build:500: arch/arm64/boot/dts/freescale] Error 2 > | make: *** [/work/output/build/tmp/work-shared/lx2160ardb/kernel-source/= Makefile:1471: freescale/fsl-lx2160a-qds.dtbfreescale/lgs-scv4.dtb] Error 2 > | ERROR: oe_runmake failed > | WARNING: /work/output/build/tmp/work/lx2160ardb-fsl-linux/linux-qoriq/6= .1.55+gitAUTOINC+770c5fe2c1-r0/temp/run.do_compile.515699:307 exit 1 from '= exit 1' > | WARNING: Backtrace (BB generated script): > | #1: bbfatal_log, /work/output/build/tmp/work/lx2160ardb-fsl-linux= /linux-qoriq/6.1.55+gitAUTOINC+770c5fe2c1-r0/temp/run.do_compile.515699, li= ne 307 > | #2: die, /work/output/build/tmp/work/lx2160ardb-fsl-linux/linux-q= oriq/6.1.55+gitAUTOINC+770c5fe2c1-r0/temp/run.do_compile.515699, line 291 > | #3: oe_runmake, /work/output/build/tmp/work/lx2160ardb-fsl-linux/= linux-qoriq/6.1.55+gitAUTOINC+770c5fe2c1-r0/temp/run.do_compile.515699, lin= e 219 > | #4: do_compile, /work/output/build/tmp/work/lx2160ardb-fsl-linux/= linux-qoriq/6.1.55+gitAUTOINC+770c5fe2c1-r0/temp/run.do_compile.515699, lin= e 156 > | #5: main, /work/output/build/tmp/work/lx2160ardb-fsl-linux/linux-= qoriq/6.1.55+gitAUTOINC+770c5fe2c1-r0/temp/run.do_compile.515699, line 311 > ERROR: Task (/work/repository/mickledore/meta-qoriq/recipes-kernel/linux/= linux-qoriq_6.1.bb:do_compile) failed with exit code '1' > > The dts that I am adding is installed at: > > /tmp/work/lx2160ardb-fsl-linux/linux-qoriq/6.1.55+gitAUTOINC+770c5fe2= c1-r0/arch/arm64/boot/dts/freescale/lgs-scv4.dts > > In our customer layer I created the following file structure and associat= ed files: > > recipes-kernel > |--- linux > |-- linux-qoriq_%.bbappend > |-- files > |-- lgs-scv4.dts (custom device tree) > > My linux-qoriq_%.bbappend contains the following: > > KERNEL_DEVICETREE:append =3D "freescale/lgs-scv4.dtb" The actual mistake is here. `:append` does not add a space, so your DTB list contains a file that cannot be found. If you change the code to: KERNEL_DEVICETREE +=3D "freescale/lgs-scv4.dtb" then it shall work for you. See [1] for description of variable expansion. > FILESEXTRAPATHS:append :=3D "${THISDIR}/files:" > SRC_URI:append:lx2160ardb =3D " \ > file://lgs-scv4.dts;subdir=3Darch/${ARCH}/boot/dts/freescale \ > " > So it appears that the dts file is getting installed by the above but it = is not getting compiled into the dtb. I am not sure what step I am missing= . > > > > > > > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- > Links: You receive all messages sent to this group. > View/Reply Online (#24938): https://lists.yoctoproject.org/g/meta-freesca= le/message/24938 > Mute This Topic: https://lists.yoctoproject.org/mt/105556991/3617192 > Group Owner: [email protected] > Unsubscribe: https://lists.yoctoproject.org/g/meta-freescale/unsub [andre= [email protected]] > -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- > --=20 Regards, Andrey. Link: [1]: https://docs.yoctoproject.org/bitbake/2.6/bitbake-user-manual/bi= tbake-user-manual-metadata.html#appending-and-prepending-with-spaces