2010-11-22 19:26:45 +08:00
|
|
|
#
|
2015-11-09 04:40:03 +08:00
|
|
|
# Copyright (C) 2010-2015 OpenWrt.org
|
2010-11-22 19:26:45 +08:00
|
|
|
#
|
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
|
|
PKG_NAME:=e2fsprogs
|
2017-09-28 10:55:46 +08:00
|
|
|
PKG_CPE_ID:=cpe:/a:e2fsprogs_project:e2fsprogs
|
2023-02-11 22:22:41 +08:00
|
|
|
PKG_VERSION:=1.47.0
|
2024-04-04 01:12:57 +08:00
|
|
|
PKG_HASH:=0b4fe723d779b0927fb83c9ae709bc7b40f66d7df36433bef143e41c54257084
|
2010-11-22 19:26:45 +08:00
|
|
|
|
2024-04-04 01:12:57 +08:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2017-02-07 03:05:36 +08:00
|
|
|
PKG_SOURCE_URL:=@KERNEL/linux/kernel/people/tytso/e2fsprogs/v$(PKG_VERSION)/
|
2010-11-22 19:26:45 +08:00
|
|
|
|
2012-09-15 22:18:07 +08:00
|
|
|
HOST_BUILD_PARALLEL:=1
|
|
|
|
|
|
2010-11-22 19:26:45 +08:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
|
2018-09-15 21:49:31 +08:00
|
|
|
ifneq ($(shell $(HOSTCC) --version | grep clang),)
|
2020-04-10 18:37:26 +08:00
|
|
|
HOST_CFLAGS += -D__GNUC_PREREQ\(...\)=0 -Dloff_t=off_t
|
2018-09-15 21:49:31 +08:00
|
|
|
endif
|
2021-06-20 06:11:23 +08:00
|
|
|
HOST_CFLAGS += $(HOST_FPIC)
|
2010-11-22 19:26:45 +08:00
|
|
|
|
2012-06-10 17:22:07 +08:00
|
|
|
HOST_CONFIGURE_ARGS += \
|
2012-06-10 20:24:59 +08:00
|
|
|
--disable-elf-shlibs \
|
2024-06-26 01:43:30 +08:00
|
|
|
--disable-libuuid \
|
2012-06-10 15:43:43 +08:00
|
|
|
--disable-tls \
|
2020-02-03 21:21:56 +08:00
|
|
|
--disable-nls \
|
2024-03-24 17:40:31 +08:00
|
|
|
--enable-threads=pth \
|
2024-09-25 19:31:29 +08:00
|
|
|
--disable-fuse2fs \
|
|
|
|
|
--with-crond-dir=no
|
2010-11-22 19:26:45 +08:00
|
|
|
|
2024-09-26 01:42:15 +08:00
|
|
|
# The following uses pkg-config the wrong way around. Just override it.
|
|
|
|
|
HOST_CONFIGURE_VARS += \
|
|
|
|
|
ac_cv_lib_uuid_uuid_generate=yes
|
|
|
|
|
|
2012-12-03 02:35:39 +08:00
|
|
|
define Host/Prepare
|
|
|
|
|
$(call Host/Prepare/Default)
|
|
|
|
|
rm -rf $(HOST_BUILD_DIR)/doc
|
|
|
|
|
endef
|
|
|
|
|
|
2024-07-01 00:08:40 +08:00
|
|
|
define Host/Install
|
|
|
|
|
$(call Host/Install/Default)
|
2024-07-02 17:14:17 +08:00
|
|
|
$(SED) 's|^DIR=.*|DIR=$$$${STAGING_DIR_HOST}/share/et|' $(STAGING_DIR_HOST)/bin/compile_et
|
|
|
|
|
$(SED) 's|^DIR=.*|DIR=$$$${STAGING_DIR_HOST}/share/ss|' $(STAGING_DIR_HOST)/bin/mk_cmds
|
2024-07-01 00:08:40 +08:00
|
|
|
endef
|
|
|
|
|
|
2024-06-26 01:45:12 +08:00
|
|
|
define Host/Uninstall
|
|
|
|
|
-$(call Host/Compile/Default,uninstall)
|
2010-11-22 19:26:45 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|