Attaching a compilation flag to a Linux kernel build -
what best practice adding compilation flag when building linux kernel? i'm interested know both because encounter same issue time time , enabling kenter, kdebug , kleave traces in http://lxr.free-electrons.com/source/security/keys/internal.h.
when compile module can use cflags_module
doesn't seem inject subtree builds when compile whole kernel.
currently add define directly source file, not lean solution.
it quite easy , had used had forgotten it. can use make cflags_kernel="<flags>"
.
Comments
Post a Comment