summaryrefslogtreecommitdiff
path: root/tools/dosfstools/Makefile
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2016-07-13 19:13:49 +0200
committerÁlvaro Fernández Rojas <noltari@skynet>2016-07-13 22:59:00 +0200
commit57530dbec64c4dbbec78b00bac818403447b3318 (patch)
tree015385002f07c2abcb0d24a53805074e51b68dff /tools/dosfstools/Makefile
parent14ee2b06429fef0f083dede3926619d98bf2eeeb (diff)
downloadmtk-20170518-57530dbec64c4dbbec78b00bac818403447b3318.zip
mtk-20170518-57530dbec64c4dbbec78b00bac818403447b3318.tar.gz
mtk-20170518-57530dbec64c4dbbec78b00bac818403447b3318.tar.bz2
dosfstools: fix build on OS X
- avoid using tools/include/endian.h on OS X to fix compilation. - remove unneeded Host/Compile definition. - refresh patches. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'tools/dosfstools/Makefile')
-rw-r--r--tools/dosfstools/Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/dosfstools/Makefile b/tools/dosfstools/Makefile
index 56a9aa5..7b1e22e 100644
--- a/tools/dosfstools/Makefile
+++ b/tools/dosfstools/Makefile
@@ -20,13 +20,10 @@ HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/host-build.mk
ifeq ($(HOST_OS),Darwin)
+HOST_CFLAGS += -UHAVE_ENDIAN_H
LDLIBS += -liconv
endif
-define Host/Compile
- $(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" LDFLAGS="$(HOST_LDFLAGS)" LDLIBS="$(LDLIBS)"
-endef
-
define Host/Install
$(INSTALL_BIN) $(HOST_BUILD_DIR)/src/mkfs.fat $(STAGING_DIR_HOST)/bin/
$(LN) mkfs.fat $(STAGING_DIR_HOST)/bin/mkdosfs