From: Josef Holzmayr <holzmayr@rsi-elektrotechnik.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] cmake: add toolchain sysroot to search directive
Date: Tue, 7 Feb 2012 11:33:55 +0100 [thread overview]
Message-ID: <1328610835-18531-1-git-send-email-holzmayr@rsi-elektrotechnik.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 1693 bytes --]
Signed-off-by: Josef Holzmayr <holzmayr@rsi-elektrotechnik.de>
---
config/cmake/toolchain-target.cmake.in | 2 +-
scripts/lib/ptxd_make_cmake_toolchain.sh | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/config/cmake/toolchain-target.cmake.in b/config/cmake/toolchain-target.cmake.in
index d316db5..e97fe6c 100644
--- a/config/cmake/toolchain-target.cmake.in
+++ b/config/cmake/toolchain-target.cmake.in
@@ -14,7 +14,7 @@ SET(CMAKE_C_COMPILER @CC@)
SET(CMAKE_CXX_COMPILER @CXX@)
# where is the target environment
-SET(CMAKE_FIND_ROOT_PATH @SYSROOT@)
+SET(CMAKE_FIND_ROOT_PATH @SYSROOT@ @SYSROOT_TOOLCHAIN@)
# additional search directories
include_directories( @INCLUDE_DIRECTORIES@)
diff --git a/scripts/lib/ptxd_make_cmake_toolchain.sh b/scripts/lib/ptxd_make_cmake_toolchain.sh
index 4848475..7a3302a 100644
--- a/scripts/lib/ptxd_make_cmake_toolchain.sh
+++ b/scripts/lib/ptxd_make_cmake_toolchain.sh
@@ -33,6 +33,7 @@ ptxd_make_cmake_toolchain_target() {
CXX="$(which "${CXX}")" \
\
SYSROOT="${PTXDIST_PATH_SYSROOT_ALL//:/ }" \
+ SYSROOT_TOOLCHAIN="${PTXDIST_SYSROOT_TOOLCHAIN//:/ }" \
INCLUDE_DIRECTORIES="${sysroot_prefix//://include }" \
LINK_DIRECTORIES="${sysroot_prefix//://lib }" \
\
--
1.7.8.3
--
_____________________________________________________________
R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
Fon: +49 8444 9204-0
Fax: +49 8444 9204-50
www.rsi-elektrotechnik.de
_____________________________________________________________
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Gesch�ftsf�hrer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548
[-- Attachment #2: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
next reply other threads:[~2012-02-07 10:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-07 10:33 Josef Holzmayr [this message]
2012-02-07 11:46 ` Alexander Dahl
2012-02-07 11:57 ` Josef Holzmayr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1328610835-18531-1-git-send-email-holzmayr@rsi-elektrotechnik.de \
--to=holzmayr@rsi-elektrotechnik.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox