[meta-lsi] [PATCH 13/86] core-image-tiny: Add receipe for new rootfs type
Daniel Dragomir
daniel.dragomir at windriver.com
Wed Oct 29 08:35:21 PDT 2014
From: Paul Butler <paul.butler at windriver.com>
Add receipe for for core-image-tiny ROOTFS type and related packagegroup
receipes: packagegroup-core-tiny-boot.bb and packagegroup-core-tiny.bb.notused
Signed-off-by: Paul Butler <paul.butler at windriver.com>
---
recipes-core/images/core-image-tiny.bb | 15 ++++
.../packagegroups/packagegroup-core-tiny-boot.bb | 64 +++++++++++++++
.../packagegroup-core-tiny.bb.notused | 96 ++++++++++++++++++++++
3 files changed, 175 insertions(+)
create mode 100644 recipes-core/images/core-image-tiny.bb
create mode 100644 recipes-core/packagegroups/packagegroup-core-tiny-boot.bb
create mode 100644 recipes-core/packagegroups/packagegroup-core-tiny.bb.notused
diff --git a/recipes-core/images/core-image-tiny.bb b/recipes-core/images/core-image-tiny.bb
new file mode 100644
index 0000000..cf46803
--- /dev/null
+++ b/recipes-core/images/core-image-tiny.bb
@@ -0,0 +1,15 @@
+DESCRIPTION = "A small image just capable of allowing a device to boot."
+
+#IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}"
+IMAGE_INSTALL = "packagegroup-core-tiny-boot"
+#IMAGE_INSTALL = "packagegroup-core-tiny-utils"
+IMAGE_LINGUAS = " "
+
+LICENSE = "MIT"
+
+inherit core-image
+
+IMAGE_ROOTFS_SIZE = "8192"
+
+# remove not needed ipkg informations
+ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; "
diff --git a/recipes-core/packagegroups/packagegroup-core-tiny-boot.bb b/recipes-core/packagegroups/packagegroup-core-tiny-boot.bb
new file mode 100644
index 0000000..ee6b25d
--- /dev/null
+++ b/recipes-core/packagegroups/packagegroup-core-tiny-boot.bb
@@ -0,0 +1,64 @@
+#
+# Copyright (C) 2007 OpenedHand Ltd.
+#
+
+SUMMARY = "Minimal boot requirements"
+DESCRIPTION = "The minimal set of packages required to boot the system"
+LICENSE = "MIT"
+DEPENDS = "virtual/kernel"
+PR = "r10"
+
+inherit packagegroup
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+#
+# Set by the machine configuration with packages essential for device bootup
+#
+MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= ""
+MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= ""
+
+# For backwards compatibility after rename
+RPROVIDES_${PN} = "task-core-boot"
+RREPLACES_${PN} = "task-core-boot"
+RCONFLICTS_${PN} = "task-core-boot"
+
+# Distro can override the following VIRTUAL-RUNTIME providers:
+#VIRTUAL-RUNTIME_dev_manager ?= "udev"
+VIRTUAL-RUNTIME_dev_manager ?= ""
+VIRTUAL-RUNTIME_login_manager ?= "tinylogin"
+VIRTUAL-RUNTIME_init_manager ?= "sysvinit"
+VIRTUAL-RUNTIME_initscripts ?= "initscripts"
+#VIRTUAL-RUNTIME_initscripts ?= ""
+VIRTUAL-RUNTIME_keymaps ?= "keymaps"
+
+# busybox \
+# ${@base_contains("MACHINE_FEATURES", "rtc", "busybox-hwclock", "", d)} \
+# ${VIRTUAL-RUNTIME_initscripts} \
+# ${@base_contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \
+# modutils-initscripts \
+# netbase \
+# ${VIRTUAL-RUNTIME_login_manager} \
+# ${VIRTUAL-RUNTIME_init_manager} \
+# ${VIRTUAL-RUNTIME_dev_manager} \
+# ${VIRTUAL-RUNTIME_update-alternatives} \
+# ${MACHINE_ESSENTIAL_EXTRA_RDEPENDS}"
+
+RDEPENDS_${PN} = "\
+ base-files \
+ base-passwd \
+ acl \
+ attr \
+ bash \
+ coreutils \
+ mktemp \
+ ncurses \
+ procps \
+ sysvinit \
+ tinylogin \
+ util-linux \
+ gdbserver \
+ "
+
+RRECOMMENDS_${PN} = "\
+ ${MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS}"
diff --git a/recipes-core/packagegroups/packagegroup-core-tiny.bb.notused b/recipes-core/packagegroups/packagegroup-core-tiny.bb.notused
new file mode 100644
index 0000000..51aab30
--- /dev/null
+++ b/recipes-core/packagegroups/packagegroup-core-tiny.bb.notused
@@ -0,0 +1,96 @@
+#
+# Copyright (C) 2010 Intel Corporation
+#
+
+DESCRIPTION = "Create Basic Image Tasks"
+PR = "r5"
+LICENSE = "MIT"
+
+inherit packagegroup
+
+PACKAGES = "\
+ packagegroup-core-tiny-utils \
+ packagegroup-core-initscripts \
+ "
+
+python __anonymous () {
+ # For backwards compatibility after rename
+ packages = d.getVar("PACKAGES", True).split()
+ for pkg in packages:
+ d.appendVar("RPROVIDES_%s" % pkg, pkg.replace("packagegroup-core", "task-core"))
+ d.appendVar("RREPLACES_%s" % pkg, pkg.replace("packagegroup-core", "task-core"))
+ d.appendVar("RCONFLICTS_%s" % pkg, pkg.replace("packagegroup-core", "task-core"))
+}
+
+
+RDEPENDS_packagegroup-core-tiny = "\
+ packagegroup-core-tiny-utils \
+ "
+
+RDEPENDS_packagegroup-core-tiny-libs = "\
+ glib-2.0 \
+ "
+
+RDEPENDS_packagegroup-core-tiny-utils = "\
+ bash \
+ acl \
+ attr \
+ coreutils \
+ mktemp \
+ ncurses \
+ procps \
+ util-linux \
+ "
+
+RDEPENDS_packagegroup-core-tiny-extended = "\
+ iproute2 \
+ iputils \
+ iptables \
+ module-init-tools \
+ openssl \
+ "
+
+RDEPENDS_packagegroup-core-dev-utils = "\
+ byacc \
+ diffutils \
+ m4 \
+ make \
+ patch \
+ "
+
+RDEPENDS_packagegroup-core-initscripts = "\
+ sysvinit \
+ "
+
+RDEPENDS_packagegroup-core-multiuser = "\
+ cracklib \
+ gzip \
+ libuser \
+ libpam \
+ shadow \
+ sudo \
+ "
+
+RDEPENDS_packagegroup-core-sys-services = "\
+ at \
+ bzip2 \
+ cronie \
+ dbus \
+ dbus-glib \
+ python-dbus \
+ elfutils \
+ gzip \
+ less \
+ libcap \
+ libevent \
+ lighttpd \
+ logrotate \
+ nfs-utils \
+ pciutils \
+ libpcre \
+ rpcbind \
+ sysfsutils \
+ tcp-wrappers \
+ tzdata \
+ "
+
--
1.8.1.4
More information about the meta-lsi
mailing list