Commit 6b37f5cbd7ae1f2e44cc41e17fc6681a76aed71e
1 parent
81e97c960d
Exists in
master
add initramfs image
Showing 2 changed files with 66 additions and 0 deletions Side-by-side Diff
recipes-core/images/smarct335x-initramfs-image.bb
1 | +DESCRIPTION = "A small image just capable of allowing a device to boot." | |
2 | + | |
3 | +IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}" | |
4 | + | |
5 | +IMAGE_LINGUAS = " " | |
6 | + | |
7 | +LICENSE = "MIT" | |
8 | + | |
9 | +inherit core-image | |
10 | + | |
11 | +IMAGE_ROOTFS_SIZE = "8192" | |
12 | + | |
13 | +# remove not needed ipkg informations | |
14 | +ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; " |
recipes-core/packagegroups/packagegroup-initramfs-boot.bb
1 | +# | |
2 | +# Copyright (C) 2007 OpenedHand Ltd. | |
3 | +# | |
4 | + | |
5 | +SUMMARY = "Minimal boot requirements" | |
6 | +DESCRIPTION = "The minimal set of packages required to boot the system" | |
7 | +LICENSE = "MIT" | |
8 | +DEPENDS = "virtual/kernel" | |
9 | +PR = "r10" | |
10 | + | |
11 | +inherit packagegroup | |
12 | + | |
13 | +PACKAGE_ARCH = "${MACHINE_ARCH}" | |
14 | + | |
15 | +# | |
16 | +# Set by the machine configuration with packages essential for device bootup | |
17 | +# | |
18 | +MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= "" | |
19 | +MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= "" | |
20 | + | |
21 | +# For backwards compatibility after rename | |
22 | +RPROVIDES_${PN} = "task-core-boot" | |
23 | +RREPLACES_${PN} = "task-core-boot" | |
24 | +RCONFLICTS_${PN} = "task-core-boot" | |
25 | + | |
26 | +# Distro can override the following VIRTUAL-RUNTIME providers: | |
27 | +VIRTUAL-RUNTIME_dev_manager ?= "udev" | |
28 | +VIRTUAL-RUNTIME_login_manager ?= "tinylogin" | |
29 | +VIRTUAL-RUNTIME_init_manager ?= "sysvinit" | |
30 | +VIRTUAL-RUNTIME_initscripts ?= "initscripts" | |
31 | +VIRTUAL-RUNTIME_keymaps ?= "keymaps" | |
32 | + | |
33 | +RDEPENDS_${PN} = "\ | |
34 | + base-files \ | |
35 | + base-passwd \ | |
36 | + busybox \ | |
37 | + util-linux-blkid \ | |
38 | + util-linux-mkfs \ | |
39 | + util-linux-sfdisk \ | |
40 | + ${@base_contains("MACHINE_FEATURES", "rtc", "busybox-hwclock", "", d)} \ | |
41 | + ${VIRTUAL-RUNTIME_initscripts} \ | |
42 | + ${@base_contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \ | |
43 | + modutils-initscripts \ | |
44 | + netbase \ | |
45 | + ${VIRTUAL-RUNTIME_login_manager} \ | |
46 | + ${VIRTUAL-RUNTIME_init_manager} \ | |
47 | + ${VIRTUAL-RUNTIME_dev_manager} \ | |
48 | + ${VIRTUAL-RUNTIME_update-alternatives} \ | |
49 | + ${MACHINE_ESSENTIAL_EXTRA_RDEPENDS}" | |
50 | + | |
51 | +RRECOMMENDS_${PN} = "\ | |
52 | + ${MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS}" |