btrfs-progs: add host package variant
authorRobert J. Heywood <robert.heywood@codethink.co.uk>
Tue, 21 Aug 2018 16:04:11 +0000 (17:04 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 21 Aug 2018 21:22:11 +0000 (23:22 +0200)
This adds a new option to build the btrfs toolset for the host, which
can be useful to prepare a btrfs filesystem image for the target.

Signed-off-by: Robert J. Heywood <robert.heywood@codethink.co.uk>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/Config.in.host
package/btrfs-progs/Config.in.host [new file with mode: 0644]
package/btrfs-progs/btrfs-progs.mk

index 0c21b11bd0d43a33dc32d3729080a4c1bc21c13d..a3f852b3fcaeba0c33d418483a463a0bea3b54f2 100644 (file)
@@ -2,6 +2,7 @@ menu "Host utilities"
 
        source "package/aespipe/Config.in.host"
        source "package/android-tools/Config.in.host"
+       source "package/btrfs-progs/Config.in.host"
        source "package/cargo/Config.in.host"
        source "package/cbootimage/Config.in.host"
        source "package/checkpolicy/Config.in.host"
diff --git a/package/btrfs-progs/Config.in.host b/package/btrfs-progs/Config.in.host
new file mode 100644 (file)
index 0000000..cdcd2e4
--- /dev/null
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HOST_BTRFS_PROGS
+       bool "host btrfs-progs"
+       help
+         Btrfs filesystem utilities
+
+         https://btrfs.wiki.kernel.org/index.php/Main_Page
index b4cc83935295cda17cc19cd9d2f6c0f5636f3d3b..3129ecc7149e04ba8d617524d26864b3a8e2f062 100644 (file)
@@ -21,4 +21,8 @@ BTRFS_PROGS_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-static
 BTRFS_PROGS_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) install-static
 endif
 
+HOST_BTRFS_PROGS_DEPENDENCIES = host-e2fsprogs host-lzo host-zlib
+HOST_BTRFS_PROGS_CONF_OPTS = --disable-backtrace --disable-zstd --disable-python
+
 $(eval $(autotools-package))
+$(eval $(host-autotools-package))