mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
561031921f
The release notes says this: As already said, the changes since 2.1.1 are primarily bug fixes, addressing compiler warnings and issues reported by diagnostic tools, but also build failures for some configurations. https://lists.infradead.org/pipermail/linux-mtd/2020-July/081299.html Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
57 lines
1.2 KiB
Makefile
57 lines
1.2 KiB
Makefile
#
|
|
# Copyright (C) 2006-2015 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=mtd-utils
|
|
PKG_VERSION:=2.1.2
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/mtd-utils/
|
|
PKG_HASH:=8ad4c5f34716d40646aa28724a2f5616d325a6f119254f914e26976f1f76e9d6
|
|
|
|
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"
|
|
|
|
HOST_CONFIGURE_ARGS+= \
|
|
--disable-tests \
|
|
--without-crypto \
|
|
--without-xattr \
|
|
--without-zstd \
|
|
--without-lzo
|
|
|
|
HOST_MAKE_FLAGS += \
|
|
PROGRAMS="mkfs.jffs2 ubinize mkfs.ubifs"
|
|
|
|
define Host/Install
|
|
$(CP) \
|
|
$(HOST_BUILD_DIR)/mkfs.jffs2 \
|
|
$(HOST_BUILD_DIR)/mkfs.ubifs \
|
|
$(HOST_BUILD_DIR)/ubinize \
|
|
$(STAGING_DIR_HOST)/bin/
|
|
endef
|
|
|
|
define Host/Clean
|
|
rm -f $(STAGING_DIR_HOST)/bin/{mkfs.jffs2,mkfs.ubifs,ubinize}
|
|
endef
|
|
|
|
$(eval $(call HostBuild))
|