diff options
author | Jesse Gilles <jgilles@multitech.com> | 2010-04-30 10:51:50 -0500 |
---|---|---|
committer | Jesse Gilles <jgilles@multitech.com> | 2010-04-30 10:51:50 -0500 |
commit | 8f11a9df72dde5dbcc9cd419ce815dc9756be793 (patch) | |
tree | bfd5cf5bc0846eb3da0c6d2ed79fccaf9789fef9 /recipes | |
parent | 0431f878edd38a1af264e5727e1e4d604f1a95fd (diff) |
add CoreCDP images
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/images/corecdp-base-image.bb | 69 | ||||
-rw-r--r-- | recipes/images/corecdp-full-image.bb | 37 | ||||
-rw-r--r-- | recipes/images/corecdp-java-image.bb | 7 | ||||
-rw-r--r-- | recipes/images/corecdp-minimal-image.bb | 42 | ||||
-rw-r--r-- | recipes/images/corecdp-perl-image.bb | 15 | ||||
-rw-r--r-- | recipes/images/corecdp-python-image.bb | 14 | ||||
-rw-r--r-- | recipes/images/corecdp-ruby-image.bb | 6 | ||||
-rw-r--r-- | recipes/images/corecdp-tftpboot.inc | 13 | ||||
-rw-r--r-- | recipes/images/corecdp-webserver-image.bb | 17 |
9 files changed, 220 insertions, 0 deletions
diff --git a/recipes/images/corecdp-base-image.bb b/recipes/images/corecdp-base-image.bb new file mode 100644 index 0000000000..bf1538a84f --- /dev/null +++ b/recipes/images/corecdp-base-image.bb @@ -0,0 +1,69 @@ +inherit image + +DISTRO_SSH_DAEMON ?= "dropbear" + +# remove kernel package from rootfs to save space +# uImage is flashed to a different partition, so it isn't needed +PACKAGE_REMOVE = "kernel-image-*" +ROOTFS_POSTPROCESS_COMMAND += "opkg-cl ${IPKG_ARGS} -force-depends \ + remove ${PACKAGE_REMOVE};" + +CORE_FEATURES = "u-boot sysfsutils module-init-tools kernel-modules \ + mtd-utils \ + usbutils usb-gadget-mode \ + bash \ + " + +FILESYSTEM_FEATURES = "e2fsprogs e2fsprogs-mke2fs e2fsprogs-fsck \ + dosfstools \ + cifs \ + " + +NETWORKING_FEATURES = "ppp \ + iptables iptables-utils \ + atftp netkit-ftp lftp curl \ + openssl \ + " + +TIME_FEATURES = "tzdata \ + cron \ + ntpdate \ + " + +# mts-io: IO Controller for Multi-Tech hardware. +# (LEDs, temp sensor, serial lines, and more) +# +# config: Handles default config files stored in /var/config. +# /var/config is mounted on separate flash partition so that config +# files survive flashing of rootfs. See recipe for details. +# +# u-boot-linux-utils: U-Boot environment access from Linux +MULTITECH_FEATURES = "mts-io \ + config \ + u-boot-linux-utils \ + " + +# Tools to flash kernel and rootfs on reboot +UPGRADE_FEATURES = "upgrade-reboot mtd-utils-static" + +MISC_FEATURES = "minicom nano" + +# All the packages to be installed +IMAGE_INSTALL = "task-boot \ + util-linux-ng-mount util-linux-ng-umount \ + ${DISTRO_SSH_DAEMON} \ + ${CORE_FEATURES} \ + ${FILESYSTEM_FEATURES} \ + ${NETWORKING_FEATURES} \ + ${TIME_FEATURES} \ + ${MULTITECH_FEATURES} \ + ${UPGRADE_FEATURES} \ + ${MISC_FEATURES} \ + " + +IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp" + +export IMAGE_BASENAME = "corecdp-base-image" +IMAGE_LINGUAS = "" + +require corecdp-tftpboot.inc diff --git a/recipes/images/corecdp-full-image.bb b/recipes/images/corecdp-full-image.bb new file mode 100644 index 0000000000..036ee3c6dd --- /dev/null +++ b/recipes/images/corecdp-full-image.bb @@ -0,0 +1,37 @@ +require corecdp-base-image.bb + +LIGHTTPD = "lighttpd \ + lighttpd-module-cgi lighttpd-module-indexfile \ + lighttpd-module-redirect lighttpd-module-auth \ + lighttpd-module-access lighttpd-module-accesslog \ + lighttpd-module-rewrite lighttpd-module-proxy lighttpd-module-fastcgi \ + lighttpd-module-scgi lighttpd-module-alias \ + lighttpd-module-dirlisting lighttpd-module-staticfile \ + " + +IMAGE_INSTALL += "${LIGHTTPD}" + +IMAGE_INSTALL += "sqlite3" + +IMAGE_INSTALL += "perl" +IMAGE_INSTALL += "perl-module-io" +IMAGE_INSTALL += "libdevice-serialport-perl" +IMAGE_INSTALL += "libexpect-perl" + +IMAGE_INSTALL += "python" +IMAGE_INSTALL += "python-pyserial" +IMAGE_INSTALL += "python-simplejson" +IMAGE_INSTALL += "python-unixadmin" +IMAGE_INSTALL += "python-textutils" +IMAGE_INSTALL += "python-html" +IMAGE_INSTALL += "python-sqlite3" + +IMAGE_INSTALL += "ruby" + +# Java VM +IMAGE_INSTALL += "jamvm" + +IMAGE_INSTALL += "php php-cli php-cgi" + +export IMAGE_BASENAME = "corecdp-full-image" + diff --git a/recipes/images/corecdp-java-image.bb b/recipes/images/corecdp-java-image.bb new file mode 100644 index 0000000000..8cdffb5925 --- /dev/null +++ b/recipes/images/corecdp-java-image.bb @@ -0,0 +1,7 @@ +require corecdp-base-image.bb + +# Java VM +IMAGE_INSTALL += "jamvm" + +export IMAGE_BASENAME = "corecdp-java-image" + diff --git a/recipes/images/corecdp-minimal-image.bb b/recipes/images/corecdp-minimal-image.bb new file mode 100644 index 0000000000..21bbbb890c --- /dev/null +++ b/recipes/images/corecdp-minimal-image.bb @@ -0,0 +1,42 @@ +inherit image + +DISTRO_SSH_DAEMON ?= "dropbear" + +# remove kernel package from rootfs to save space +# uImage is flashed to a different partition, so it isn't needed +PACKAGE_REMOVE = "kernel-image-*" +ROOTFS_POSTPROCESS_COMMAND += "opkg-cl ${IPKG_ARGS} -force-depends \ + remove ${PACKAGE_REMOVE};" + +CORE_FEATURES = "mtd-utils u-boot usbutils usb-gadget-mode \ + sysfsutils module-init-tools kernel-modules \ + bash \ + " + +NETWORKING_FEATURES = "ppp \ + atftp netkit-ftp lftp curl \ + iptables iptables-utils \ + " + +MULTITECH_FEATURES = "mts-io \ + config \ + " + +UPGRADE_FEATURES = "upgrade-reboot mtd-utils-static" + +IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp" + +IMAGE_INSTALL = "task-boot \ + util-linux-ng-mount util-linux-ng-umount \ + ${DISTRO_SSH_DAEMON} \ + ${CORE_FEATURES} \ + ${NETWORKING_FEATURES} \ + ${MULTITECH_FEATURES} \ + ${UPGRADE_FEATURES} \ + " + +export IMAGE_BASENAME = "corecdp-minimal-image" +IMAGE_LINGUAS = "" + +require corecdp-tftpboot.inc + diff --git a/recipes/images/corecdp-perl-image.bb b/recipes/images/corecdp-perl-image.bb new file mode 100644 index 0000000000..0a7c0aa64d --- /dev/null +++ b/recipes/images/corecdp-perl-image.bb @@ -0,0 +1,15 @@ +require corecdp-base-image.bb + +IMAGE_INSTALL += "perl" + +# add IO module +IMAGE_INSTALL += "perl-module-io" + +# all perl modules (large) +#IMAGE_INSTALL += "perl-modules" + +IMAGE_INSTALL += "libdevice-serialport-perl" +IMAGE_INSTALL += "libexpect-perl" + +export IMAGE_BASENAME = "corecdp-perl-image" + diff --git a/recipes/images/corecdp-python-image.bb b/recipes/images/corecdp-python-image.bb new file mode 100644 index 0000000000..73aa8a735b --- /dev/null +++ b/recipes/images/corecdp-python-image.bb @@ -0,0 +1,14 @@ +require corecdp-base-image.bb + +IMAGE_INSTALL += "python" +IMAGE_INSTALL += "python-pyserial" +IMAGE_INSTALL += "python-simplejson" +IMAGE_INSTALL += "python-unixadmin" +IMAGE_INSTALL += "python-textutils" +IMAGE_INSTALL += "python-html" + +IMAGE_INSTALL += "sqlite3" +IMAGE_INSTALL += "python-sqlite3" + +export IMAGE_BASENAME = "corecdp-python-image" + diff --git a/recipes/images/corecdp-ruby-image.bb b/recipes/images/corecdp-ruby-image.bb new file mode 100644 index 0000000000..d9e9758ebe --- /dev/null +++ b/recipes/images/corecdp-ruby-image.bb @@ -0,0 +1,6 @@ +require corecdp-base-image.bb + +IMAGE_INSTALL += "ruby" + +export IMAGE_BASENAME = "corecdp-ruby-image" + diff --git a/recipes/images/corecdp-tftpboot.inc b/recipes/images/corecdp-tftpboot.inc new file mode 100644 index 0000000000..36507732b7 --- /dev/null +++ b/recipes/images/corecdp-tftpboot.inc @@ -0,0 +1,13 @@ + +# make links to images in TFTPBOOT_DIR for ease of development +do_build_append () { + if [ -n "${TFTPBOOT_DIR}" ]; then + install -d ${DEPLOY_DIR_IMAGE} + ln -nfs ${DEPLOY_DIR_IMAGE}/at91bootstrap.bin ${TFTPBOOT_DIR}/oe_bootstrap.bin + ln -nfs ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.bin ${TFTPBOOT_DIR}/oe_u-boot.bin + ln -nfs ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ${TFTPBOOT_DIR}/oe_uImage.bin + ln -nfs ${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.jffs2 ${TFTPBOOT_DIR}/oe_rootfs.jffs2 + ln -nfs ${DEPLOY_DIR_IMAGE} ${TFTPBOOT_DIR}/oe_images + fi +} + diff --git a/recipes/images/corecdp-webserver-image.bb b/recipes/images/corecdp-webserver-image.bb new file mode 100644 index 0000000000..8b27023bc3 --- /dev/null +++ b/recipes/images/corecdp-webserver-image.bb @@ -0,0 +1,17 @@ +require corecdp-base-image.bb + +LIGHTTPD = "lighttpd \ + lighttpd-module-cgi lighttpd-module-indexfile \ + lighttpd-module-redirect lighttpd-module-auth \ + lighttpd-module-access lighttpd-module-accesslog \ + lighttpd-module-rewrite lighttpd-module-proxy lighttpd-module-fastcgi \ + lighttpd-module-scgi lighttpd-module-alias \ + lighttpd-module-dirlisting lighttpd-module-staticfile \ + " + +IMAGE_INSTALL += "${LIGHTTPD}" + +IMAGE_INSTALL += "php php-cli php-cgi" + +export IMAGE_BASENAME = "corecdp-webserver-image" + |