summaryrefslogtreecommitdiffstats
path: root/platforms
diff options
context:
space:
mode:
authorRoland Hieber <rhi@pengutronix.de>2020-03-02 15:01:46 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-03-20 13:18:55 +0100
commitc6d3e7c6f11f5181dfc52a8fbac4bc10e28f8ec7 (patch)
tree96ec4404c1e4f1158809dde4eb455c3ee1af5f02 /platforms
parent1a19487e517e18830db51f188daf0f24572ecfb3 (diff)
downloadptxdist-c6d3e7c6f11f5181dfc52a8fbac4bc10e28f8ec7.tar.gz
ptxdist-c6d3e7c6f11f5181dfc52a8fbac4bc10e28f8ec7.tar.xz
platforms: document precedence rules for TARGET_EXTRA_*FLAGS
scripts/wrapper/libwrapper.sh adds these global options before the rest of its command line, so later options from the package's build system will overwrite them. Document this fact in case anybody wonders why these options cannot be used to overwrite the default passed by the package. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Message-Id: <20200302140146.8420-1-rhi@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'platforms')
-rw-r--r--platforms/toolchain_options.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/platforms/toolchain_options.in b/platforms/toolchain_options.in
index afae2a67c..0361bf6e7 100644
--- a/platforms/toolchain_options.in
+++ b/platforms/toolchain_options.in
@@ -95,22 +95,38 @@ config TARGET_EXTRA_CPPFLAGS
help
Extra options for the C preprocessor.
+ Note: if conflicting preprocessor options are passed, the options
+ specified by the package's build system take precedence over those
+ specified here.
+
config TARGET_EXTRA_CFLAGS
string
prompt "Extra CFLAGS (c)"
help
Extra options for the C compiler.
+ Note: if conflicting compiler options are passed, the options
+ specified by the package's build system take precedence over those
+ specified here.
+
config TARGET_EXTRA_CXXFLAGS
string
prompt "Extra CXXFLAGS (c++)"
help
Extra options for the C++ compiler.
+ Note: if conflicting compiler options are passed, the options
+ specified by the package's build system take precedence over those
+ specified here.
+
config TARGET_EXTRA_LDFLAGS
string
prompt "Extra LDFLAGS (ld)"
help
Extra options for the linker.
+ Note: if conflicting linker options are passed, the options
+ specified by the package's build system take precedence over those
+ specified here.
+
endmenu