Skip to contentSkip to conversation

kexec-tools: split packaging of kexec and kdump

PATCH Superseded Andrea Adami 2 participants 5 messages Jan 7, 2012 – Jan 9, 2012

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kexec-tools: split packaging of kexec and kdump

* from meta-oe (originally from org.openembedded.dev)
* There are no reasons to install kdump when only kexec is needed. *
* In oe-core/meta there are no references to kexec-tools so
* the recipes inn external layers rdepending on kexec-tools should be
* fixed and rdepend on kexec and/or kdump.
*
* Bump PR.

---
 meta/classes/image_types.bbclass               |    4 ++--
 meta/recipes-kernel/kexec/kexec-tools_2.0.2.bb |    7 ++++++-
 2 files changed, 8 insertions(+), 3 deletions(-)
meta/classes/image_types.bbclass +2 -2
index 3010549..2df424c 100644
@@ -111,11 +111,11 @@ IMAGE_CMD_tar.gz = "cd ${IMAGE_ROOTFS} && tar -zcvf ${DEPLOY_DIR_IMAGE}/${IMAGE_
 IMAGE_CMD_tar.bz2 = "cd ${IMAGE_ROOTFS} && tar -jcvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar.bz2 ."
 IMAGE_CMD_tar.xz = "cd ${IMAGE_ROOTFS} && tar --xz -cvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar.xz ."
 IMAGE_CMD_cpio () {
-	touch ${IMAGE_ROOTFS}/init
+	touch -h ${IMAGE_ROOTFS}/init
 	cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio)
 }
 IMAGE_CMD_cpio.gz () {
-	touch ${IMAGE_ROOTFS}/init
+	touch -h ${IMAGE_ROOTFS}/init
 	cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc | gzip -c -9 >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz)
 }
 IMAGE_CMD_cpio.xz = "type cpio >/dev/null; cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc | xz -c ${XZ_COMPRESSION_LEVEL} --check=${XZ_INTEGRITY_CHECK} > ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.xz) ${EXTRA_IMAGECMD}"
meta/recipes-kernel/kexec/kexec-tools_2.0.2.bb +6 -1
index caed816..8d2e606 100644
@@ -2,8 +2,13 @@ require kexec-tools.inc
 export LDFLAGS = "-L${STAGING_LIBDIR}"
 EXTRA_OECONF = " --with-zlib=yes"
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI += " file://fix_for_compiling_with_gcc-4.6.0.patch"
 SRC_URI[md5sum] = "bc401cf3262b25ff7c9a51fc76c8ab91"
 SRC_URI[sha256sum] = "549ab65c18a2229b6bf21b6875ca6bbe0e579bca08c3543ce6aaf8287a0b4188"
+
+PACKAGES =+ "kexec kdump"
+
+FILES_kexec = "${sbindir}/kexec"
+FILES_kdump = "${sbindir}/kdump"
Signature · 1 line
1.7.3.4
#1 lore raw
Quoted 53 lines · Andrea Adami

* from meta-oe (originally from org.openembedded.dev)
* There are no reasons to install kdump when only kexec is needed. *
* In oe-core/meta there are no references to kexec-tools so
* the recipes inn external layers rdepending on kexec-tools should be
* fixed and rdepend on kexec and/or kdump.
*
* Bump PR.

---
 meta/classes/image_types.bbclass               |    4 ++-- meta/recipes-kernel/kexec/kexec-tools_2.0.2.bb |    7 ++++++-

 2 files changed, 8 insertions(+), 3 deletions(-)
meta/classes/image_types.bbclass +0 -0
index 3010549..2df424c 100644
@@ -111,11 +111,11 @@ IMAGE_CMD_tar.gz = "cd ${IMAGE_ROOTFS} && tar -zcvf ${DEPLOY_DIR_IMAGE}/${IMAGE_

 IMAGE_CMD_tar.bz2 = "cd ${IMAGE_ROOTFS} && tar -jcvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar.bz2 ."
 IMAGE_CMD_tar.xz = "cd ${IMAGE_ROOTFS} && tar --xz -cvf ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.tar.xz ."
 IMAGE_CMD_cpio () {
-       touch ${IMAGE_ROOTFS}/init
+       touch -h ${IMAGE_ROOTFS}/init
       cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio)
 }
 IMAGE_CMD_cpio.gz () {
-       touch ${IMAGE_ROOTFS}/init
+       touch -h ${IMAGE_ROOTFS}/init
       cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc | gzip -c -9 >${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.gz)
 }
 IMAGE_CMD_cpio.xz = "type cpio >/dev/null; cd ${IMAGE_ROOTFS} && (find . | cpio -o -H newc | xz -c ${XZ_COMPRESSION_LEVEL} --check=${XZ_INTEGRITY_CHECK} > ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cpio.xz) ${EXTRA_IMAGECMD}"

meta/recipes-kernel/kexec/kexec-tools_2.0.2.bb +0 -0
index caed816..8d2e606 100644
@@ -2,8 +2,13 @@ require kexec-tools.inc

 export LDFLAGS = "-L${STAGING_LIBDIR}"
 EXTRA_OECONF = " --with-zlib=yes"

meta/recipes-kernel/kexec/kexec-tools_2.0.2.bb +1 -1
-PR = "r1"
+PR = "r2"

 SRC_URI += " file://fix_for_compiling_with_gcc-4.6.0.patch" SRC_URI[md5sum] = "bc401cf3262b25ff7c9a51fc76c8ab91"
 SRC_URI[sha256sum] = "549ab65c18a2229b6bf21b6875ca6bbe0e579bca08c3543ce6aaf8287a0b4188"

