diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-05-10 10:30:10 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-05-10 11:25:13 +0200 |
commit | c9b9973cae634c1d3ea2f5f5b79ee5a6f1f8d5c1 (patch) | |
tree | 50bd2f5f2bd2fc486d1ba9843da1cd83dae47273 | |
parent | 6527f8cca99218d4cd3d22dc55c51b4824bb1228 (diff) | |
download | OSELAS.Toolchain-c9b9973cae634c1d3ea2f5f5b79ee5a6f1f8d5c1.tar.gz OSELAS.Toolchain-c9b9973cae634c1d3ea2f5f5b79ee5a6f1f8d5c1.tar.xz |
cross-gcc: add sysroot for search paths
$build_tooldir is used for various search paths, so it must include the
sysroot. Otherwise, xgcc will search in /opt/. The search paths will either
not exist, or contain a different version of the toolchain.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/cross-gcc.make | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rules/cross-gcc.make b/rules/cross-gcc.make index aef730c..c4ef5fa 100644 --- a/rules/cross-gcc.make +++ b/rules/cross-gcc.make @@ -146,6 +146,14 @@ $(STATEDIR)/cross-gcc.prepare: @$(call touch) # ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +CROSS_GCC_MAKE_OPT := \ + build_tooldir=$(PTXDIST_SYSROOT_CROSS)$(PTXCONF_PREFIX_CROSS)/$(PTXCONF_GNU_TARGET) \ + all + +# ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- |