Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

recipes-core: Add recipes for woce-image

Signed-off-by: Khem Raj <raj.khem@gmail.com>
  • Loading branch information...
commit 195b74bfac061204d836022a3340c3faf6174507 1 parent 29e6209
@kraj authored
View
7 recipes-core/images/woce-image.bb
@@ -0,0 +1,7 @@
+# This describes a generic WebOS image
+
+DESCRIPTION = "Generic WebOS image"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
+require woce-image.inc
View
28 recipes-core/images/woce-image.inc
@@ -0,0 +1,28 @@
+# This describes a generic WebOS image, even though the bb file is
+# called 'woce-image.bb' the distro specific configuration is
+# done in conf/distro/${DISTRO}.conf (which should always include
+# conf/distro/slugos.conf to get the standard settings).
+
+HOMEPAGE = "http://www.webosinternals.org"
+
+DEPENDS = "task-woce"
+
+IMAGE_FEATURES += "package-management"
+IMAGE_INSTALL = "task-woce \
+ ${@oe.utils.contains('IMAGE_FEATURES', 'package-management', 'opkg', '', d)} \
+ "
+
+COMPATIBLE_MACHINE = "(qemuarm)"
+
+IMAGE_NAME = "${IMAGE_BASENAME}-${DISTRO_VERSION}-${MACHINE}"
+IMAGE_LINK_NAME = "${IMAGE_BASENAME}-${MACHINE}"
+IMAGE_FSTYPES = "jffs2 tar.gz ext2.gz"
+IMAGE_LINGUAS = ""
+
+# IMAGE_PREPROCESS_COMMAND is run before making the image. In SlugOS the
+# kernel image is removed from the root file system to recover the space used -
+# SlugOS is assumed to boot from a separate kernel image in flash (not in the
+# root file system), if this is not the case the following must not be done!
+IMAGE_PREPROCESS_COMMAND += "rm -f ${IMAGE_ROOTFS}/boot/?Image*;"
+
+inherit image
View
96 recipes-core/tasks/task-woce.bb
@@ -0,0 +1,96 @@
+# This describes a generic WebOS task
+#
+DESCRIPTION = "Task packages for the WOCE distribution"
+HOMEPAGE = "http://www.webosinternals.org"
+LICENSE = "MIT"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+COMPATIBLE_MACHINE = "(qemuarm)"
+ALLOW_EMPTY = "1"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+#----------------------------------------------------------------------------------
+# FIRMWARE CONFIGURATION
+#----------------------------------------------------------------------------------
+# EXTRA PACKAGES
+# --------------
+# The standard firmware contents and additional packages built as requirements
+# of the firmware are defined here in WOCE_STANDARD_RDEPENDS. This represents
+# the standard set of software for the 8-MByte NSLU2 device.
+WOCE_STANDARD_RDEPENDS = ""
+WOCE_STANDARD_RRECOMMENDS = ""
+WOCE_MACHINE_RDEPENDS = ""
+WOCE_MACHINE_RRECOMMENDS = ""
+
+# These lines add support for formatting ext2 and ext3 file systems
+# on a hard disk attached to the NSLU2. ext3 is the standard Linux
+# file system.
+WOCE_STANDARD_RRECOMMENDS += "\
+e2fsprogs-mke2fs \
+e2fsprogs-fsck \
+e2fsprogs-e2fsck \
+e2fsprogs-badblocks \
+e2fsprogs-blkid \
+"
+
+# Filesystem selection. Adding entries here adds the module to the
+# image. The module must be built as part of nslu2-kernel (i.e. it
+# must be specified as a module in the defconfig file). The NLS
+# support charset modules must be given explicitly and must match
+# the codepage/iocharset and NLS handling for the file systems which
+# require them. The installed lanugage set is minimal but sufficient
+# for any file system (since it uses utf8). See
+# http://www.nslu2-linux.orgwiki/HowTo/MountFATFileSystems
+# for more information on the language behaviour of the DOS file
+# systems.
+#
+# KERNEL LEVEL FILE SYSTEM SUPPORT
+# --------------------------------
+# NOTE: removing kernel-module-nfs from this list will prevent NFS
+# boot (however you can do a simple flash file system boot - no
+# attached disk - and install the nfs modules from ssh.)
+# The altboot mechanism requires kernel-module-loop.
+WOCE_STANDARD_RRECOMMENDS += "\
+kernel-module-ext2 \
+kernel-module-jbd \
+kernel-module-ext3 \
+kernel-module-vfat \
+kernel-module-nls-cp437 \
+kernel-module-nls-utf8 \
+kernel-module-nfs \
+"
+
+# Add modules required for usb support
+WOCE_STANDARD_RRECOMMENDS += "\
+kernel-module-ehci-hcd \
+kernel-module-ohci-hcd \
+kernel-module-uhci-hcd \
+"
+
+# Add stuff for developer convenience (may be removed for release)
+WOCE_STANDARD_RRECOMMENDS += "\
+kexec \
+kernel-module-ext4 \
+"
+
+DISTRO_EXTRA_DEPENDS ?= ""
+DEPENDS += "${DISTRO_EXTRA_DEPENDS}"
+
+DISTRO_EXTRA_RDEPENDS ?= ""
+
+RDEPENDS_${PN} += "\
+ base-files base-passwd netbase \
+ busybox initscripts \
+ sysvinit update-modules \
+ module-init-tools modutils-initscripts \
+ libgcc \
+ ${IMAGE_DEV_MANAGER} \
+ ${WOCE_STANDARD_RDEPENDS} \
+ ${WOCE_MACHINE_RDEPENDS} \
+ ${DISTRO_EXTRA_RDEPENDS}"
+
+DISTRO_EXTRA_RRECOMMENDS ?= ""
+RRECOMMENDS_${PN} += "\
+ openssh-keygen \
+ openssh-sshd \
+ ${WOCE_STANDARD_RRECOMMENDS} \
+ ${WOCE_MACHINE_RRECOMMENDS} \
+ ${DISTRO_EXTRA_RRECOMMENDS}"
Please sign in to comment.
Something went wrong with that request. Please try again.