mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 00:04:06 -09:00
45e06e7e5721334ebf378f4e587fc85acc8c1afb
The build of the following basic configuration enabling the imagination Vulkan driver BR2_aarch64=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_AARCH64_GLIBC_STABLE=y BR2_PACKAGE_MESA3D=y BR2_PACKAGE_MESA3D_VULKAN_DRIVER_IMAGINATION=y fails with: meson.build:847:3: ERROR: Feature llvm cannot be disabled: CLC requires LLVM Adding just LLVM as a dependency is not enough, as then libclc is needed, then LLVMSPIRVLib, then clangBasic, then the pco_clc tool. In fact, like the Panfrost driver, building the Imagination driver requires building host tools using host-mesa3d. To fix this we: - Make the BR2_PACKAGE_MESA3D_OPENCL option selectable - Make sure that BR2_PACKAGE_MESA3D_VULKAN_DRIVER_IMAGINATION depends on BR2_PACKAGE_MESA3D_LLVM and select BR2_PACKAGE_MESA3D_NEEDS_PRECOMP_COMPILER (the latter being needed to build host-mesa3d) - Make sure the host-mesa3d builds imagination tools (-Dtools=imagination) and install pco_clc (HOST_MESA3D_INSTALL_PCO_CLC). This requires introducing HOST_MESA3D_TOOLS as a list of tools to build, which then gets used to construct the -Dtools argument, as we can now have both "panfrost" and "imagination" in this list. With all this, the defconfig above builds successfully. This has been broken since Buildroot commit5e818c16a3, which introduced the vulkan driver support. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Julien Olivain <ju.o@free.fr> (cherry picked from commite1d159c5d5) Signed-off-by: Thomas Perale <thomas.perale@mind.be>
…
…
…
…
Buildroot is a simple, efficient and easy-to-use tool to generate embedded Linux systems through cross-compilation. The documentation can be found in docs/manual. You can generate a text document with 'make manual-text' and read output/docs/manual/manual.text. Online documentation can be found at http://buildroot.org/docs.html To build and use the buildroot stuff, do the following: 1) run 'make menuconfig' 2) select the target architecture and the packages you wish to compile 3) run 'make' 4) wait while it compiles 5) find the kernel, bootloader, root filesystem, etc. in output/images You do not need to be root to build or run buildroot. Have fun! Buildroot comes with a basic configuration for a number of boards. Run 'make list-defconfigs' to view the list of provided configurations. Please feed suggestions, bug reports, insults, and bribes back to the buildroot mailing list: buildroot@buildroot.org You can also find us on #buildroot on OFTC IRC. If you would like to contribute patches, please read https://buildroot.org/manual.html#submitting-patches
Description
Languages
Makefile
62.5%
Python
19%
C
8.5%
Shell
6.1%
PHP
1.4%
Other
2.1%