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
:=c1d853bc4adf83bcabd2792fc95af33bdd8643c97e8f7b3f0180af36af76f0e5
16 PKG_CPE_ID
:=cpe
:/a
:mtd-utils_project
:mtd-utils
20 include $(INCLUDE_DIR
)/host-build.mk
22 ifneq ($(HOST_OS
),Linux
)
26 -D__BYTE_ORDER
=BYTE_ORDER \
32 HOST_CONFIGURE_VARS
+= \
33 UUID_CFLAGS
="-I$(STAGING_DIR_HOST)/include/e2fsprogs/uuid"
35 HOST_CONFIGURE_ARGS
+= \
43 PROGRAMS
="mkfs.jffs2 ubinize mkfs.ubifs"
47 $(HOST_BUILD_DIR
)/mkfs.jffs2 \
48 $(HOST_BUILD_DIR
)/mkfs.ubifs \
49 $(HOST_BUILD_DIR
)/ubinize \
50 $(STAGING_DIR_HOST
)/bin
/
54 rm -f
$(STAGING_DIR_HOST
)/bin
/{mkfs.jffs2
,mkfs.ubifs
,ubinize
}
57 $(eval
$(call HostBuild
))