mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bernhard Walle <bernhard@bwalle.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 2/3] kernel: Use host-elf-h-compat
Date: Sun, 22 Jan 2012 12:43:14 +0100	[thread overview]
Message-ID: <1327232595-25378-3-git-send-email-bernhard@bwalle.de> (raw)
In-Reply-To: <1327232595-25378-1-git-send-email-bernhard@bwalle.de>

Add a dependency to the host tool and set the include flags properly.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
 platforms/hosttools.in |    1 +
 platforms/kernel.in    |    1 +
 rules/kernel.make      |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/platforms/hosttools.in b/platforms/hosttools.in
index 155b30b..0435545 100644
--- a/platforms/hosttools.in
+++ b/platforms/hosttools.in
@@ -5,6 +5,7 @@ source "rules/host-cmake.in"
 source "rules/host-cramfs.in"
 source "rules/host-dosfstools.in"
 source "rules/host-e2fsprogs.in"
+source "rules/host-elf-h-compat.in"
 source "rules/host-genext2fs.in"
 source "rules/host-genpart.in"
 source "rules/host-gettext.in"
diff --git a/platforms/kernel.in b/platforms/kernel.in
index b601284..4391e79 100644
--- a/platforms/kernel.in
+++ b/platforms/kernel.in
@@ -2,6 +2,7 @@ menuconfig KERNEL
 	bool
 	default y
 	select IMAGE_KERNEL
+	select HOST_ELF_H_COMPAT
 	select HOST_UMKIMAGE		if KERNEL_IMAGE_U
 	select HOST_XZ			if KERNEL_XZ
 	select HOST_LZOP		if KERNEL_LZOP
diff --git a/rules/kernel.make b/rules/kernel.make
index a445182..f125a69 100644
--- a/rules/kernel.make
+++ b/rules/kernel.make
@@ -47,6 +47,7 @@ KERNEL_ENV 	:= KCONFIG_NOTIMESTAMP=1
 KERNEL_MAKEVARS := \
 	$(PARALLELMFLAGS) \
 	HOSTCC=$(HOSTCC) \
+	HOSTCFLAGS=$(HOST_CPPFLAGS) $(HOST_CFLAGS) \
 	ARCH=$(PTXCONF_KERNEL_ARCH_STRING) \
 	CROSS_COMPILE=$(KERNEL_CROSS_COMPILE) \
 	\
-- 
1.7.7.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2012-01-22 11:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-22 11:43 [ptxdist] Fix missing elf.h on Darwin Bernhard Walle
2012-01-22 11:43 ` [ptxdist] [PATCH 1/3] Add host-elf-h-compat package Bernhard Walle
2012-01-24  7:53   ` Michael Olbrich
2012-01-22 11:43 ` Bernhard Walle [this message]
2012-01-24  9:43   ` [ptxdist] [PATCH 2/3] kernel: Use host-elf-h-compat Michael Olbrich
2012-01-22 11:43 ` [ptxdist] [PATCH 3/3] module-init-tools: Depend on HOST_ELF_H_COMPAT Bernhard Walle

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=1327232595-25378-3-git-send-email-bernhard@bwalle.de \
    --to=bernhard@bwalle.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