Patchwork [meta-initramfs] linux-yocto-tiny-kexecboot: replace empty tasks with explicit [noexec]=1

login
register
mail settings
Submitter Andrea Adami
Date Sept. 27, 2013, 10:05 p.m.
Message ID <1380319559-12074-1-git-send-email-andrea.adami@gmail.com>
Download mbox | patch
Permalink /patch/59095/
State Accepted, archived
Commit ed528c65e7b00a94411d21abc594e54e6fa1aa6b
Headers show

Comments

Andrea Adami - Sept. 27, 2013, 10:05 p.m.
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
---
 .../linux/linux-yocto-tiny-kexecboot_3.10.bb       | 64 +++++-----------------
 1 file changed, 15 insertions(+), 49 deletions(-)

Patch

diff --git a/meta-initramfs/recipes-kernel/linux/linux-yocto-tiny-kexecboot_3.10.bb b/meta-initramfs/recipes-kernel/linux/linux-yocto-tiny-kexecboot_3.10.bb
index 887921e..20a9791 100644
--- a/meta-initramfs/recipes-kernel/linux/linux-yocto-tiny-kexecboot_3.10.bb
+++ b/meta-initramfs/recipes-kernel/linux/linux-yocto-tiny-kexecboot_3.10.bb
@@ -8,52 +8,18 @@  KERNEL_IMAGE_BASE_NAME = "${KERNEL_IMAGETYPE}-yocto-tiny-kexecboot-${PV}-${PR}-$
 KERNEL_IMAGE_SYMLINK_NAME = "${KERNEL_IMAGETYPE}-yocto-tiny-kexecboot-${MACHINE}"
 
 INITRAMFS_IMAGE = "initramfs-kexecboot-klibc-image"
-INITRAMFS_TASK = "initramfs-kexecboot-klibc-image:do_rootfs"
-
-
-do_populate_sysroot() {
-    :
-}
-
-do_install() {
-    :
-}
-
-do_package() {
-}
-
-do_package_deb() {
-    :
-}
-
-do_package_ipk() {
-    :
-}
-
-do_package_rpm() {
-    :
-}
-
-do_package_tar() {
-    :
-}
-
-do_package_write_deb() {
-    :
-}
-
-do_package_write_ipk() {
-    :
-}
-
-do_package_write_rpm() {
-    :
-}
-
-do_package_write_tar() {
-    :
-}
-
-do_packagedata() {
-    :
-}
+INITRAMFS_TASK = "${INITRAMFS_IMAGE}:do_rootfs"
+
+# disable unneeded tasks
+do_install[noexec] = "1"
+do_package[noexec] = "1"
+do_packagedata[noexec] = "1"
+do_package_deb[noexec] = "1"
+do_package_ipk[noexec] = "1"
+do_package_rpm[noexec] = "1"
+do_package_tar[noexec] = "1"
+do_package_write_deb[noexec] = "1"
+do_package_write_ipk[noexec] = "1"
+do_package_write_rpm[noexec] = "1"
+do_package_write_tar[noexec] = "1"
+do_populate_sysroot[noexec] = "1"