kbuild: Make the toolchain variables easily overwritable
authorBastian Blank <waldi@debian.org>
Sun, 22 Feb 2009 14:39:35 +0000 (15:39 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Sat, 20 Dec 2025 09:15:48 +0000 (10:15 +0100)
commit30c00ca4660604c2b5d07422bb95bad7fa6fa2c0
tree0c11cee2131e984407d9cb3ac69a7438b48bb8a7
parentdb21ac168337bcd2e5299e653fc235111a6b5394
kbuild: Make the toolchain variables easily overwritable

Forwarded: not-needed

Allow make variables to be overridden for each flavour by a file in
the build tree, .kernelvariables.

We currently use this for ARCH, KERNELRELEASE, CC, and in some cases
also CROSS_COMPILE, KCFLAGS.

This file can only be read after we establish the build tree, and all
use of $(ARCH) needs to be moved after this.

[bwh: Updated for 5.3: include .kernelvariables from current directory
 rather than using undefined $(obj).]

[carnil: Update for 6.13: Include .kernelvariables from $(objtree).]

Gbp-Pq: Topic debian
Gbp-Pq: Name kernelvariables.patch
Makefile