debian-linux/debian/rules.d/scripts
Ben Hutchings 34fd5c93e9 d/rules.d, d/rules.real: Build user-space tools with Kbuild where possible
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.
2025-07-15 14:02:40 +02:00
..
basic d/rules.d, d/rules.real: Build user-space tools with Kbuild where possible 2025-07-15 14:02:40 +02:00
genksyms d/rules.d, d/rules.real: Build user-space tools with Kbuild where possible 2025-07-15 14:02:40 +02:00
kconfig d/rules.d, d/rules.real: Build user-space tools with Kbuild where possible 2025-07-15 14:02:40 +02:00
lib/kdoc linux-kbuild: Update for rewrite of kernel-doc in Python 2025-07-12 19:00:54 +02:00
mod d/rules.d: Introduce and use srcdir variable for upstream source dir 2025-07-15 13:48:51 +02:00
Makefile linux-kbuild: Update for rewrite of kernel-doc in Python 2025-07-12 19:00:54 +02:00