mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Stein <alexander.stein@systec-electronic.com>
To: ptxdist@pengutronix.de
Cc: Alexander Stein <alexander.stein@systec-electronic.com>
Subject: [ptxdist] [PATCH] Add ${SYSROOT}/kernel-headers to include path
Date: Tue, 19 Feb 2013 09:48:16 +0100	[thread overview]
Message-ID: <1361263696-15206-1-git-send-email-alexander.stein@systec-electronic.com> (raw)

This is needed to use the kernel-headers in cmake based projects.

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
---
 scripts/lib/ptxd_make_00-init.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/lib/ptxd_make_00-init.sh b/scripts/lib/ptxd_make_00-init.sh
index 6257648..9927527 100644
--- a/scripts/lib/ptxd_make_00-init.sh
+++ b/scripts/lib/ptxd_make_00-init.sh
@@ -128,12 +128,12 @@ ptxd_init_sysroot_toolchain() {
 #
 ptxd_init_ptxdist_path_sysroot() {
     local sysroot="$(ptxd_get_ptxconf PTXCONF_SYSROOT_TARGET)"
-    local sysroot_prefix="${sysroot}:${sysroot}/usr"
+    local sysroot_prefix="${sysroot}:${sysroot}/usr:${sysroot}/kernel-headers"
 
     local sysroot_base_platform
     if ptxd_init_get_sysroot_base_platform; then
 	sysroot="${sysroot}:${sysroot_base_platform}"
-	sysroot_prefix="${sysroot_prefix}:${sysroot_base_platform}:${sysroot_base_platform}/usr"
+	sysroot_prefix="${sysroot_prefix}:${sysroot_base_platform}:${sysroot_base_platform}/usr:${sysroot_base_platform}/kernel-headers"
     fi
 
     local sysroot_all="${sysroot}"
-- 
1.8.1.2


-- 
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2013-02-19  8:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-19  8:48 Alexander Stein [this message]
2013-02-20 18:24 ` Michael Olbrich

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=1361263696-15206-1-git-send-email-alexander.stein@systec-electronic.com \
    --to=alexander.stein@systec-electronic.com \
    --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