tools: add missing dependency for dosfstools
[openwrt/openwrt.git] / tools / make-ext4fs / Makefile
1 #
2 # Copyright (C) 2015 OpenWrt.org
3 # Copyright (C) 2016 LEDE project
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=make-ext4fs
11 PKG_VERSION:=2016-08-14
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
14 PKG_SOURCE_URL=$(LEDE_GIT)/project/make_ext4fs.git
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_VERSION:=484903e4332be6c317f531b008cb2a841a18c506
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_MIRROR_MD5SUM:=5a4473e58dcaed1f41c2391d2326a67af356ca9a3a075fc3486d95276fb9a400
19
20 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/host-build.mk
23
24 ifeq ($(HOST_OS),Linux)
25 MAKE_STATIC := STATIC=1
26 endif
27
28 define Host/Compile
29 $(MAKE) -C $(HOST_BUILD_DIR) make_ext4fs $(MAKE_STATIC)
30 endef
31
32 define Host/Install
33 $(INSTALL_BIN) $(HOST_BUILD_DIR)/make_ext4fs $(STAGING_DIR_HOST)/bin/
34 endef
35
36 define Host/Clean
37 rm -f $(STAGING_DIR_HOST)/bin/make_ext4fs
38 endef
39
40 $(eval $(call HostBuild))