From bf41d89325f1135f928f444ddb91163de91f4313 Mon Sep 17 00:00:00 2001 From: Andrea Adami Date: Tue, 21 Apr 2020 17:19:31 +0200 Subject: meta-initramfs: put images and initrdscripts in recipes-core Signed-off-by: Andrea Adami Signed-off-by: Khem Raj --- .../recipes-bsp/images/initramfs-debug-image.bb | 22 --------------- .../images/initramfs-kexecboot-image.bb | 26 ------------------ .../images/initramfs-kexecboot-klibc-image.bb | 12 --------- .../recipes-bsp/initrdscripts/files/init-debug.sh | 31 ---------------------- .../initrdscripts/initramfs-debug_1.0.bb | 14 ---------- 5 files changed, 105 deletions(-) delete mode 100644 meta-initramfs/recipes-bsp/images/initramfs-debug-image.bb delete mode 100644 meta-initramfs/recipes-bsp/images/initramfs-kexecboot-image.bb delete mode 100644 meta-initramfs/recipes-bsp/images/initramfs-kexecboot-klibc-image.bb delete mode 100644 meta-initramfs/recipes-bsp/initrdscripts/files/init-debug.sh delete mode 100644 meta-initramfs/recipes-bsp/initrdscripts/initramfs-debug_1.0.bb (limited to 'meta-initramfs/recipes-bsp') diff --git a/meta-initramfs/recipes-bsp/images/initramfs-debug-image.bb b/meta-initramfs/recipes-bsp/images/initramfs-debug-image.bb deleted file mode 100644 index be7350ade2..0000000000 --- a/meta-initramfs/recipes-bsp/images/initramfs-debug-image.bb +++ /dev/null @@ -1,22 +0,0 @@ -# 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 = "" - -LICENSE = "MIT" - -IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}" -inherit core-image - -IMAGE_ROOTFS_SIZE = "8192" -IMAGE_ROOTFS_EXTRA_SPACE = "0" - -BAD_RECOMMENDATIONS += "busybox-syslog" diff --git a/meta-initramfs/recipes-bsp/images/initramfs-kexecboot-image.bb b/meta-initramfs/recipes-bsp/images/initramfs-kexecboot-image.bb deleted file mode 100644 index 9a686f366f..0000000000 --- a/meta-initramfs/recipes-bsp/images/initramfs-kexecboot-image.bb +++ /dev/null @@ -1,26 +0,0 @@ -SUMMARY = "Initramfs image for kexecboot kernel" -DESCRIPTION = "This image provides kexecboot (linux as bootloader) and helpers." - -inherit image - -IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}" - -# 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 = "" - diff --git a/meta-initramfs/recipes-bsp/images/initramfs-kexecboot-klibc-image.bb b/meta-initramfs/recipes-bsp/images/initramfs-kexecboot-klibc-image.bb deleted file mode 100644 index 3a8d9f7438..0000000000 --- a/meta-initramfs/recipes-bsp/images/initramfs-kexecboot-klibc-image.bb +++ /dev/null @@ -1,12 +0,0 @@ -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") -} diff --git a/meta-initramfs/recipes-bsp/initrdscripts/files/init-debug.sh b/meta-initramfs/recipes-bsp/initrdscripts/files/init-debug.sh deleted file mode 100644 index 7edbd70cb0..0000000000 --- a/meta-initramfs/recipes-bsp/initrdscripts/files/init-debug.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/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 2>/dev/console diff --git a/meta-initramfs/recipes-bsp/initrdscripts/initramfs-debug_1.0.bb b/meta-initramfs/recipes-bsp/initrdscripts/initramfs-debug_1.0.bb deleted file mode 100644 index 667690f888..0000000000 --- a/meta-initramfs/recipes-bsp/initrdscripts/initramfs-debug_1.0.bb +++ /dev/null @@ -1,14 +0,0 @@ -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 " -- cgit 1.2.3-korg