File Images.kiwi.in of Package JeOS
<?xml version="1.0" encoding="utf-8"?>
#define QUOTED(x) #x
#define QUOTED_EXPAND(x) QUOTED(x)
/*
*
*/
#define TYPE_ROOTFS 0
#define TYPE_JEOS 1
#define TYPE_XFCE 2
#define VERSION 12.2
#define SUFFIX ARM
#define IMAGENAME openSUSE-VERSION-SUFFIX-IMAGE_TYPE_STRING-FLAVOR_TYPE
#define IMAGENAME_STR QUOTED_EXPAND(IMAGENAME)
#define PKG_TAG(x) <package name=QUOTED_EXPAND(x)/>
#define PKG_BOOT_TAG(x) <package name=QUOTED_EXPAND(x) bootinclude="true"/>
/*
* Define the specification
*/
#define SPECIFICATION openSUSE VERSION IMAGE_TYPE_STRING image for SUFFIX (FLAVOR_TYPE) boards
/*
* Define the bootkernel (default is default)
*/
#if IS_FLAVOR_panda
# define BOOTKERNEL omap2plus
# define KERNEL_CMDLINE_SER "console=ttyO2 vram=16M"
# define KERNEL_CMDLINE_GFX "vram=16M"
# define EXTRA_PACKAGES PKG_BOOT_TAG(u-boot-omap4panda)
#elif IS_FLAVOR_beagle
# define BOOTKERNEL omap2plus
# define KERNEL_CMDLINE_SER "console=ttyO2 vram=16M"
# define KERNEL_CMDLINE_GFX "vram=16M"
# define EXTRA_PACKAGES PKG_BOOT_TAG(u-boot-omap3beagle) \
PKG_BOOT_TAG(x-loader-omap3beagle)
#elif IS_FLAVOR_highbank
# define BOOTKERNEL highbank
# define KERNEL_CMDLINE_SER ""
# define KERNEL_CMDLINE_GFX ""
# define EXTRA_PACKAGES
#elif IS_FLAVOR_cubox
# define BOOTKERNEL cubox
# define KERNEL_CMDLINE_SER "console=ttyS0,115200n8"
# define KERNEL_CMDLINE_GFX "console=ttyS0,115200n8"
# define EXTRA_PACKAGES
#elif IS_FLAVOR_efikamx
# define BOOTKERNEL imx51
# define KERNEL_CMDLINE_SER "console=ttymxc0,115200"
# define KERNEL_CMDLINE_GFX "console=ttymxc0,115200"
# define EXTRA_PACKAGES
#elif IS_FLAVOR_origen
# define BOOTKERNEL exynos
# define KERNEL_CMDLINE_SER "console=ttySAC2,115200n8"
# define KERNEL_CMDLINE_GFX "console=ttySAC2,115200n8"
# define EXTRA_PACKAGES PKG_BOOT_TAG(u-boot-origen)
#else
# define BOOTKERNEL default
# define KERNEL_CMDLINE_SER ""
# define KERNEL_CMDLINE_GFX ""
# define EXTRA_PACKAGES
#endif
/* Use the respective command line syntax */
#if (IMAGE_TYPE == TYPE_XFCE)
#define KERNEL_CMDLINE_STR KERNEL_CMDLINE_GFX
#else
#define KERNEL_CMDLINE_STR KERNEL_CMDLINE_SER
#endif
<image schemaversion="5.5" name=IMAGENAME_STR>
<!--
*****************************************************************************
*****************************************************************************
The *.kiwi files are autogenerated, please edit Images.kiwi.in instead!
sh pre_checkin.sh
re-generates the *.kiwi file!
*****************************************************************************
*****************************************************************************
-->
<description type="system">
<author>Marcus Schäfer</author>
<contact>ms@novell.com</contact>
<specification>
SPECIFICATION
</specification>
</description>
<preferences>
#if IS_FLAVOR_rootfs
<type image="tbz" primary="true"/>
#else
<type image="oem" filesystem="ext3" boot="oemboot/suse-12.2" bootloader="uboot"
kernelcmdline=KERNEL_CMDLINE_STR
editbootconfig="uboot-image-setup" editbootinstall="uboot-image-install">
<oemconfig>
<oem-swapsize>500</oem-swapsize>
</oemconfig>
</type>
#endif
<version>1.12.1</version>
<packagemanager>zypper</packagemanager>
<locale>en_US</locale>
<keytable>us.map.gz</keytable>
<timezone>Europe/Berlin</timezone>
<hwclock>utc</hwclock>
<rpm-excludedocs>true</rpm-excludedocs>
<bootloader-theme>openSUSE</bootloader-theme>
<bootsplash-theme>openSUSE</bootsplash-theme>
</preferences>
<users group="root">
<user pwd="$1$wYJUgpM5$RXMMeASDc035eX.NbYWFl0" home="/root" name="root"/>
</users>
<repository type="rpm-md">
<source path="obs://openSUSE:12.2:ARM/standard"/>
</repository>
<!-- dont remove qemu binfmt helpers from initrd -->
<strip type="tools">
<file name="qemu-arm-binfmt"/>
<file name="qemu-arm"/>
</strip>
<drivers>
<file name="drivers/mmc/*"/>
</drivers>
<packages type="bootstrap">
PKG_BOOT_TAG(kernel-BOOTKERNEL)
EXTRA_PACKAGES
#include "packagelist.inc"
<!-- custom hook scripts for uboot -->
<archive name="uboot-setup.tgz" bootinclude="true"/>
</packages>
<packages type="delete">
<!-- not needed at runtime, but removing would happen too early
<package name="qemu-linux-user-arm" />
-->
</packages>
</image>