2012-07-24 20:39:00 +00:00
|
|
|
#
|
2015-01-11 22:15:11 +00:00
|
|
|
# Copyright (C) 2012-2014 OpenWrt.org
|
2012-07-24 20:39:00 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=dosfstools
|
2015-01-11 22:15:11 +00:00
|
|
|
PKG_VERSION:=3.0.26
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
|
|
PKG_SOURCE_URL:=http://daniel-baumann.ch/files/software/dosfstools/
|
|
|
|
PKG_MD5SUM:=45012f5f56f2aae3afcd62120b9e5a08
|
2012-07-24 20:39:00 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
|
|
|
define Host/Compile
|
2015-02-06 00:00:43 +00:00
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) SHELL="$(BASH)" LDFLAGS="$(HOST_LDFLAGS)"
|
2012-07-24 20:39:00 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
2015-01-11 22:15:11 +00:00
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/mkfs.fat $(STAGING_DIR_HOST)/bin/
|
|
|
|
$(LN) mkfs.fat $(STAGING_DIR_HOST)/bin/mkdosfs
|
2012-07-24 20:39:00 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Clean
|
2015-01-11 22:15:11 +00:00
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/mk{dosfs,fs.fat}
|
2012-07-24 20:39:00 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|