meta/recipes-kernel/kexec/kexec-tools_2.0.2.bb +5 -1
+
+PACKAGES =+ "kexec kdump"
+
+FILES_kexec = "${sbindir}/kexec"
+FILES_kdump = "${sbindir}/kdump"
--
Quoted 2 lines

1.7.3.4

Sorry, this patch contains unwanted changes to image_types.bbclass. Please ignore, will resend.

Andrea

#2 lore raw

PATCH v2 1/1 kexec-tools: split packaging of kexec and kdump

In reply to Andrea Adami

* from meta-oe (originally from org.openembedded.dev)
* There are no reasons to install kdump when only kexec is needed. *
* In oe-core/meta there are no references to kexec-tools so
* the recipes inn external layers rdepending on kexec-tools should be
* fixed and rdepend on kexec and/or kdump.
*
* Bump PR.

---
 meta/recipes-kernel/kexec/kexec-tools_2.0.2.bb |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
meta/recipes-kernel/kexec/kexec-tools_2.0.2.bb +6 -1
index caed816..8d2e606 100644
@@ -2,8 +2,13 @@ require kexec-tools.inc
 export LDFLAGS = "-L${STAGING_LIBDIR}"
 EXTRA_OECONF = " --with-zlib=yes"
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI += " file://fix_for_compiling_with_gcc-4.6.0.patch"
 SRC_URI[md5sum] = "bc401cf3262b25ff7c9a51fc76c8ab91"
 SRC_URI[sha256sum] = "549ab65c18a2229b6bf21b6875ca6bbe0e579bca08c3543ce6aaf8287a0b4188"
+
+PACKAGES =+ "kexec kdump"
+
+FILES_kexec = "${sbindir}/kexec"
+FILES_kdump = "${sbindir}/kdump"
Signature · 1 line
1.7.3.4
#3 lore raw
Quoted 7 lines · Andrea Adami

* from meta-oe (originally from org.openembedded.dev)
* There are no reasons to install kdump when only kexec is needed. *
* In oe-core/meta there are no references to kexec-tools so
* the recipes inn external layers rdepending on kexec-tools should be
* fixed and rdepend on kexec and/or kdump.
*

You need to fix task-core-tools.bb in oe-core/meta itself also.

Thanks
Sau!

Quoted 26 lines

* Bump PR.

---
  meta/recipes-kernel/kexec/kexec-tools_2.0.2.bb |    7 ++++++-
  1 files changed, 6 insertions(+), 1 deletions(-)
meta/recipes-kernel/kexec/kexec-tools_2.0.2.bb +6 -1
index caed816..8d2e606 100644
@@ -2,8 +2,13 @@ require kexec-tools.inc
  export LDFLAGS = "-L${STAGING_LIBDIR}"
  EXTRA_OECONF = " --with-zlib=yes"
 
-PR = "r1"
+PR = "r2"
 
  SRC_URI += " file://fix_for_compiling_with_gcc-4.6.0.patch"
  SRC_URI[md5sum] = "bc401cf3262b25ff7c9a51fc76c8ab91"
  SRC_URI[sha256sum] = "549ab65c18a2229b6bf21b6875ca6bbe0e579bca08c3543ce6aaf8287a0b4188"
+
+PACKAGES =+ "kexec kdump"
+
+FILES_kexec = "${sbindir}/kexec"
+FILES_kdump = "${sbindir}/kdump"
#4 lore raw
Quoted 10 lines · Saul Wold
Quoted 8 lines · Andrea Adami

* from meta-oe (originally from org.openembedded.dev)
* There are no reasons to install kdump when only kexec is needed. *
* In oe-core/meta there are no references to kexec-tools so
* the recipes inn external layers rdepending on kexec-tools should be
* fixed and rdepend on kexec and/or kdump.
*

Quoted 6 lines

You need to fix task-core-tools.bb in oe-core/meta itself also.

Thanks
       Sau!

Sure! My bad I overlooked this.
I'd add just kexec, being kdump is probably installed on demand with capables kernels.
While there, I'd rename the recipe PN to 'kexec-tools' s upstream.

New patchset following soon.
Thanks for reviewing!

Cheers

Quoted 28 lines
Quoted 28 lines

* Bump PR.

---
 meta/recipes-kernel/kexec/kexec-tools_2.0.2.bb |    7 ++++++-

 1 files changed, 6 insertions(+), 1 deletions(-)
meta/recipes-kernel/kexec/kexec-tools_2.0.2.bb +0 -0
index caed816..8d2e606 100644
@@ -2,8 +2,13 @@ require kexec-tools.inc

 export LDFLAGS = "-L${STAGING_LIBDIR}"
 EXTRA_OECONF = " --with-zlib=yes"

meta/recipes-kernel/kexec/kexec-tools_2.0.2.bb +1 -1
-PR = "r1"
+PR = "r2"

 SRC_URI += " file://fix_for_compiling_with_gcc-4.6.0.patch" SRC_URI[md5sum] = "bc401cf3262b25ff7c9a51fc76c8ab91" SRC_URI[sha256sum] = "549ab65c18a2229b6bf21b6875ca6bbe0e579bca08c3543ce6aaf8287a0b4188"

meta/recipes-kernel/kexec/kexec-tools_2.0.2.bb +5 -0
+
+PACKAGES =+ "kexec kdump"
+
+FILES_kexec = "${sbindir}/kexec"
+FILES_kdump = "${sbindir}/kdump"