added my Recipes
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# Simple initramfs image. Mostly used for live images.
|
||||
DESCRIPTION = "Small image capable of booting a device. The kernel includes \
|
||||
the Minimal RAM-based Initial Root Filesystem (initramfs), which one can use \
|
||||
to check the hardware efficiently."
|
||||
|
||||
PACKAGE_INSTALL = "initramfs-debug busybox base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}"
|
||||
|
||||
# Do not pollute the initrd image with rootfs features
|
||||
IMAGE_FEATURES = ""
|
||||
|
||||
export IMAGE_BASENAME = "initramfs-debug-image"
|
||||
IMAGE_LINGUAS = ""
|
||||
|
||||
# Some BSPs use IMAGE_FSTYPES:<machine override> which would override
|
||||
# an assignment to IMAGE_FSTYPES so we need anon python
|
||||
python () {
|
||||
d.setVar("IMAGE_FSTYPES", d.getVar("INITRAMFS_FSTYPES"))
|
||||
}
|
||||
|
||||
inherit core-image
|
||||
|
||||
IMAGE_ROOTFS_SIZE = "8192"
|
||||
IMAGE_ROOTFS_EXTRA_SPACE = "0"
|
||||
|
||||
BAD_RECOMMENDATIONS += "busybox-syslog"
|
||||
@@ -0,0 +1,30 @@
|
||||
SUMMARY = "Initramfs image for kexecboot kernel"
|
||||
DESCRIPTION = "This image provides kexecboot (linux as bootloader) and helpers."
|
||||
|
||||
# Some BSPs use IMAGE_FSTYPES:<machine override> which would override
|
||||
# an assignment to IMAGE_FSTYPES so we need anon python
|
||||
python () {
|
||||
d.setVar("IMAGE_FSTYPES", d.getVar("INITRAMFS_FSTYPES"))
|
||||
}
|
||||
|
||||
inherit image
|
||||
|
||||
# avoid circular dependencies
|
||||
EXTRA_IMAGEDEPENDS = ""
|
||||
KERNELDEPMODDEPEND = ""
|
||||
|
||||
# We really need just kexecboot, kexec and ubiattach
|
||||
IMAGE_INSTALL = "kexecboot kexec mtd-utils-ubifs"
|
||||
|
||||
# Do not pollute the initrd image with rootfs features
|
||||
IMAGE_FEATURES = ""
|
||||
|
||||
IMAGE_LINGUAS = ""
|
||||
|
||||
FEED_DEPLOYDIR_BASE_URI = ""
|
||||
LDCONFIGDEPEND = ""
|
||||
IMAGE_ROOTFS_EXTRA_SPACE = "0"
|
||||
|
||||
# disable runtime dependency on run-postinsts -> update-rc.d
|
||||
ROOTFS_BOOTSTRAP_INSTALL = ""
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
require initramfs-kexecboot-image.bb
|
||||
|
||||
SUMMARY = "Initramfs image for kexecboot kernel (klibc-static binaries)"
|
||||
|
||||
# We really need just kexecboot, kexec and ubiattach
|
||||
# statically compiled against klibc
|
||||
IMAGE_INSTALL = "kexecboot-klibc kexec-klibc ubiattach-klibc"
|
||||
|
||||
python () {
|
||||
if d.getVar('TARGET_ARCH') == "nios2":
|
||||
raise bb.parse.SkipRecipe("'nios2' not supported arch")
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
SUMMARY = "meta-initramfs build test image"
|
||||
|
||||
IMAGE_INSTALL = "packagegroup-core-boot \
|
||||
packagegroup-meta-initramfs"
|
||||
|
||||
inherit core-image
|
||||
@@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
|
||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
|
||||
do_mount_fs() {
|
||||
grep -q "$1" /proc/filesystems || return
|
||||
test -d "$2" || mkdir -p "$2"
|
||||
mount -t "$1" "$1" "$2"
|
||||
}
|
||||
|
||||
do_mknod() {
|
||||
test -e "$1" || mknod "$1" "$2" "$3" "$4"
|
||||
}
|
||||
|
||||
mkdir -p /proc
|
||||
mount -t proc proc /proc
|
||||
|
||||
do_mount_fs sysfs /sys
|
||||
do_mount_fs debugfs /sys/kernel/debug
|
||||
do_mount_fs devtmpfs /dev
|
||||
do_mount_fs devpts /dev/pts
|
||||
do_mount_fs tmpfs /dev/shm
|
||||
|
||||
mkdir -p /run
|
||||
mkdir -p /var/run
|
||||
|
||||
do_mknod /dev/console c 5 1
|
||||
do_mknod /dev/null c 1 3
|
||||
do_mknod /dev/zero c 1 5
|
||||
|
||||
exec sh </dev/console >/dev/console 2>/dev/console
|
||||
@@ -0,0 +1,14 @@
|
||||
SUMMARY = "Extremely basic live image init script"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
||||
SRC_URI = "file://init-debug.sh"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
||||
do_install() {
|
||||
install -m 0755 ${WORKDIR}/init-debug.sh ${D}/init
|
||||
}
|
||||
|
||||
inherit allarch
|
||||
|
||||
FILES:${PN} += " /init "
|
||||
@@ -0,0 +1,18 @@
|
||||
SUMMARY = "Meta-initramfs packagegroups"
|
||||
|
||||
inherit packagegroup
|
||||
|
||||
PROVIDES = "${PACKAGES}"
|
||||
PACKAGES = ' \
|
||||
packagegroup-meta-initramfs \
|
||||
packagegroup-meta-initramfs-devtools \
|
||||
'
|
||||
|
||||
RDEPENDS:packagegroup-meta-initramfs = "\
|
||||
packagegroup-meta-initramfs-devtools \
|
||||
"
|
||||
|
||||
RDEPENDS:packagegroup-meta-initramfs-devtools = "\
|
||||
dracut \
|
||||
${@bb.utils.contains_any("TRANSLATED_TARGET_ARCH", "i586 x86-64", "grubby", "", d)} \
|
||||
"
|
||||
Reference in New Issue
Block a user