2 # Copyright (C) 2006-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
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
14 PKG_SOURCE_URL
:=https
://infraroot.at
/pub
/mtd
/
15 PKG_HASH
:=386e27fd121699b6b729bc2e8e04dda987b31cca6b16e12fb6cc6dcf26449f46
19 include $(INCLUDE_DIR
)/host-build.mk
21 ifneq ($(HOST_OS
),Linux
)
25 -D__BYTE_ORDER
=BYTE_ORDER \
31 HOST_CONFIGURE_VARS
+= \
32 UUID_CFLAGS
="-I$(STAGING_DIR_HOST)/include/e2fsprogs/uuid"
34 HOST_CONFIGURE_ARGS
+= \
42 PROGRAMS
="mkfs.jffs2 ubinize mkfs.ubifs"
46 $(HOST_BUILD_DIR
)/mkfs.jffs2 \
47 $(HOST_BUILD_DIR
)/mkfs.ubifs \
48 $(HOST_BUILD_DIR
)/ubinize \
49 $(STAGING_DIR_HOST
)/bin
/
53 rm -f
$(STAGING_DIR_HOST
)/bin
/{mkfs.jffs2
,mkfs.ubifs
,ubinize
}
56 $(eval
$(call HostBuild
))