From 24c2535f52550095a863a65e48bbf423b09fbed0 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Sun, 17 Mar 2013 08:19:41 +0000 Subject: [PATCH] package/dosfstools: add host-package selection Add dosfstools as a host-package selection in the menuconfig. Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni Tested-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- package/Config.in.host | 1 + package/dosfstools/Config.in.host | 6 ++++++ package/dosfstools/dosfstools.mk | 9 +++++++++ 3 files changed, 16 insertions(+) create mode 100644 package/dosfstools/Config.in.host diff --git a/package/Config.in.host b/package/Config.in.host index 8813f5b7a5..43f292c174 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 0000000000..9f9ceabbe6 --- /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 3a0856ab4b..332f2eef35 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)) -- 2.30.2