aboutsummaryrefslogtreecommitdiffstats
path: root/debian/bin
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2019-09-11 15:15:50 +0100
committerBen Hutchings <ben@decadent.org.uk>2019-09-26 14:33:31 +0200
commitb9a36c0c5d0a138205adad91fbdaea81a68c3b52 (patch)
tree9f3f152ea87262605392014766dbc0d81a082880 /debian/bin
parentab7f724dbc8b942d3d8b0e85cceceb106be47fa7 (diff)
downloadkernel_replicant_linux-b9a36c0c5d0a138205adad91fbdaea81a68c3b52.tar.gz
kernel_replicant_linux-b9a36c0c5d0a138205adad91fbdaea81a68c3b52.tar.bz2
kernel_replicant_linux-b9a36c0c5d0a138205adad91fbdaea81a68c3b52.zip
Set KCFLAGS make variable instead of CFLAGS_{KERNEL,MODULE}
Kbuild ignores CFLAGS because compiler options for user-space may be entirely unsuitable for the kernel. However, it does support a KCFLAGS variable which is used for both built-in and modular code. Add our options to that instead of both CFLAGS_KERNEL and CFLAGS_MODULE.
Diffstat (limited to 'debian/bin')
-rwxr-xr-xdebian/bin/gencontrol.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/bin/gencontrol.py b/debian/bin/gencontrol.py
index 5469300ab26c..747c8b7ea24a 100755
--- a/debian/bin/gencontrol.py
+++ b/debian/bin/gencontrol.py
@@ -322,7 +322,7 @@ class Gencontrol(Base):
('compiler', 'COMPILER', False),
('compiler-filename', 'COMPILER', True),
('kernel-arch', 'KERNEL_ARCH', False),
- ('cflags', 'CFLAGS_KERNEL', True),
+ ('cflags', 'KCFLAGS', True),
('override-host-type', 'OVERRIDE_HOST_TYPE', True),
)