[openwrt/openwrt] tools/elfutils: simplify and cleanup Makefile
LEDE Commits
lede-commits at lists.infradead.org
Sun Jul 7 23:49:51 PDT 2024
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/3b3a81f18eb8e1b46301f31dde40260bff51ce28
commit 3b3a81f18eb8e1b46301f31dde40260bff51ce28
Author: Michael Pratt <mcpratt at pm.me>
AuthorDate: Thu Jun 20 01:28:00 2024 -0400
tools/elfutils: simplify and cleanup Makefile
After changes to default host build recipes
and default variable definitions,
several custom definitions can be removed,
and the gnulib recipes replaced
with hooks to common recipes.
Also remove leftover PKG_INSTALL
which has no effect for host builds.
Signed-off-by: Michael Pratt <mcpratt at pm.me>
Link: https://github.com/openwrt/openwrt/pull/15853
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
tools/elfutils/Makefile | 19 ++-----------------
1 file changed, 2 insertions(+), 17 deletions(-)
diff --git a/tools/elfutils/Makefile b/tools/elfutils/Makefile
index bbbb1da914..2836cadc87 100644
--- a/tools/elfutils/Makefile
+++ b/tools/elfutils/Makefile
@@ -15,12 +15,10 @@ PKG_LICENSE_FILES:=COPYING COPYING-GPLV2 COPYING-LGPLV3
PKG_CPE_ID:=cpe:/a:elfutils_project:elfutils
PKG_FIXUP:=autoreconf
-PKG_INSTALL:=1
PKG_PROGRAMS:=elflint findtextrel elfcmp unstrip stack elfcompress elfclassify srcfiles
PKG_SUBDIRS := \
- libgnu \
config \
lib \
libelf \
@@ -36,8 +34,6 @@ PKG_GNULIB_BASE:=libgnu
PKG_GNULIB_ARGS = \
--dir=$(HOST_BUILD_DIR) \
- --local-dir=$(STAGING_DIR_HOST)/share/gnulib \
- --source-base=$(PKG_GNULIB_BASE) \
--libtool \
--avoid=reallocarray \
--import
@@ -74,7 +70,6 @@ ifeq ($(HOST_OS),Darwin)
endif
HOST_CFLAGS += -Wno-error -fPIC
-HOST_CXXFLAGS += -O2
HOST_CONFIGURE_ARGS += \
--without-libintl-prefix \
@@ -98,18 +93,8 @@ HOST_CONFIGURE_VARS += \
ac_cv_search__obstack_free=yes \
ac_cv_buildid=yes
-Hooks/HostConfigure/Pre := Host/Gnulib $(Hooks/HostConfigure/Pre)
-define Host/Gnulib
- $(STAGING_DIR_HOST)/bin/gnulib-tool $(PKG_GNULIB_ARGS) $(PKG_GNULIB_MODS);
-endef
-
-define Host/Compile
- $(call Host/Compile/Default,SUBDIRS='$$$$(wildcard $(PKG_SUBDIRS))')
-endef
-
-define Host/Install
- $(call Host/Compile/Default,install SUBDIRS='$$$$(wildcard $(PKG_SUBDIRS))')
-endef
+Hooks/HostConfigure/Pre := Host/Gnulib/Prepare $(Hooks/HostConfigure/Pre)
+Hooks/HostCompile/Pre := Host/Gnulib/Compile $(Hooks/HostCompile/Pre)
define Host/Uninstall
-$(call Host/Compile/Default,uninstall)
More information about the lede-commits
mailing list