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 [email protected]
