mtd-utils: add back macOS compatibility code that was dropped during the update
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
45219c1c0f
commit
56ae9f9b0b
1 changed files with 12 additions and 0 deletions
|
@ -17,6 +17,15 @@ PKG_FIXUP:=autoreconf
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/host-build.mk
|
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+= \
|
HOST_CONFIGURE_VARS+= \
|
||||||
UUID_CFLAGS="-I$(STAGING_DIR_HOST)/include/e2fsprogs/uuid"
|
UUID_CFLAGS="-I$(STAGING_DIR_HOST)/include/e2fsprogs/uuid"
|
||||||
|
@ -26,6 +35,9 @@ HOST_CONFIGURE_ARGS+= \
|
||||||
--without-xattr \
|
--without-xattr \
|
||||||
--without-lzo
|
--without-lzo
|
||||||
|
|
||||||
|
HOST_MAKE_FLAGS += \
|
||||||
|
PROGRAMS="mkfs.jffs2 ubinize mkfs.ubifs"
|
||||||
|
|
||||||
define Host/Install
|
define Host/Install
|
||||||
$(CP) \
|
$(CP) \
|
||||||
$(HOST_BUILD_DIR)/mkfs.jffs2 \
|
$(HOST_BUILD_DIR)/mkfs.jffs2 \
|
||||||
|
|
Loading…
Reference in a new issue