Skip to contentSkip to conversation

kexecboot_cfg: fix against unwanted appendings to boot.cfg

PATCH New Andrea Adami 1 participant 3 messages Sep 15, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 kexecboot_cfg: fix against unwanted appendings to boot.cfg

---
 meta-initramfs/recipes-bsp/kexecboot/kexecboot-cfg_0.1.bb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
meta-initramfs/recipes-bsp/kexecboot/kexecboot-cfg_0.1.bb +5 -2
index 6f21e52..af3320f 100644
@@ -21,8 +21,11 @@ do_configure_prepend () {
 }
 
 do_install_prepend () {
-echo '# First kernel stanza.
+echo '# /boot/boot.cfg - KEXECBOOT configuration file.
+#
+# First kernel stanza.
 # Show this label in kexecboot menu.
+#
 LABEL=${KEXECBOOT_LABEL}
 #
 # Specify full kernel path on target.
@@ -48,7 +51,7 @@ APPEND=${CMDLINE} ${CMDLINE_DEBUG}
 # LABEL=${KEXECBOOT_LABEL}-test
 # KERNEL=/boot/${KERNEL_IMAGETYPE}-test
 # APPEND=${CMDLINE}
-#' >> ${S}/boot.cfg
+#' > ${S}/boot.cfg
 }
 
 do_install () {
Signature · 1 line
1.8.1.5
#1 lore raw

PATCH 2/3 linux-yocto-tiny-kexecboot: repair after changes in kernel.bbclass

Add INITRAMFS_TASK to build the cpio on first run and exclude the packaging tasks to avoid the expected errors about modules_split and packaging. The recipe doesn't create any package.

---
 .../recipes-kernel/linux/linux-yocto-tiny-kexecboot_3.8.bb        | 8 ++++++++
 1 file changed, 8 insertions(+)
meta-initramfs/recipes-kernel/linux/linux-yocto-tiny-kexecboot_3.8.bb +8 -0
index 78858a3..686cc3d 100644
@@ -8,6 +8,8 @@ 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() {
     :
@@ -16,3 +18,9 @@ do_populate_sysroot() {
 do_install() {
     :
 }
+
+do_package() {
+}
+
+do_package_ipk() {
+}
Signature · 1 line
1.8.1.5
#2 lore raw

PATCH 3/3 linux-yocto-tiny-kexecboot: move from 3.8 to 3.10

In reply to Andrea Adami
---
 ...x-yocto-tiny-kexecboot_3.8.bb => linux-yocto-tiny-kexecboot_3.10.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-initramfs/recipes-kernel/linux/{linux-yocto-tiny-kexecboot_3.8.bb => linux-yocto-tiny-kexecboot_3.10.bb} (90%)
meta-initramfs/recipes-kernel/linux/linux-yocto-tiny-kexecboot_3.10.bb renamed from meta-initramfs/recipes-kernel/linux/linux-yocto-tiny-kexecboot_3.8.bb +1 -1
similarity index 90%
rename from meta-initramfs/recipes-kernel/linux/linux-yocto-tiny-kexecboot_3.8.bb
rename to meta-initramfs/recipes-kernel/linux/linux-yocto-tiny-kexecboot_3.10.bb
index 686cc3d..9f9808e 100644
@@ -1,4 +1,4 @@
-require recipes-kernel/linux/linux-yocto-tiny_3.8.bb
+require recipes-kernel/linux/linux-yocto-tiny_3.10.bb
 SUMMARY = "Yocto tiny kernel embedding a minimalistic kexecboot initramfs"
 
 PACKAGES = ""
Signature · 1 line
1.8.1.5