From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from coredoba.hi.pengutronix.de ([2001:6f8:1178:2:219:99ff:fe56:8d7]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TG8Ev-0004br-Dm for ptxdist@pengutronix.de; Mon, 24 Sep 2012 14:58:21 +0200 Received: from jlu by coredoba.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1TG8Ev-0005HN-8Y for ptxdist@pengutronix.de; Mon, 24 Sep 2012 14:58:21 +0200 Message-ID: <1348491501.3491.18.camel@coredoba.hi.pengutronix.de> From: Jan =?ISO-8859-1?Q?L=FCbbe?= Date: Mon, 24 Sep 2012 14:58:21 +0200 In-Reply-To: <50605488.1060908@tqsc.de> References: <50605488.1060908@tqsc.de> Mime-Version: 1.0 Subject: Re: [ptxdist] Howto add platform specific image creation step 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 Hi, On Mon, 2012-09-24 at 14:39 +0200, Markus Niebel wrote: > is there a way to create 2 (or more) images for one platform but > different media types (like SD-Card and eMMC)? > > Use cases: > > 1) Hardware platform is bootable from SD-card and eMMC etc. Kernel, > Rootfs are the same. Only small differences in bootloader (Barebox) > and bootloader environment. > > 2) Hardware platform has configuration options (RAM-size etc.) > > It is relative easy to build the bootloader twice ore more when simply > copying and renaming / adapting the Kconfig and make rule in project > local rules (as a hack for the first try). But in ptxd_make_bootable > image names are hard coded. This is possible with new new image generation support. Take a look at "ptxdist newpackage barebox" and "ptxdist newpackage image-genimage". Also, for examples you can look in: http://git.pengutronix.de/?p=platform-pengutronix-beagleboneti.git http://git.pengutronix.de/?p=platform-pengutronix-raspberrypi.git config/images, platforms and rules are the relevant directories. Regrads, Jan -- 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