package/f2fs-tools: add host variant
authorGrzegorz Blach <grzegorz@blach.pl>
Fri, 26 Oct 2018 20:00:15 +0000 (22:00 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 3 Nov 2018 14:02:07 +0000 (15:02 +0100)
Having a host variant of this package is useful to create f2fs
filesystem images.

Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
[Thomas: add explicit --without-blkid and --without-selinux options,
following the review from Yann E. Morin.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in.host
package/f2fs-tools/Config.in.host [new file with mode: 0644]
package/f2fs-tools/f2fs-tools.mk

index 49ff2487cdd60eabb49dd8fbd459578d5a4e0936..179f30451f4fd1d9d7734efb01f3edfae436922f 100644 (file)
@@ -891,6 +891,7 @@ F:  package/sofia-sip/
 
 N:     Grzegorz Blach <grzegorz@blach.pl>
 F:     package/bluez5_utils-headers/
+F:     package/f2fs-tools/
 F:     package/pigpio/
 F:     package/python-falcon/
 F:     package/python-mimeparse/
index 3a3578ceeb0163e78b4e979ff8a2bead8547652a..16b474fc9dec06faebb3cfac5021d19a6c93f60b 100644 (file)
@@ -16,6 +16,7 @@ menu "Host utilities"
        source "package/dtc/Config.in.host"
        source "package/e2fsprogs/Config.in.host"
        source "package/e2tools/Config.in.host"
+       source "package/f2fs-tools/Config.in.host"
        source "package/faketime/Config.in.host"
        source "package/fwup/Config.in.host"
        source "package/genext2fs/Config.in.host"
diff --git a/package/f2fs-tools/Config.in.host b/package/f2fs-tools/Config.in.host
new file mode 100644 (file)
index 0000000..19c77b9
--- /dev/null
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_HOST_F2FS_TOOLS
+       bool "host f2fs-tools"
+       select BR2_PACKAGE_HOST_UTIL_LINUX
+       help
+         Tools for Flash-Friendly File System (F2FS)
+
+         https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git
index 119cef35cc8fc3ce0dca5e056d87b8ed636f8594..ba16218bdaad9e0118bb94bbc00e4f22941a5f94 100644 (file)
@@ -9,6 +9,7 @@ F2FS_TOOLS_SITE = http://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-to
 F2FS_TOOLS_SITE_METHOD = git
 F2FS_TOOLS_CONF_ENV = ac_cv_file__git=no
 F2FS_TOOLS_DEPENDENCIES = host-pkgconf util-linux
+HOST_F2FS_TOOLS_DEPENDENCIES = host-pkgconf host-util-linux
 # GIT version, shipped without configure
 F2FS_TOOLS_AUTORECONF = YES
 F2FS_TOOLS_INSTALL_STAGING = YES
@@ -29,4 +30,12 @@ else
 F2FS_TOOLS_CONF_OPTS += --without-blkid
 endif
 
+# blkid is only used to detect if we're overwriting a filesystem
+# during mkfs, which only makes sense on the target, so we disable
+# blkid support even if we have host-util-linux
+HOST_F2FS_TOOLS_CONF_OPTS = \
+       --without-selinux \
+       --without-blkid
+
 $(eval $(autotools-package))
+$(eval $(host-autotools-package))