new package: mtd-utils
This commit is contained in:
parent
0df54942ec
commit
3dc124bbe6
8
packages/mtd-utils/build.sh
Normal file
8
packages/mtd-utils/build.sh
Normal file
@ -0,0 +1,8 @@
|
||||
TERMUX_PKG_HOMEPAGE=http://www.linux-mtd.infradead.org/
|
||||
TERMUX_PKG_DESCRIPTION="Utilities for dealing with MTD devices"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_VERSION=2.1.1
|
||||
TERMUX_PKG_SRCURL=ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-$TERMUX_PKG_VERSION.tar.bz2
|
||||
TERMUX_PKG_SHA256=8d15e8b70f036d6af1a66011f8ca0e048e9675fa7983d33bea92c24313a232d2
|
||||
TERMUX_PKG_DEPENDS="openssl, liblzo, libuuid, zlib, zstd"
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
14
packages/mtd-utils/mkfs.jffs2.c.patch
Normal file
14
packages/mtd-utils/mkfs.jffs2.c.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff -uNr mtd-utils-2.1.1/jffsX-utils/mkfs.jffs2.c mtd-utils-2.1.1.mod/jffsX-utils/mkfs.jffs2.c
|
||||
--- mtd-utils-2.1.1/jffsX-utils/mkfs.jffs2.c 2018-10-02 15:07:55.000000000 +0300
|
||||
+++ mtd-utils-2.1.1.mod/jffsX-utils/mkfs.jffs2.c 2019-10-04 20:22:36.232097463 +0300
|
||||
@@ -86,6 +86,10 @@
|
||||
|
||||
#define PAD(x) (((x)+3)&~3)
|
||||
|
||||
+#ifndef IFTODT
|
||||
+#define IFTODT(mode) (((mode) & 0170000) >> 12)
|
||||
+#endif
|
||||
+
|
||||
struct filesystem_entry {
|
||||
char *name; /* Name of this directory (think basename) */
|
||||
char *path; /* Path of this directory (think dirname) */
|
Loading…
Reference in New Issue
Block a user