2 # Copyright (C) 2012-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
13 PKG_SOURCE_URL
:=git
://github.com
/dosfstools
/dosfstools.git
15 PKG_SOURCE_VERSION
:=266a5fc635135a9ffaa8683da1ec03aae1553b7b
16 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
18 HOST_BUILD_DIR
:=$(BUILD_DIR_HOST
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 include $(INCLUDE_DIR
)/host-build.mk
22 ifeq ($(HOST_OS
),Darwin
)
27 $(MAKE
) -C
$(HOST_BUILD_DIR
) SHELL
="$(BASH)" LDFLAGS
="$(HOST_LDFLAGS)" LDLIBS
="$(LDLIBS)"
31 $(INSTALL_BIN
) $(HOST_BUILD_DIR
)/mkfs.fat
$(STAGING_DIR_HOST
)/bin
/
32 $(LN
) mkfs.fat
$(STAGING_DIR_HOST
)/bin
/mkdosfs
36 rm -f
$(STAGING_DIR_HOST
)/bin
/mk
{dosfs
,fs.fat
}
39 $(eval
$(call HostBuild
))