From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Markus Niebel Date: Tue, 25 Nov 2014 14:24:39 +0100 Message-Id: <1416921879-1834-1-git-send-email-list-09_ptxdist@tqsc.de> Subject: [ptxdist] [PATCH] systemd: add SYSTEMD_CPPFLAGS for kernel headers Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: m.olbrich@pengutronix.de, Markus Niebel From: Markus Niebel systemd uses cpp to generate tables for keymappings. Without setting CPPFLAGS the toolchain headers will be used for generation but local kernel headers for compilation. This can break compile. tested with kernel 3.9 Signed-off-by: Markus Niebel --- rules/systemd.make | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rules/systemd.make b/rules/systemd.make index b0f7ce0..8c425e4 100644 --- a/rules/systemd.make +++ b/rules/systemd.make @@ -44,6 +44,9 @@ SYSTEMD_CONF_ENV += cc_cv_CFLAGS__flto=no SYSTEMD_CFLAGS := \ -I$(KERNEL_HEADERS_INCLUDE_DIR) +SYSTEMD_CPPFLAGS := \ + -I$(KERNEL_HEADERS_INCLUDE_DIR) + # # autoconf # -- 2.1.1 -- ptxdist mailing list ptxdist@pengutronix.de