Patchwork [2/6] package/dosfstools: add host-package selection

login
register
mail settings
Submitter Yann E. MORIN
Date Feb. 8, 2013, 5:32 p.m.
Message ID <cb7500992ef0651a3689443522eaa5a54afe10c3.1360344619.git.yann.morin.1998@free.fr>
Download mbox | patch
Permalink /patch/219232/
State Changes Requested
Headers show

Comments

Yann E. MORIN - Feb. 8, 2013, 5:32 p.m.
Add dosfstools as a host-package selection in the menuconfig.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/Config.in.host            |    1 +
 package/dosfstools/Config.in.host |    6 ++++++
 package/dosfstools/dosfstools.mk  |    9 +++++++++
 3 files changed, 16 insertions(+), 0 deletions(-)
 create mode 100644 package/dosfstools/Config.in.host
Thomas Petazzoni - Feb. 8, 2013, 5:41 p.m.
Dear Yann E. MORIN,

On Fri,  8 Feb 2013 18:32:56 +0100, Yann E. MORIN wrote:

> +define HOST_DOSFSTOOLS_BUILD_CMDS
> +	$(MAKE) CC="$(HOSTCC)" -C $(@D)
> +endef
> +
> +define HOST_DOSFSTOOLS_INSTALL_CMDS
> +	$(MAKE) -C $(@D) CC="$(HOSTCC)" PREFIX=$(HOST_DIR)/usr install
> +endef

$(HOST_CONFIGURE_OPTS) here maybe instead of CC="$(HOSTCC)" ?

Thanks,

Thomas

Patch

diff --git a/package/Config.in.host b/package/Config.in.host
index 8813f5b..43f292c 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 0000000..9f9ceab
--- /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 4f89364..cacd6dd 100644
--- a/package/dosfstools/dosfstools.mk
+++ b/package/dosfstools/dosfstools.mk
@@ -36,4 +36,13 @@  define DOSFSTOOLS_CLEAN_CMDS
 	-$(MAKE) -C $(@D) clean
 endef
 
+define HOST_DOSFSTOOLS_BUILD_CMDS
+	$(MAKE) CC="$(HOSTCC)" -C $(@D)
+endef
+
+define HOST_DOSFSTOOLS_INSTALL_CMDS
+	$(MAKE) -C $(@D) CC="$(HOSTCC)" PREFIX=$(HOST_DIR)/usr install
+endef
+
 $(eval $(generic-package))
+$(eval $(host-generic-package))