diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-09-01 09:21:14 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-02 15:58:25 +0100 |
| commit | 72c8aa7c44b1e49994c4419d0548cf7e262c2205 (patch) | |
| tree | 042a98f7c1b544c6fb37570803546a0bc8b7f1d0 /meta/recipes-devtools/mtd | |
| parent | 984bef4298f3aa41d7f578b867e3a06996597d6b (diff) | |
| download | poky-72c8aa7c44b1e49994c4419d0548cf7e262c2205.tar.gz | |
mtd-utils: remove patch that adds -I option
The patch was added in https://git.yoctoproject.org/poky/commit/?id=f594a1145eb5b952265a3fdf6b158ef41b148b12
with no explanation for the use case or metadata.
As there are no uses of the option in poky or meta-oe, it can be removed.
In the (unlikely) event that someone is using the option privately, please cherry-pick
into a product layer, and send upstream.
(From OE-Core rev: 8915aaf22d72626c3b382d45912bd0640d76f543)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/mtd')
| -rw-r--r-- | meta/recipes-devtools/mtd/mtd-utils/add-exclusion-to-mkfs-jffs2-git-2.patch | 105 | ||||
| -rw-r--r-- | meta/recipes-devtools/mtd/mtd-utils_git.bb | 1 |
2 files changed, 0 insertions, 106 deletions
diff --git a/meta/recipes-devtools/mtd/mtd-utils/add-exclusion-to-mkfs-jffs2-git-2.patch b/meta/recipes-devtools/mtd/mtd-utils/add-exclusion-to-mkfs-jffs2-git-2.patch deleted file mode 100644 index 5d874d9810..0000000000 --- a/meta/recipes-devtools/mtd/mtd-utils/add-exclusion-to-mkfs-jffs2-git-2.patch +++ /dev/null | |||
| @@ -1,105 +0,0 @@ | |||
| 1 | Upstream-Status: Pending | ||
| 2 | |||
| 3 | Index: git/jffsX-utils/mkfs.jffs2.c | ||
| 4 | =================================================================== | ||
| 5 | --- git.orig/jffsX-utils/mkfs.jffs2.c | ||
| 6 | +++ git/jffsX-utils/mkfs.jffs2.c | ||
| 7 | @@ -100,6 +100,11 @@ struct filesystem_entry { | ||
| 8 | struct rb_node hardlink_rb; | ||
| 9 | }; | ||
| 10 | |||
| 11 | +struct ignorepath_entry { | ||
| 12 | + struct ignorepath_entry* next; /* Points to the next ignorepath element */ | ||
| 13 | + char name[PATH_MAX]; /* Name of the entry */ | ||
| 14 | +}; | ||
| 15 | +static struct ignorepath_entry* ignorepath = 0; | ||
| 16 | struct rb_root hardlinks; | ||
| 17 | static int out_fd = -1; | ||
| 18 | static int in_fd = -1; | ||
| 19 | @@ -309,7 +314,7 @@ static struct filesystem_entry *recursiv | ||
| 20 | char *hpath, *tpath; | ||
| 21 | struct dirent *dp, **namelist; | ||
| 22 | struct filesystem_entry *entry; | ||
| 23 | - | ||
| 24 | + struct ignorepath_entry* element = ignorepath; | ||
| 25 | |||
| 26 | if (lstat(hostpath, &sb)) { | ||
| 27 | sys_errmsg_die("%s", hostpath); | ||
| 28 | @@ -318,6 +323,15 @@ static struct filesystem_entry *recursiv | ||
| 29 | entry = add_host_filesystem_entry(targetpath, hostpath, | ||
| 30 | sb.st_uid, sb.st_gid, sb.st_mode, 0, parent); | ||
| 31 | |||
| 32 | + while ( element ) { | ||
| 33 | + if ( strcmp( element->name, targetpath ) == 0 ) { | ||
| 34 | + printf( "Note: ignoring directories below '%s'\n", targetpath ); | ||
| 35 | + return entry; | ||
| 36 | + break; | ||
| 37 | + } | ||
| 38 | + element = element->next; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | n = scandir(hostpath, &namelist, 0, alphasort); | ||
| 42 | if (n < 0) { | ||
| 43 | sys_errmsg_die("opening directory %s", hostpath); | ||
| 44 | @@ -1359,6 +1373,7 @@ static struct option long_options[] = { | ||
| 45 | {"root", 1, NULL, 'r'}, | ||
| 46 | {"pagesize", 1, NULL, 's'}, | ||
| 47 | {"eraseblock", 1, NULL, 'e'}, | ||
| 48 | + {"ignore", 1, NULL, 'I'}, | ||
| 49 | {"output", 1, NULL, 'o'}, | ||
| 50 | {"help", 0, NULL, 'h'}, | ||
| 51 | {"verbose", 0, NULL, 'v'}, | ||
| 52 | @@ -1409,6 +1424,7 @@ static const char helptext[] = | ||
| 53 | " -L, --list-compressors Show the list of the available compressors\n" | ||
| 54 | " -t, --test-compression Call decompress and compare with the original (for test)\n" | ||
| 55 | " -n, --no-cleanmarkers Don't add a cleanmarker to every eraseblock\n" | ||
| 56 | +" -I, --ignore=PATH Ignore sub directory and file tree below PATH when recursing over the file system\n" | ||
| 57 | " -o, --output=FILE Output to FILE (default: stdout)\n" | ||
| 58 | " -l, --little-endian Create a little-endian filesystem\n" | ||
| 59 | " -b, --big-endian Create a big-endian filesystem\n" | ||
| 60 | @@ -1566,6 +1582,7 @@ int main(int argc, char **argv) | ||
| 61 | char *compr_name = NULL; | ||
| 62 | int compr_prior = -1; | ||
| 63 | int warn_page_size = 0; | ||
| 64 | + struct ignorepath_entry* element = ignorepath; | ||
| 65 | |||
| 66 | page_size = sysconf(_SC_PAGESIZE); | ||
| 67 | if (page_size < 0) /* System doesn't know so ... */ | ||
| 68 | @@ -1576,7 +1593,7 @@ int main(int argc, char **argv) | ||
| 69 | jffs2_compressors_init(); | ||
| 70 | |||
| 71 | while ((opt = getopt_long(argc, argv, | ||
| 72 | - "D:d:r:s:o:qUPfh?vVe:lbp::nc:m:x:X:Lty:i:", long_options, &c)) >= 0) | ||
| 73 | + "D:d:r:s:I:o:qUPfh?vVe:lbp::nc:m:x:X:Lty:i:", long_options, &c)) >= 0) | ||
| 74 | { | ||
| 75 | switch (opt) { | ||
| 76 | case 'D': | ||
| 77 | @@ -1600,6 +1617,28 @@ int main(int argc, char **argv) | ||
| 78 | warn_page_size = 0; /* set by user, so don't need to warn */ | ||
| 79 | break; | ||
| 80 | |||
| 81 | + case 'I': | ||
| 82 | + printf( "Note: Adding '%s' to ignore Path\n", optarg ); | ||
| 83 | + element = ignorepath; | ||
| 84 | + if ( !ignorepath ) { | ||
| 85 | + ignorepath = xmalloc( sizeof( struct ignorepath_entry ) ); | ||
| 86 | + ignorepath->next = 0; | ||
| 87 | + strcpy( &ignorepath->name[0], optarg ); | ||
| 88 | + } else { | ||
| 89 | + while ( element->next ) element = element->next; | ||
| 90 | + element->next = xmalloc( sizeof( struct ignorepath_entry ) ); | ||
| 91 | + element->next->next = 0; | ||
| 92 | + strcpy( &element->next->name[0], optarg ); | ||
| 93 | + } | ||
| 94 | + printf( "--------- Dumping ignore path list ----------------\n" ); | ||
| 95 | + element = ignorepath; | ||
| 96 | + while ( element ) { | ||
| 97 | + printf( " * '%s'\n", &element->name[0] ); | ||
| 98 | + element = element->next; | ||
| 99 | + } | ||
| 100 | + printf( "---------------------------------------------------\n" ); | ||
| 101 | + break; | ||
| 102 | + | ||
| 103 | case 'o': | ||
| 104 | if (out_fd != -1) { | ||
| 105 | errmsg_die("output filename specified more than once"); | ||
diff --git a/meta/recipes-devtools/mtd/mtd-utils_git.bb b/meta/recipes-devtools/mtd/mtd-utils_git.bb index d5dfbcdf7a..943666e529 100644 --- a/meta/recipes-devtools/mtd/mtd-utils_git.bb +++ b/meta/recipes-devtools/mtd/mtd-utils_git.bb | |||
| @@ -15,7 +15,6 @@ PV = "2.1.4" | |||
| 15 | 15 | ||
| 16 | SRCREV = "c7f1bfa44a84d02061787e2f6093df5cc40b9f5c" | 16 | SRCREV = "c7f1bfa44a84d02061787e2f6093df5cc40b9f5c" |
| 17 | SRC_URI = "git://git.infradead.org/mtd-utils.git;branch=master \ | 17 | SRC_URI = "git://git.infradead.org/mtd-utils.git;branch=master \ |
| 18 | file://add-exclusion-to-mkfs-jffs2-git-2.patch \ | ||
| 19 | file://0001-tests-Remove-unused-linux-fs.h-header-from-includes.patch \ | 18 | file://0001-tests-Remove-unused-linux-fs.h-header-from-includes.patch \ |
| 20 | " | 19 | " |
| 21 | 20 | ||
