On Tue, Nov 25, 2014 at 02:24:39PM +0100, Markus Niebel wrote: > From: Markus Niebel <[email protected]> > > 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 <[email protected]> > --- > 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) > +
Hmmm, I think the correct solution is to set SYSTEMD_CPPFLAGS instead of SYSTEMD_CFLAGS, right? Could you test that please? I don't a BSP right now, where this fails, so I cannot test it. Michael > # > # autoconf > # > -- > 2.1.1 > > > -- > ptxdist mailing list > [email protected] > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list [email protected]
