From: Sandy Patterson <apatterson@sightlogix.com>
To: Michael Olbrich <m.olbrich@pengutronix.de>,
Marc Kleine-Budde <mkl@pengutronix.de>
Cc: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] kernel-headers: build out-of-tree
Date: Tue, 25 Feb 2020 10:20:34 -0500 [thread overview]
Message-ID: <CABCGj3adC94yksozJNRS_8uB3GrYFjAAOwsKRm==gbHUD6aerw@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1546 bytes --]
I am not sure if the following patch is what was intended with the change
to OOT=KEEP change for kernel. We have a folder within our BSP with a
kernel tree and we symlink to that folder using local_src/kernel.
<platformname> and local_src/kernel-header.<platformname>.
We use an external kernel source tree and kernel headers from the same
folder. It seems with our kernel at least building the kernel-headers in
tree causes the out-of-tree kernel to fail to build.
---
| 3 +++
1 file changed, 3 insertions(+)
--git a/rules/kernel-header.make b/rules/kernel-header.make
index c173eb74b..6f540409f 100644
--- a/rules/kernel-header.make
+++ b/rules/kernel-header.make
@@ -25,8 +25,10 @@ KERNEL_HEADER_URL :=
https://git.kernel.org/torvalds/t/$(KERNEL_HEADER).$(KERNE
endif
KERNEL_HEADER_SOURCE :=
$(SRCDIR)/linux-$(KERNEL_HEADER_VERSION).$(KERNEL_HEADER_SUFFIX)
KERNEL_HEADER_DIR := $(BUILDDIR)/kernel-header-$(KERNEL_HEADER_VERSION)
+KERNEL_HEADER_BUILD_DIR := $(KERNEL_HEADER_DIR)-build
KERNEL_HEADER_PKGDIR := $(PKGDIR)/kernel-header-$(KERNEL_HEADER_VERSION)
KERNEL_HEADER_LICENSE := GPL-2.0-only
+KERNEL_HEADER_BUILD_OOT := KEEP
#
----------------------------------------------------------------------------
# Prepare
@@ -37,6 +39,7 @@ KERNEL_HEADER_PATH := PATH=$(CROSS_PATH)
KERNEL_HEADER_CONF_TOOL := NO
KERNEL_HEADER_MAKE_OPT := \
V=$(PTXDIST_VERBOSE) \
+ O=$(KERNEL_HEADER_BUILD_DIR) \
HOSTCC=$(HOSTCC) \
ARCH=$(GENERIC_KERNEL_ARCH) \
CROSS_COMPILE=$(PTXCONF_COMPILER_PREFIX)
--
2.20.1
[-- Attachment #1.2: Type: text/html, Size: 2565 bytes --]
[-- Attachment #2: Type: text/plain, Size: 92 bytes --]
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next reply other threads:[~2020-02-25 15:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-25 15:20 Sandy Patterson [this message]
2020-02-26 17:45 ` Michael Olbrich
2020-02-27 9:28 ` Roland Hieber
2020-03-02 15:52 ` Sandy Patterson
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='CABCGj3adC94yksozJNRS_8uB3GrYFjAAOwsKRm==gbHUD6aerw@mail.gmail.com' \
--to=apatterson@sightlogix.com \
--cc=m.olbrich@pengutronix.de \
--cc=mkl@pengutronix.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