lkml.org 
[lkml]   [2017]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v0 1/5] x86_64: march=native support
From
Date
One more thing: you HAVE to make
arch/x86/include/asm/required-features.h aware of any features that the
kernel unconditionally depend on.

Again, using the gcc cpp macros that reflect what bits gcc itself
broadcast. However, this is perhaps where CONFIG flags become
important, since required-features.h has to be able to be compiled in
the bootcode environment, which is different from the normal kernel
compiler environment.

We could, however, automagically generate a reflection of these as a
header file:

echo '#ifndef __LINUX_CC_DEFINES__'
echo '#define __LINUX_CC_DEFINES__'
$(CC) $(c_flags) -x c -E -Wp,-dM /dev/null | sort | \
sed -nr -e 's/^#define __([^[:space]]+)__$/#define __KERNEL_CC_\1/p'
echo '#endif

-hpa

\
 
 \ /
  Last update: 2017-12-08 00:38    [W:0.057 / U:4.072 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site