Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/2] Simplify the creation of cramfs images
@ 2013-08-29 23:23 Andrea Adami
  2013-08-29 23:23 ` [PATCH 1/2] util-linux: package mkfs.cramfs and fsck.cramfs Andrea Adami
  2013-08-29 23:23 ` [PATCH 2/2] image_types.bbclass: use mkfs.cramfs instead of makecramfs Andrea Adami
  0 siblings, 2 replies; 3+ messages in thread
From: Andrea Adami @ 2013-08-29 23:23 UTC (permalink / raw)
  To: openembedded-core

Extending the util-linux recipe allows the creation
of cramfs images with tools contained in oe-core.

The cramfs recipe in meta-filesystems will be removed
so there will be any conflict nor replacement of
cramfs-native.

This fixes as well an HOB bug (missing helper for cramfs).

Andrea Adami (2):
  util-linux: package mkfs.cramfs and fsck.cramfs
  image_types.bbclass: use mkfs.cramfs instead of makecramfs

 meta/classes/image_types.bbclass            | 4 ++--
 meta/recipes-core/util-linux/util-linux.inc | 5 +++++
 2 files changed, 7 insertions(+), 2 deletions(-)

-- 
1.8.1.5



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] util-linux: package mkfs.cramfs and fsck.cramfs
  2013-08-29 23:23 [PATCH 0/2] Simplify the creation of cramfs images Andrea Adami
@ 2013-08-29 23:23 ` Andrea Adami
  2013-08-29 23:23 ` [PATCH 2/2] image_types.bbclass: use mkfs.cramfs instead of makecramfs Andrea Adami
  1 sibling, 0 replies; 3+ messages in thread
From: Andrea Adami @ 2013-08-29 23:23 UTC (permalink / raw)
  To: openembedded-core

The recipe builds the two utils which are unpackaged.

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
---
 meta/recipes-core/util-linux/util-linux.inc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc
index 961bcc5..8a14d16 100644
--- a/meta/recipes-core/util-linux/util-linux.inc
+++ b/meta/recipes-core/util-linux/util-linux.inc
@@ -36,6 +36,7 @@ PACKAGES =+ "util-linux-agetty util-linux-fdisk util-linux-cfdisk util-linux-sfd
              util-linux-libblkid-dev util-linux-libuuid util-linux-libuuid-dev \
              util-linux-uuidgen util-linux-lscpu util-linux-fsck util-linux-blkid \
              util-linux-mkfs util-linux-mcookie util-linux-reset util-linux-uuidd \
+             util-linux-mkfs.cramfs util-linux-fsck.cramfs \
              util-linux-partx ${PN}-bash-completion"
 
 EXTRA_OECONF = "--libdir=${base_libdir} --disable-use-tty-group \
@@ -83,6 +84,10 @@ FILES_util-linux-lscpu = "${bindir}/lscpu"
 FILES_util-linux-fsck = "${base_sbindir}/fsck*"
 FILES_util-linux-mkfs = "${sbindir}/mkfs"
 
+FILES_util-linux-fsck.cramfs = "${sbindir}/fsck.cramfs"
+FILES_util-linux-mkfs.cramfs = "${sbindir}/mkfs.cramfs"
+
+
 # Util-linux' blkid replaces the e2fsprogs one
 FILES_util-linux-blkid = "${base_sbindir}/blkid*"
 RCONFLICTS_util-linux-blkid = "e2fsprogs-blkid"
-- 
1.8.1.5



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] image_types.bbclass: use mkfs.cramfs instead of makecramfs
  2013-08-29 23:23 [PATCH 0/2] Simplify the creation of cramfs images Andrea Adami
  2013-08-29 23:23 ` [PATCH 1/2] util-linux: package mkfs.cramfs and fsck.cramfs Andrea Adami
@ 2013-08-29 23:23 ` Andrea Adami
  1 sibling, 0 replies; 3+ messages in thread
From: Andrea Adami @ 2013-08-29 23:23 UTC (permalink / raw)
  To: openembedded-core

The former is provided by util-linux and the latter is
now to be removed for meta-filesystems.

This allows to generate cramfs images whithout extra layers.

Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
---
 meta/classes/image_types.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index c168ed5..8c49169 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -139,7 +139,7 @@ IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime --output=${DEPLO
 IMAGE_CMD_sum.jffs2 = "${IMAGE_CMD_jffs2} && sumtool -i ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.jffs2 \
 	-o ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.sum.jffs2 -n ${EXTRA_IMAGECMD}"
 
-IMAGE_CMD_cramfs = "mkcramfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cramfs ${EXTRA_IMAGECMD}"
+IMAGE_CMD_cramfs = "mkfs.cramfs ${IMAGE_ROOTFS} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.cramfs ${EXTRA_IMAGECMD}"
 
 oe_mkext234fs () {
 	fstype=$1
@@ -218,7 +218,7 @@ EXTRA_IMAGECMD_elf ?= ""
 IMAGE_DEPENDS = ""
 IMAGE_DEPENDS_jffs2 = "mtd-utils-native"
 IMAGE_DEPENDS_sum.jffs2 = "mtd-utils-native"
-IMAGE_DEPENDS_cramfs = "cramfs-native"
+IMAGE_DEPENDS_cramfs = "util-linux-native"
 IMAGE_DEPENDS_ext2 = "e2fsprogs-native"
 IMAGE_DEPENDS_ext3 = "e2fsprogs-native"
 IMAGE_DEPENDS_ext4 = "e2fsprogs-native"
-- 
1.8.1.5



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-29 23:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-29 23:23 [PATCH 0/2] Simplify the creation of cramfs images Andrea Adami
2013-08-29 23:23 ` [PATCH 1/2] util-linux: package mkfs.cramfs and fsck.cramfs Andrea Adami
2013-08-29 23:23 ` [PATCH 2/2] image_types.bbclass: use mkfs.cramfs instead of makecramfs Andrea Adami

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox