summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2013-03-17 08:19:41 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2013-03-18 23:02:28 +0100
commit24c2535f52550095a863a65e48bbf423b09fbed0 (patch)
treeb82a2448c6c61afff7a711fedec789827623280d
parent59d1fe58fac77ae6d4e574719b48475c8030ed07 (diff)
downloadbuildroot-novena-24c2535f52550095a863a65e48bbf423b09fbed0.tar.gz
buildroot-novena-24c2535f52550095a863a65e48bbf423b09fbed0.zip
package/dosfstools: add host-package selection
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>
-rw-r--r--package/Config.in.host1
-rw-r--r--package/dosfstools/Config.in.host6
-rw-r--r--package/dosfstools/dosfstools.mk9
3 files changed, 16 insertions, 0 deletions
diff --git a/package/Config.in.host b/package/Config.in.host
index 8813f5b7a..43f292c17 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -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
index 000000000..9f9ceabbe
--- /dev/null
+++ b/package/dosfstools/Config.in.host
@@ -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/
diff --git a/package/dosfstools/dosfstools.mk b/package/dosfstools/dosfstools.mk
index 3a0856ab4..332f2eef3 100644
--- a/package/dosfstools/dosfstools.mk
+++ b/package/dosfstools/dosfstools.mk
@@ -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))