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>
Fri, 28 May 2021 08:31:38 +0000 (09:31 +0100)
commitde1786dbbfd5bcd295ac61fa6bc3aa7e9bc3942c
treeb227df7d18775483724f553620f07a9aa8b4b874
parent8aebcbc3ed799c0ce4bf5722ad7f284e06b2bb7a
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).]

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