From fdfac62bdb98d3f3a23eaefcb60cce010fa2f54b Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Fri, 2 Mar 2012 14:54:09 +0100 Subject: [PATCH] [molecules] add armel molecules for BeagleBoard xM, BeagleBone and PandaBoard --- molecules/armel-base.common | 133 ++++++++++++++++++ .../sabayon-armel-beagleboard-xm-4G.spec | 24 ++++ .../sabayon-armel-beagleboard-xm-8G.spec | 24 ++++ .../sabayon-armel-beaglebone-base-2G.spec | 24 ++++ .../sabayon-armel-beaglebone-base-4G.spec | 24 ++++ molecules/sabayon-armel-pandaboard-4G.spec | 24 ++++ molecules/sabayon-armel-pandaboard-8G.spec | 24 ++++ 7 files changed, 277 insertions(+) create mode 100644 molecules/armel-base.common create mode 100644 molecules/sabayon-armel-beagleboard-xm-4G.spec create mode 100644 molecules/sabayon-armel-beagleboard-xm-8G.spec create mode 100644 molecules/sabayon-armel-beaglebone-base-2G.spec create mode 100644 molecules/sabayon-armel-beaglebone-base-4G.spec create mode 100644 molecules/sabayon-armel-pandaboard-4G.spec create mode 100644 molecules/sabayon-armel-pandaboard-8G.spec diff --git a/molecules/armel-base.common b/molecules/armel-base.common new file mode 100644 index 0000000..d402f61 --- /dev/null +++ b/molecules/armel-base.common @@ -0,0 +1,133 @@ +# Define an alternative execution strategy, in this case, the value must be +execution_strategy: chroot_to_mmc + +# Prefix command to add to chroot calls, when on x86_64 and touching a i686 +# chroot, set it to "linux32" +# prechroot: + +# Outer source chroot script. It's executed before entering the source_chroot. +# This is the very first thing molecule does. You can use it to setup +# packages cache. +# Variables exported: +# IMAGE_NAME = name of the final MMC image +# DESTINATION_IMAGE_DIR = path to the destination image directory +# CHROOT_DIR = path pointing to the chroot +# outer_source_chroot_script: /some/path.sh + +# Inner source chroot script. Called from inside the source_chroot. +# Can be used to spawn package updates inside the chroot. +# inner_source_chroot_script: /sabayon/scripts/inner_source_chroot_update.sh + +# Outer source chroot script, executed after inner_source_chroot_script. +# Can be used to unload resources allocated by outer_source_chroot_script. +# Variables exported: +# IMAGE_NAME = name of the final MMC image +# DESTINATION_IMAGE_DIR = path to the destination image directory +# CHROOT_DIR = path pointing to the chroot +# outer_source_chroot_script_after: /some/path.sh + +# Error script command, executed when something went wrong and molecule has +# to terminate the execution +# error_script: /path/to/some/error_script.sh + +# Pre-image building script. Hook called before image file creation +# IMAGE_NAME = name of the final MMC image +# DESTINATION_IMAGE_DIR = path to the destination image directory +# CHROOT_DIR = path pointing to the chroot +# pre_image_script: /sabayon/scripts/pre_image_script.sh + +# Post-image building script. Hook called after image file creation and move +# into destination directory. +# Variables exported: +# IMAGE_NAME = name of the final MMC image +# DESTINATION_IMAGE_DIR = path to the destination image directory +# CHROOT_DIR = path pointing to the chroot +# IMAGE_PATH = path pointing to the destination image file +# IMAGE_CHECKSUM_PATH = path pointing to the destination image file checksum (md5) +post_image_script: /sabayon/scripts/post_mmc_image_script.sh + +# Destination directory for the image path (MANDATORY) +destination_image_directory: /sabayon/images + +# Path to source chroot (mandatory) +source_chroot: /sabayon/sources/armv7l_softfp_core-2012 + +# Release file that will be created onto the root filesystem +release_file: /etc/sabayon-edition + +# Release string (the actual distro name) +release_string: Sabayon Linux + +# Directories to remove completely (comma separated) +paths_to_remove: + /var/lib/entropy/client/database/*/sabayon*, + /root/.subversion, + /lib/udev-state/devices.tar.bz2, + /var/log/scrollkeeper.log, /var/log/genkernel.log, + /var/log/emerge.log, /usr/tmp/portage/*, + /root/.bash_history, + /usr/share/slocate/slocate.db, + /root/test-results.txt, + /root/test.sh, + /usr/portage/distfiles/*, + /usr/portage/packages/*, + /root/.revdep*, + /install-data/games/*, + /var/lib/entropy/store/*, + /var/log/entropy/*, + /var/lib/entropy/caches/*, + /var/lib/entropy/smartapps/*/*, + /var/lib/entropy/smartapps/*/*, + /var/lib/entropy/tmp/*, + /var/tmp/entropy/*, + /*.txt, + /usr/portage/a*, + /usr/portage/b*, + /usr/portage/c*, + /usr/portage/d*, + /usr/portage/e*, + /usr/portage/f*, + /usr/portage/g*, + /usr/portage/h*, + /usr/portage/i*, + /usr/portage/j*, + /usr/portage/k*, + /usr/portage/licenses, + /usr/portage/lxde*, + /usr/portage/m*, + /usr/portage/n*, + /usr/portage/o*, + /usr/portage/packages, + /usr/portage/pe*, + /usr/portage/q*, + /usr/portage/r*, + /usr/portage/s*, + /usr/portage/t*, + /usr/portage/u*, + /usr/portage/v*, + /usr/portage/w*, + /usr/portage/x*, + /usr/portage/y*, + /usr/portage/z*, + /etc/ssh/ssh_host_*, + /entropy, + /tmp/equoerror.txt, + /var/cache/man, + /var/lib/entropy/glsa/*, + /root/local, + /var/tmp/*, + /root/.ssh, + /root/.distcc, + /etc/distcc/.ssh + +# Directories to empty (comma separated) +paths_to_empty: + /home/sabayonuser/.thumbnails/, + /root/.ccache, + /var/tmp/portage, + /var/tmp/ccache, + /var/tmp/portage-pkg, + /var/tmp/binpkgs, + /var/lib/entropy/portage, + /var/lib/entropy/logs, + /var/cache/genkernel diff --git a/molecules/sabayon-armel-beagleboard-xm-4G.spec b/molecules/sabayon-armel-beagleboard-xm-4G.spec new file mode 100644 index 0000000..16ce14d --- /dev/null +++ b/molecules/sabayon-armel-beagleboard-xm-4G.spec @@ -0,0 +1,24 @@ +%import /sabayon/molecules/armel-base.common +%import /sabayon/molecules/beagleboard-xm.common + +# Release desc (the actual release description) +release_desc: armelv7a BeagleBoard xM + +# Release Version (used to generate release_file) +release_version: 8 + +# Specify image file name (image file name will be automatically +# produced otherwise) +image_name: Sabayon_Linux_8_armelv7a_BeagleBoard_xM_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) +source_boot_directory: /sabayon/boot/arm/beagleboard-xm + +# External script that will generate the image file. +# The same can be copied onto a MMC by using dd +image_generator_script: /sabayon/scripts/beagleboard_xm_image_generator_script.sh diff --git a/molecules/sabayon-armel-beagleboard-xm-8G.spec b/molecules/sabayon-armel-beagleboard-xm-8G.spec new file mode 100644 index 0000000..94efc01 --- /dev/null +++ b/molecules/sabayon-armel-beagleboard-xm-8G.spec @@ -0,0 +1,24 @@ +%import /sabayon/molecules/armel-base.common +%import /sabayon/molecules/beagleboard-xm.common + +# Release desc (the actual release description) +release_desc: armelv7a BeagleBoard xM + +# Release Version (used to generate release_file) +release_version: 8 + +# Specify image file name (image file name will be automatically +# produced otherwise) +image_name: Sabayon_Linux_8_armelv7a_BeagleBoard_xM_8GB.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: 7400 + +# Path to boot partition data (MLO, u-boot.img etc) +source_boot_directory: /sabayon/boot/arm/beagleboard-xm + +# External script that will generate the image file. +# The same can be copied onto a MMC by using dd +image_generator_script: /sabayon/scripts/beagleboard_xm_image_generator_script.sh diff --git a/molecules/sabayon-armel-beaglebone-base-2G.spec b/molecules/sabayon-armel-beaglebone-base-2G.spec new file mode 100644 index 0000000..b5077c7 --- /dev/null +++ b/molecules/sabayon-armel-beaglebone-base-2G.spec @@ -0,0 +1,24 @@ +%import /sabayon/molecules/armel-base.common +%import /sabayon/molecules/beaglebone.common + +# Release desc (the actual release description) +release_desc: armelv7a BeagleBone + +# Release Version (used to generate release_file) +release_version: 8 + +# Specify image file name (image file name will be automatically +# produced otherwise) +image_name: Sabayon_Linux_8_armelv7a_BeagleBone_Base_2GB.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: 2000 + +# Path to boot partition data (MLO, u-boot.img etc) +source_boot_directory: /sabayon/boot/arm/beaglebone + +# External script that will generate the image file. +# The same can be copied onto a MMC by using dd +image_generator_script: /sabayon/scripts/beaglebone_image_generator_script.sh diff --git a/molecules/sabayon-armel-beaglebone-base-4G.spec b/molecules/sabayon-armel-beaglebone-base-4G.spec new file mode 100644 index 0000000..f25591e --- /dev/null +++ b/molecules/sabayon-armel-beaglebone-base-4G.spec @@ -0,0 +1,24 @@ +%import /sabayon/molecules/armel-base.common +%import /sabayon/molecules/beaglebone.common + +# Release desc (the actual release description) +release_desc: armelv7a BeagleBone + +# Release Version (used to generate release_file) +release_version: 8 + +# Specify image file name (image file name will be automatically +# produced otherwise) +image_name: Sabayon_Linux_8_armelv7a_BeagleBone_Base_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) +source_boot_directory: /sabayon/boot/arm/beaglebone + +# External script that will generate the image file. +# The same can be copied onto a MMC by using dd +image_generator_script: /sabayon/scripts/beaglebone_image_generator_script.sh diff --git a/molecules/sabayon-armel-pandaboard-4G.spec b/molecules/sabayon-armel-pandaboard-4G.spec new file mode 100644 index 0000000..c7e23b0 --- /dev/null +++ b/molecules/sabayon-armel-pandaboard-4G.spec @@ -0,0 +1,24 @@ +%import /sabayon/molecules/armel-base.common +%import /sabayon/molecules/pandaboard.common + +# Release desc (the actual release description) +release_desc: armelv7a PandaBoard + +# Release Version (used to generate release_file) +release_version: 8 + +# Specify image file name (image file name will be automatically +# produced otherwise) +image_name: Sabayon_Linux_8_armelv7a_PandaBoard_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) +source_boot_directory: /sabayon/boot/arm/pandaboard + +# External script that will generate the image file. +# The same can be copied onto a MMC by using dd +image_generator_script: /sabayon/scripts/beagleboard_xm_image_generator_script.sh diff --git a/molecules/sabayon-armel-pandaboard-8G.spec b/molecules/sabayon-armel-pandaboard-8G.spec new file mode 100644 index 0000000..b72f6a8 --- /dev/null +++ b/molecules/sabayon-armel-pandaboard-8G.spec @@ -0,0 +1,24 @@ +%import /sabayon/molecules/armel-base.common +%import /sabayon/molecules/pandaboard.common + +# Release desc (the actual release description) +release_desc: armelv7a PandaBoard + +# Release Version (used to generate release_file) +release_version: 8 + +# Specify image file name (image file name will be automatically +# produced otherwise) +image_name: Sabayon_Linux_8_armelv7a_PandaBoard_8GB.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: 7400 + +# Path to boot partition data (MLO, u-boot.img etc) +source_boot_directory: /sabayon/boot/arm/pandaboard + +# External script that will generate the image file. +# The same can be copied onto a MMC by using dd +image_generator_script: /sabayon/scripts/beagleboard_xm_image_generator_script.sh