package/dosfstools: add host-package selection
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 17 Mar 2013 08:19:41 +0000 (08:19 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 18 Mar 2013 22:02:28 +0000 (23:02 +0100)
Add dosfstools as a host-package selection in the menuconfig.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in.host
package/dosfstools/Config.in.host [new file with mode: 0644]
package/dosfstools/dosfstools.mk

index 8813f5b7a5c2701e969799371d5467d8f2fc2e3c..43f292c1741264c89f74657c4d3facd346bb08e8 100644 (file)
@@ -1,6 +1,7 @@
 menu "Host utilities"
 
 source "package/dfu-util/Config.in.host"
+source "package/dosfstools/Config.in.host"
 source "package/e2fsprogs/Config.in.host"
 source "package/lpc3250loader/Config.in.host"
 source "package/omap-u-boot-utils/Config.in.host"
diff --git a/package/dosfstools/Config.in.host b/package/dosfstools/Config.in.host
new file mode 100644 (file)
index 0000000..9f9ceab
--- /dev/null
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HOST_DOSFSTOOLS
+       bool "host dosfstools"
+       help
+         Tools for creating and checking DOS FAT filesystems.
+         
+         http://www.daniel-baumann.ch/software/dosfstools/
index 3a0856ab4b0da8d261af5594f417e5eb10ad352e..332f2eef355063a7ee56e4601136ffd7242f6539 100644 (file)
@@ -43,4 +43,13 @@ define DOSFSTOOLS_CLEAN_CMDS
        -$(MAKE) -C $(@D) clean
 endef
 
+define HOST_DOSFSTOOLS_BUILD_CMDS
+       $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D)
+endef
+
+define HOST_DOSFSTOOLS_INSTALL_CMDS
+       $(MAKE) -C $(@D) $(HOST_CONFIGURE_OPTS) PREFIX=$(HOST_DIR)/usr install
+endef
+
 $(eval $(generic-package))
+$(eval $(host-generic-package))