summaryrefslogtreecommitdiffstats
path: root/package/mtd/20061007/mtd-20061007-mkfs.jffs2.patch
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-20 08:00:19 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-20 08:00:19 +0000
commit58ae45f345826e27b17ad16c8d8a5699ec006a1f (patch)
tree9f9cef80d41d20686fdccbe7ec01c31bc83abc4a /package/mtd/20061007/mtd-20061007-mkfs.jffs2.patch
parent3c9ebe81c2a8d0d855e6e62b663da57f2198033a (diff)
downloadbuildroot-novena-58ae45f345826e27b17ad16c8d8a5699ec006a1f.tar.gz
buildroot-novena-58ae45f345826e27b17ad16c8d8a5699ec006a1f.zip
Add optional mtd configuration (experimental - only available for Atmel targets)
Diffstat (limited to 'package/mtd/20061007/mtd-20061007-mkfs.jffs2.patch')
-rw-r--r--package/mtd/20061007/mtd-20061007-mkfs.jffs2.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/mtd/20061007/mtd-20061007-mkfs.jffs2.patch b/package/mtd/20061007/mtd-20061007-mkfs.jffs2.patch
new file mode 100644
index 000000000..3c4d6bad6
--- /dev/null
+++ b/package/mtd/20061007/mtd-20061007-mkfs.jffs2.patch
@@ -0,0 +1,19 @@
+diff -urN mtd-20061007.orig-0rig/mkfs.jffs2.c mtd-20061007.orig/mkfs.jffs2.c
+--- mtd-20061007.orig-0rig/mkfs.jffs2.c 2006-10-07 17:33:37.000000000 +0200
++++ mtd-20061007.orig/mkfs.jffs2.c 2007-04-09 02:16:06.000000000 +0200
+@@ -240,6 +242,15 @@
+ {
+ struct filesystem_entry *e = dir;
+
++ if((strlen(fullname) == 1) && (fullname[0] == '/')) {
++ /* Looking for "root" */
++ if(e != NULL) {
++ if((strlen(e->fullname) == 1) && (e->fullname[0] == '/')) {
++ return (e);
++ }
++ }
++ }
++
+ if (S_ISDIR(dir->sb.st_mode)) {
+ e = dir->files;
+ }