From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hgrn5-000530-TD for ptxdist@pengutronix.de; Fri, 28 Jun 2019 16:23:51 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1hgrn5-0003e0-K8 for ptxdist@pengutronix.de; Fri, 28 Jun 2019 16:23:51 +0200 Date: Fri, 28 Jun 2019 16:23:51 +0200 From: Michael Olbrich Message-ID: <20190628142351.c65ztqmdt7zqtvby@pengutronix.de> References: <1561641950.8412.6.camel@diehl.com> <20190628071207.mylkzxujmzfv7iny@pengutronix.de> <1561709649.6672.6.camel@diehl.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1561709649.6672.6.camel@diehl.com> Subject: Re: [ptxdist] Question to BUILDTIME List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Hi, On Fri, Jun 28, 2019 at 08:14:09AM +0000, Denis OSTERLAND wrote: > Am Freitag, den 28.06.2019, 09:12 +0200 schrieb Michael Olbrich: > > On Thu, Jun 27, 2019 at 01:25:50PM +0000, Denis OSTERLAND wrote: > > >=A0 > > > select if BUILDTIME > > >=A0 > > > works only if has no prompt, correct? > > No, 'if BUILDTIME' can be used with any package. It just means, that The > > packages will be ordered accordingly at build-time but no dependency wi= ll > > be added to the resulting .ipk File. > This was how I understand it two. > The last time I used this feature is to long ago, to be sure ;-) > With recent release (ptxdist-2019.06.0) the package gets installed until = I remove prompt line. > = > I try to pin my problem down. > Where is the post processing which removes the dependencies with BUILDTIM= E? > I mean, in 'scripts/lib/ptxd_lib_dgen.sh' there is 'PTXDIST_DEP_TARGET=3D= "run" ptxd_kconfig_dep_all "${config[@]}"', > but the automatically selected package will stick if it has a prompt. I think I understand way you're trying to do. Consider this example: config FOO tristate select BAR if BUILDTIME prompt "foo" If 'foo' is enabled, then so is 'bar'. This means both symbols are enabled in the ptxconfig. This also means that both packages will be in the default package ist for the rootfs. That cannot be changed. What 'if BUILDTIME' means is, that 1. The make dependencies are a bit more relaxed, which can improve the build time. 2. There is no dependency for this in the ipkg. So you could remove the package 'bar' at runtime without removing 'foo'. Creating an image with 'foo' but without 'bar' is not easily done. I suppose you could create your own image with: IMAGE_BLA_PKGS :=3D $(filter-out bar,$(PTX_PACKAGES_INSTALL)) Regards, 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