mirror of
https://salsa.debian.org/kernel-team/linux.git
synced 2026-01-16 23:12:23 +00:00
Currently we do not use Kbuild to build user-space tools that may need to be cross-compiled. In some cases this has resulted in our needing to duplicate non-trivial rules from the upstream makefiles. However, we do now know how to set make variables to force a cross-build of tools that upstream expects to always be native. - Add a KBUILD_PROGS variable for programs that should be built with Kbuild. Define a rule for this in Makefile.inc if is defined, and add the contents of the variable to the dependencies of all-local and install-local-progs. - Since Kbuild depends on a native fixdep to build anything, put that in the expected location when we prepare user-space headers for the tools build. Rename the build-tools-headers target to reflect this additional function. - To avoid overwriting the native fixdep during the build, change scripts/basic/Makefile to build fixdep.host. - Change certs/Makefile, scripts/genksyms/Makefile, and scripts/kconfig/Makefile to define KBUILD_PROGS instead of PROGS, and delete their custom rules and definitions. |
||
|---|---|---|
| .. | ||
| basic | ||
| genksyms | ||
| kconfig | ||
| lib/kdoc | ||
| mod | ||
| Makefile | ||