diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-02-18 20:39:38 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-02-18 20:39:38 +0200 |
commit | 81f0ea009377983a845c1903352786a69c9945fe (patch) | |
tree | ff5d39d87500e5aee4ece7fcce1231f0e9f45a23 /arch | |
parent | aa2b2ff0670c28ad999774b4ea5fb510da14a9c2 (diff) |
Add simple mechanism to specify version-based extra CFLAGS
Platform files can specify extra CFLAGS by extending the kcflags
environment variable. When a kernel tree for a platform contains both
BSP and mainline branches, different CFLAGS may be needed, as BSPs are
usually littered with warnings. Make it possible to specify extra CFLAGS
per kernel version through a new extra_kcflags array.
This mechanism can be extended later if needed by storing version
comparison strings as array keys (e.g. "<=4.19").
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions