[openwrt/openwrt] mtd-utils: add back macOS compatibility code that was dropped during the update

LEDE Commits lede-commits at lists.infradead.org
Mon Apr 30 01:13:06 PDT 2018


nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/56ae9f9b0b1583e02815f0e60bf232947c27c6cf

commit 56ae9f9b0b1583e02815f0e60bf232947c27c6cf
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Mon Apr 30 10:09:48 2018 +0200

    mtd-utils: add back macOS compatibility code that was dropped during the update
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 tools/mtd-utils/Makefile | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/tools/mtd-utils/Makefile b/tools/mtd-utils/Makefile
index 1527d10..ff000b9 100644
--- a/tools/mtd-utils/Makefile
+++ b/tools/mtd-utils/Makefile
@@ -17,6 +17,15 @@ PKG_FIXUP:=autoreconf
 
 include $(INCLUDE_DIR)/host-build.mk
 
+ifneq ($(HOST_OS),Linux)
+  HOST_CFLAGS += \
+	-I$(CURDIR)/include \
+	-Dloff_t=off_t \
+	-D__BYTE_ORDER=BYTE_ORDER \
+	-include endian.h \
+	-DNO_NATIVE_SUPPORT \
+	-include fls.h
+endif
 
 HOST_CONFIGURE_VARS+= \
 	UUID_CFLAGS="-I$(STAGING_DIR_HOST)/include/e2fsprogs/uuid"
@@ -26,6 +35,9 @@ HOST_CONFIGURE_ARGS+= \
 	--without-xattr \
 	--without-lzo
 
+HOST_MAKE_FLAGS += \
+	PROGRAMS="mkfs.jffs2 ubinize mkfs.ubifs"
+
 define Host/Install
 	$(CP) \
 		$(HOST_BUILD_DIR)/mkfs.jffs2 \



More information about the lede-commits mailing list