mirror of
https://github.com/Ansuel/openwrt.git
synced 2025-12-16 15:01:32 +00:00
See announcement mail for list of new features: https://lists.infradead.org/pipermail/linux-mtd/2025-February/108248.html The removed patch 100-sscanf_fix.patch was applied upstream, see: https://git.infradead.org/?p=mtd-utils.git;a=commitdiff;h=cba2d7875328b05a4a76f619de0ce7050f2df971 The patch 110-portability.patch was manually adapted. Cherry pick some upstream commits which fix build problems in some situations. Link: https://github.com/openwrt/openwrt/pull/20540 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
56 lines
1.1 KiB
Makefile
56 lines
1.1 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.3.0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
PKG_SOURCE_URL:=https://infraroot.at/pub/mtd/
|
|
PKG_HASH:=2db102908b232406ccb20719c0f43b61196aef4534493419fbf98a273c598c10
|
|
PKG_CPE_ID:=cpe:/a:mtd-utils_project:mtd-utils
|
|
|
|
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_ARGS+= \
|
|
--without-tests \
|
|
--without-crypto \
|
|
--without-xattr \
|
|
--without-zstd \
|
|
--without-lzo \
|
|
--with-lzma
|
|
|
|
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))
|