diff options
author | Phil Sutter <phil@nwl.cc> | 2017-03-08 05:33:29 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-03-17 04:00:53 +0100 |
commit | bb44f338402376d88cae8983a37b498fbf1dc7f5 (patch) | |
tree | f3969ab928024c220dbb2d5f4b65ca2554f56f32 /package | |
parent | 1a601420868909a70d52761914201de26bf84ff1 (diff) |
package/mtd-utils: Enable UBIFS support in host build
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'package')
-rw-r--r-- | package/mtd-utils/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/package/mtd-utils/Makefile b/package/mtd-utils/Makefile index ca8fac51f..9c39b1d36 100644 --- a/package/mtd-utils/Makefile +++ b/package/mtd-utils/Makefile @@ -11,7 +11,7 @@ PKG_DESCR:= flash filesystem utilities PKG_SECTION:= sys/fs PKG_DEPENDS:= libuuid liblzo PKG_BUILDDEP:= zlib util-linux liblzo -HOST_BUILDDEP:= liblzo-host +HOST_BUILDDEP:= liblzo-host zlib-host PKG_URL:= http://www.linux-mtd.infradead.org PKG_SITES:= ftp://ftp.infradead.org/pub/mtd-utils/ @@ -43,9 +43,9 @@ $(eval $(call PKG_template,FLASH_OTP_INFO,flash-otp-info,$(PKG_VERSION)-${PKG_RE $(eval $(call PKG_template,FLASH_OTP_DUMP,flash-otp-dump,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_FLASH_OTP_DUMP},${PKG_SECTION})) $(eval $(call PKG_template,FLASH_LOCK,flash-lock,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_FLASH_LOCK},${PKG_SECTION})) -HOST_STYLE:= manual +HOST_STYLE:= auto HOST_CPPFLAGS+= -DWITHOUT_XATTR=1 -I./include -HOST_MAKE_FLAGS+= WITHOUT_UBI=1 WITHOUT_LZO=1 +HOST_MAKE_FLAGS+= WITHOUT_LZO=1 host-build: (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \ @@ -53,15 +53,16 @@ host-build: mtd-utils-hostinstall: ${INSTALL_DIR} ${STAGING_HOST_DIR}/usr/bin - ${INSTALL_BIN} ${WRKBUILD}/mkfs.jffs2 \ + ${INSTALL_BIN} ${WRKBUILD}/mkfs.{jffs2,ubifs} \ ${STAGING_HOST_DIR}/usr/bin XAKE_FLAGS+= WITHOUT_XATTR=1 +ifneq (${ADK_PACKAGE_MTD_UTILS_WITH_UBIFS},y) +XAKE_FLAGS+= WITHOUT_UBI=1 +else ifneq (${ADK_PACKAGE_MTD_UTILS_WITH_LZO},y) XAKE_FLAGS+= WITHOUT_LZO=1 endif -ifneq (${ADK_PACKAGE_MTD_UTILS_WITH_UBIFS},y) -XAKE_FLAGS+= WITHOUT_UBI=1 endif XAKE_FLAGS+= BUILDDIR="${WRKDIST}" |