diff --git a/molecules/odroid.common b/molecules/odroid.common new file mode 100644 index 0000000..84af370 --- /dev/null +++ b/molecules/odroid.common @@ -0,0 +1,13 @@ +# List of packages to add on the BeagleBoard xM +packages_to_add: + app-admin/eselect-uimage, + app-misc/sabayonlive-tools, + app-misc/sabayon-live, + app-misc/sabayon-skel, + net-misc/ntp, + sys-apps/keyboard-configuration-helpers, + sys-kernel/linux-odroid, + sys-process/vixie-cron + +# List of packages to remove from the BeagleBoard xM image +packages_to_remove: diff --git a/molecules/sabayon-arm-odroid-u2-x2-4G.spec b/molecules/sabayon-arm-odroid-u2-x2-4G.spec new file mode 100644 index 0000000..c8f6b08 --- /dev/null +++ b/molecules/sabayon-arm-odroid-u2-x2-4G.spec @@ -0,0 +1,24 @@ +%env %import ${SABAYON_MOLECULE_HOME:-/sabayon}/molecules/arm-base.common +%env %import ${SABAYON_MOLECULE_HOME:-/sabayon}/molecules/odroid.common + +# Release desc (the actual release description) +release_desc: armv7l Odroid U2/X2 + +# Release Version (used to generate release_file) +%env release_version: ${SABAYON_RELEASE:-11} + +# Specify image file name (image file name will be automatically +# produced otherwise) +%env image_name: Sabayon_Linux_${SABAYON_RELEASE:-11}_armv7l_Odroid_U2_X2_4GB.img + +# Specify the image file size in Megabytes. This is mandatory. +# To avoid runtime failure, make sure the image is large enough to fit your +# chroot data. +image_mb: 3800 + +# Path to boot partition data (MLO, u-boot.img etc) +%env source_boot_directory: ${SABAYON_MOLECULE_HOME:-/sabayon}/boot/arm/odroid-u2-x2 + +# External script that will generate the image file. +# The same can be copied onto a MMC by using dd +%env image_generator_script: ${SABAYON_MOLECULE_HOME:-/sabayon}/scripts/mkloopcard_odroid_u2_x2_chroot_hook.sh diff --git a/scripts/mkloopcard_odroid_u2_x2_chroot_hook.sh b/scripts/mkloopcard_odroid_u2_x2_chroot_hook.sh new file mode 100755 index 0000000..adf8056 --- /dev/null +++ b/scripts/mkloopcard_odroid_u2_x2_chroot_hook.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +/usr/sbin/env-update +. /etc/profile + +. /mkloopcard_chroot.include || exit 1 + +setup_displaymanager +setup_desktop_environment +setup_users +setup_boot + +exit 0