Signed-off-by: Felix Fietkau <nbd@nbd.name>
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"
--without-xattr \
--without-lzo
+HOST_MAKE_FLAGS += \
+ PROGRAMS="mkfs.jffs2 ubinize mkfs.ubifs"
+
define Host/Install
$(CP) \
$(HOST_BUILD_DIR)/mkfs.jffs2 \