From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28] helo=dude02.lab.pengutronix.de) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j2tcJ-0004cG-Iz for ptxdist@pengutronix.de; Sat, 15 Feb 2020 10:20:03 +0100 Received: from mol by dude02.lab.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1j2tcJ-0004J9-Ac for ptxdist@pengutronix.de; Sat, 15 Feb 2020 10:20:03 +0100 Date: Sat, 15 Feb 2020 10:20:03 +0100 From: Michael Olbrich Message-ID: <20200215092003.GB21732@pengutronix.de> References: <05f02949-036c-15b9-41ad-fce25b8638cf@ppc-ag.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <05f02949-036c-15b9-41ad-fce25b8638cf@ppc-ag.de> Subject: Re: [ptxdist] Building packages but not including them in the the resulting firmware image 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="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de On Fri, Feb 14, 2020 at 06:33:51PM +0100, Mircea Ciocan wrote: > Hello everybody, I'm trying to implement the following solution: > > I have a base firmware image configuration and a number of optional > packages, for some later choices of the customers. > > I don't want to have the optional packages installed in the base firmware > image at all, no matter the choices, but have them as installable packages > in separate IPKs for later use. > > So far, playing with the, rather sparse documented, feature of > _collections_, I was only able to build different monolithic firmware > versions, when I was marking the optional packages with "m" and with "y" in > the collection file. > > The separate IPKs are build, but they're also installed in the fw image, I > didn't find a way to build them as packages and exclude form installing in > the firmware image. > > Is there currently a way to that during a single run, to build the base > firmware and alongside of it, separate IPKs to be installed later with OPKG > ? > > So far right, now I have to do two runs, one with collections and one > without and discard the "fat" resulting image, which is rather cumbersome. There are multiple ways to do this. If the packages that are left out are all defined in your BSP then you can modify the rule: EXTRA_PACKAGES-$(PTXCONF_FOO) += foo All extra packages are built but not added to the roofs by default. Or you can modify the list of packages that are built into to rootfs. If you use the regular images that means overwriting image-root-tgz.make and setting: IMAGE_ROOT_TGZ_PKGS = $(call ptx/collection, $(call ptx/in-path,PTXDIST_PATH_LAYERS,configs/collectionconfig)) With something like this you could also create multiple images, with and without the extra packages in one build. These features are documented[1] but with a different use-case in mind. Michael [1] https://www.ptxdist.org/doc/daily_work_section.html#creating-individual-root-filesystems-for-each-variant -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de