Hello, I'm trying to tailor a minimum build to fit in the 128 MB of QSPI memory (w/rootfs) so I started with modification of petalinux.conf in my meta-layer distro file. But adding TCLIBC = "musl" into that file ends up with errors during attempt to build XilSecure Library for both PMU and FSBL:
| make -C psu_pmu_0/libsrc/xilsecure_v5_0/src -s libs "SHELL=/bin/sh" "COMPILER=mb-gcc" "ASSEMBLER=mb-as" "ARCHIVER=mb-ar" "COMPILER_FLAGS= -O2 -c -mcpu=v9.2 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-g -ffunction-sections -fdata-sections -Wall -Wextra -fno-tree-loop-distribute-patterns -Os -flto -ffat-lto-objects" | Compiling XilSecure Library | make[3]: mb-gcc: No such file or directory | make[3]: *** [Makefile:63: xsecure_aes.o] Error 127 | make[2]: *** [Makefile:46: psu_pmu_0/libsrc/xilsecure_v5_0/src/make.libs] Error 2 | make[1]: *** [Makefile:18: all] Error 2 | make[1]: Leaving directory '/home/manveru/Projekty/Opteran/platform_yocto_recovery/build/tmp/work/odk3r1.x.4ia-opteran-linux-musl/pmu-firmware/2022.2+gitAUTOINC+5330a64c8e-r0/git/pmu-firmware/pmu-firmware/zynqmp_pmufw_bsp' | make: *** [Makefile:32: zynqmp_pmufw_bsp/psu_pmu_0/lib/libxil.a] Error 2 | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command. ERROR: Task (/home/manveru/Projekty/Opteran/platform_yocto_recovery/sources/core/../meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/pmu-firmware_2022.2.bb:do_compile) failed with exit code '1' ERROR: fsbl-firmware-2022.2+gitAUTOINC+5330a64c8e-r0 do_compile: oe_runmake failed and | make -C psu_cortexa53_0/libsrc/xilsecure_v5_0/src -s libs "SHELL=/bin/sh" "COMPILER=aarch64-none-elf-gcc" "ASSEMBLER=aarch64-none-elf-as" "ARCHIVER=aarch64-none-elf-ar" "COMPILER_FLAGS= -c" "EXTRA_COMPILER_FLAGS=-g -Wall -Wextra -fno-tree-loop-distribute-patterns -Os -flto -ffat-lto-objects" | Compiling XilSecure Library | make[3]: aarch64-none-elf-gcc: No such file or directory | make[3]: *** [Makefile:63: xsecure_aes.o] Error 127 | make[2]: *** [Makefile:46: psu_cortexa53_0/libsrc/xilsecure_v5_0/src/make.libs] Error 2 | make[1]: *** [Makefile:18: all] Error 2 | make[1]: Leaving directory '/home/manveru/Projekty/Opteran/platform_yocto_recovery/build/tmp/work/odk3r1.x.4ia-opteran-linux-musl/fsbl-firmware/2022.2+gitAUTOINC+5330a64c8e-r0/git/fsbl-firmware/fsbl-firmware/zynqmp_fsbl_bsp' | make: *** [Makefile:32: zynqmp_fsbl_bsp/psu_cortexa53_0/lib/libxil.a] Error 2 | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command. ERROR: Task (/home/manveru/Projekty/Opteran/platform_yocto_recovery/sources/core/../meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2022.2.bb:do_compile) failed with exit code '1' Looks like during the *original* way, these two are pulled ready to use. But with MUSL enabled bitbake wants to rebuild in full in the end. Both compilers (in fact these are scripts) seem to be available within the structure of the project: ./build/xsct/Vitis/2022.2/gnu/aarch64/lin/aarch64-none/bin/aarch64-none-elf-gcc ./build/xsct/Vitis/2022.2/gnu/microblaze/lin/bin/mb-gcc but after compiling PMU and FSBL for some time, these fail, not finding both under these locations. I've tried to export modified PATH in the .conf file, but that leads to other errors that probably are related to wrong versions of tools being picked up. Any suggestions on what may require fixing? Thank you. -- Kind regards, Michał Fita
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#5184): https://lists.yoctoproject.org/g/meta-xilinx/message/5184 Mute This Topic: https://lists.yoctoproject.org/mt/97888546/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-xilinx/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
