[oe-commits] org.oe.dev klibc-utils-fstype 1.1.1: Add rudimentary jffs2 detection.
pfalcon commit
openembedded-commits at lists.openembedded.org
Thu Feb 14 07:37:01 UTC 2008
klibc-utils-fstype 1.1.1: Add rudimentary jffs2 detection.
Author: pfalcon at openembedded.org
Branch: org.openembedded.dev
Revision: cbea743aa6a8217f9ac26291c4cc58b2716d5000
ViewMTN: http://monotone.openembedded.org/revision/info/cbea743aa6a8217f9ac26291c4cc58b2716d5000
Files:
1
packages/klibc/files/fstype-sane-and-vfat.patch
packages/klibc/files/fstype-sane-and-vfat-jffs2.patch
packages/klibc/klibc-utils-fstype_1.1.1.bb
Diffs:
#
# mt diff -r2fc1ab5d4694ede50dd5a0af3738a3b740f5557b -rcbea743aa6a8217f9ac26291c4cc58b2716d5000
#
#
#
# rename "packages/klibc/files/fstype-sane-and-vfat.patch"
# to "packages/klibc/files/fstype-sane-and-vfat-jffs2.patch"
#
# patch "packages/klibc/files/fstype-sane-and-vfat-jffs2.patch"
# from [d4a15a94ce1fcbe5660e3ae975c493c18920219b]
# to [a7465419a965e47d9c9dbfbd6bb38deb2cc9ebb2]
#
# patch "packages/klibc/klibc-utils-fstype_1.1.1.bb"
# from [aee9890849d771d8cb3019aa6ec1ac6af845eea7]
# to [6ff908d2ee00f7b3302e2a5d0e6088e09b423d88]
#
============================================================
--- packages/klibc/files/fstype-sane-and-vfat.patch d4a15a94ce1fcbe5660e3ae975c493c18920219b
+++ packages/klibc/files/fstype-sane-and-vfat-jffs2.patch a7465419a965e47d9c9dbfbd6bb38deb2cc9ebb2
@@ -1,8 +1,6 @@
-Patch to compile fstype util against "normal" libc (glibc/uclicb), and to
-add vfat detection.
-
---- klibc-1.1.1/utils/fstype.c.org 2005-09-06 23:49:34.000000000 +0300
-+++ klibc-1.1.1/utils/fstype.c 2007-11-24 01:07:26.000000000 +0200
+diff -r 3c9d84425ba7 utils/fstype.c
+--- a/utils/fstype.c Thu Feb 14 02:09:30 2008 +0200
++++ b/utils/fstype.c Thu Feb 14 02:13:46 2008 +0200
@@ -13,11 +13,18 @@
*/
@@ -22,10 +20,19 @@ add vfat detection.
#define cpu_to_be32(x) __cpu_to_be32(x) /* Needed by romfs_fs.h */
-@@ -105,6 +112,18 @@
+@@ -105,6 +112,27 @@ static int romfs_image(const unsigned ch
return 0;
}
++static int jffs2_image(const unsigned char *buf, unsigned long *blocks)
++{
++ // Very sloppy! ;-E
++ if (*buf == 0x85 && buf[1] == 0x19)
++ return 1;
++
++ return 0;
++}
++
+static int vfat_image(const unsigned char *buf, unsigned long *blocks)
+{
+ const struct romfs_super_block *sb =
@@ -41,7 +48,7 @@ add vfat detection.
static int minix_image(const unsigned char *buf, unsigned long *blocks)
{
const struct minix_super_block *sb =
-@@ -167,8 +186,6 @@
+@@ -167,8 +195,6 @@ static int xfs_image(const unsigned char
(const struct xfs_sb *)buf;
if (__be32_to_cpu(sb->sb_magicnum) == XFS_SB_MAGIC) {
@@ -50,10 +57,11 @@ add vfat detection.
return 1;
}
return 0;
-@@ -184,6 +201,7 @@
+@@ -184,6 +210,8 @@ static struct imagetype images[] = {
{ 0, "gzip", gzip_image },
{ 0, "cramfs", cramfs_image },
{ 0, "romfs", romfs_image },
++ { 0, "jffs2", jffs2_image },
+ { 0, "vfat", vfat_image },
{ 0, "xfs", xfs_image },
{ 1, "minix", minix_image },
============================================================
--- packages/klibc/klibc-utils-fstype_1.1.1.bb aee9890849d771d8cb3019aa6ec1ac6af845eea7
+++ packages/klibc/klibc-utils-fstype_1.1.1.bb 6ff908d2ee00f7b3302e2a5d0e6088e09b423d88
@@ -1,6 +1,6 @@ SRC_URI = "${KERNELORG_MIRROR}/pub/linux
SRC_URI = "${KERNELORG_MIRROR}/pub/linux/libs/klibc/Stable/klibc-${PV}.tar.bz2"
-SRC_URI += "file://fstype-sane-and-vfat.patch;patch=1"
-PR = "r0"
+SRC_URI += "file://fstype-sane-and-vfat-jffs2.patch;patch=1"
+PR = "r1"
S = "${WORKDIR}/klibc-${PV}"
More information about the Openembedded-commits
mailing list