From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TJkQX-0000uC-BP for ptxdist@pengutronix.de; Thu, 04 Oct 2012 14:21:17 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1TJkQX-00010N-An for ptxdist@pengutronix.de; Thu, 04 Oct 2012 14:21:17 +0200 Date: Thu, 4 Oct 2012 14:21:17 +0200 From: Michael Olbrich Message-ID: <20121004122117.GI19651@pengutronix.de> References: <84D7328F545A4040B6CE2CB7BE091E937AA738@exchange.Neuberger.local> <20120930130151.GB19651@pengutronix.de> <84D7328F545A4040B6CE2CB7BE091E937AAA93@exchange.Neuberger.local> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <84D7328F545A4040B6CE2CB7BE091E937AAA93@exchange.Neuberger.local> Subject: Re: [ptxdist] [PATCH] schedtool: add package Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 On Mon, Oct 01, 2012 at 09:39:14AM +0200, Wagner Martin wrote: > > > + > > > +SCHEDTOOL_CONF_TOOL := NO > > > +SCHEDTOOL_MAKE_ENV := $(CROSS_ENV) > > > > add CPPFLAGS="$(CROSS_CFLAGS) $(CROSS_CPPFLAGS)" here. > > Otherwise the CROSS_CFLAGS set by ptxdist are missing (e.g. > > PTXCONF_TARGET_EXTRA_CFLAGS). > > Is there a documentation available about those flags, which are avaliable and > which one to use in which case? In "how to become a PTXdist Guru" there are > only a few. Looking what other people have done in other packages also didn't > help me much further as it seems that everyone is doing it a little > different... Unfortunately not. Take a look at rules/pre/Rules.make. The flags and tools defined there should always be used. > Can you give me a hint which package I can use as a example of how it should > be done? Or are the packages all this different from each other so that there > are just no similar ones? There is no good example, because every Makefile is broken in different ways. You can look at the packages (grep -l '_CONF_TOOL.*NO' rules/*.make) with plain Makefiles. It should give you some ideas, but please note, that some of them are not correct either. > > I know this is not easy to spot. So for testing things like > > this I usually > > have: > > PTXCONF_TARGET_EXTRA_CPPFLAGS="-Iptx-cppflags" > > PTXCONF_TARGET_EXTRA_CFLAGS="-Iptx-cflags" > > PTXCONF_TARGET_EXTRA_CXXFLAGS="-Iptx-cxxflags" > > PTXCONF_TARGET_EXTRA_LDFLAGS="-Lptx-ldflags" > > > > to see which flags are really added to the command line. > > What are those variables supposed to do? I've built my package once with > and once without them, but there is no difference on what is displayed. These variables are set in the platformconfig. If you use CROSS_CFLAGS etc. then they should show up as compiler flags. Michael -- 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 ptxdist@pengutronix.de