mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-23 21:43:30 +08:00
4cf79d9b71
Cmake supports multiple generators. For now, Buildroot only uses the venerable "GNU Makefile" generator, which generates Makefiles as the build backend. Cmake also has support for Ninja as a build backend, and provides the corresponding generator. Ninja is a small build system with a focus on speed. It is mainly used with the meson build system, but also cmake has very good support for it. Packages that are selecting Ninja (or over time another generator), should also use the _BUILD_{ENV,OPTS} variables instead of the _MAKE variables. No _INSTALL{,_STAGING,_TARGET}_OPTS used so far, so reuse as cmake install opts: $ grep '_INSTALL_OPTS' $(git grep -l -E '\$\(eval \$\((host-)?cmake-package))') $ grep '_INSTALL_STAGING_OPTS' $(git grep -l -E '\$\(eval \$\((host-)?cmake-package))') $ grep '_INSTALL_TARGET_OPTS' $(git grep -l -E '\$\(eval \$\((host-)?cmake-package))') The _MAKE_{ENV,OPTS} are copied to _BUILD_{ENV,OPTS}, involved packages: $ grep '_MAKE_ENV =' $(git grep -l -E '\$\(eval \$\((host-)?cmake-package))') package/netopeer2/netopeer2.mk:NETOPEER2_MAKE_ENV = \ package/racehound/racehound.mk:RACEHOUND_MAKE_ENV = $(LINUX_MAKE_FLAGS) (qt6, webkitgtk, and wpewebkit also match, but already use -Gninja) $ grep '_MAKE_OPTS =' $(git grep -l -E '\$\(eval \$\((host-)?cmake-package))') package/mariadb/mariadb.mk:HOST_MARIADB_MAKE_OPTS = import_executables package/zeek/zeek.mk:HOST_ZEEK_MAKE_OPTS = binpac bifcl Only "musepack" seems to overwrite MAKE to enforce -j1, so replace it: $ grep '_MAKE =' $(git grep -l -E '\$\(eval \$\((host-)?cmake-package))') package/musepack/musepack.mk:MUSEPACK_MAKE = $(MAKE1) Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com> Reviewed-by: John Keeping <john@metanate.com> [yann.morin.1998@free.fr: - switch to FOO_CMAKE_BACKEND = (make|ninja) - use firstword of $(MAKE), not $(BR2_MAKE) - explain why we use firstword of $(MAKE) - update manual with the three new variables - yweak commit log ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> |
||
---|---|---|
.. | ||
adding-board-support.txt | ||
adding-packages-asciidoc.txt | ||
adding-packages-autotools.txt | ||
adding-packages-cargo.txt | ||
adding-packages-cmake.txt | ||
adding-packages-conclusion.txt | ||
adding-packages-directory.txt | ||
adding-packages-generic.txt | ||
adding-packages-gettext.txt | ||
adding-packages-golang.txt | ||
adding-packages-hooks.txt | ||
adding-packages-kconfig.txt | ||
adding-packages-kernel-module.txt | ||
adding-packages-linux-kernel-spec-infra.txt | ||
adding-packages-luarocks.txt | ||
adding-packages-meson.txt | ||
adding-packages-perl.txt | ||
adding-packages-python.txt | ||
adding-packages-qmake.txt | ||
adding-packages-rebar.txt | ||
adding-packages-tips.txt | ||
adding-packages-virtual.txt | ||
adding-packages-waf.txt | ||
adding-packages.txt | ||
advanced.txt | ||
appendix.txt | ||
beyond-buildroot.txt | ||
ccache-support.txt | ||
common-usage.txt | ||
configure-other-components.txt | ||
configure.txt | ||
contribute.txt | ||
customize-configuration.txt | ||
customize-device-permission-tables.txt | ||
customize-directory-structure.txt | ||
customize-outside-br.txt | ||
customize-packages.txt | ||
customize-patches.txt | ||
customize-post-image.txt | ||
customize-quick-guide.txt | ||
customize-rootfs.txt | ||
customize-users-tables.txt | ||
customize.txt | ||
debugging-buildroot.txt | ||
developers.txt | ||
download-infra.txt | ||
download-location.txt | ||
faq-troubleshooting.txt | ||
getting.txt | ||
how-buildroot-works.txt | ||
integration-selinux-support.txt | ||
integration-systemd.txt | ||
integration.txt | ||
introduction.txt | ||
known-issues.txt | ||
legal-notice.txt | ||
make-tips.txt | ||
makedev-syntax.txt | ||
makeusers-syntax.txt | ||
manual.mk | ||
manual.txt | ||
migrating.txt | ||
package-make-target.txt | ||
patch-policy.txt | ||
prerequisite.txt | ||
quickstart.txt | ||
rebuilding-packages.txt | ||
release-engineering.txt | ||
resources.txt | ||
using-buildroot-debugger.txt | ||
using-buildroot-development.txt | ||
using-buildroot-toolchain.txt | ||
writing-rules.txt |