[openwrt/openwrt] tools/elfutils: enable parallel building

LEDE Commits lede-commits at lists.infradead.org
Sat Jul 26 05:38:54 PDT 2025


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/0b4ebe5dd3f87bcc60d29706a4f500cd7607b21e

commit 0b4ebe5dd3f87bcc60d29706a4f500cd7607b21e
Author: Michael Pratt <mcpratt at pm.me>
AuthorDate: Wed Sep 25 04:28:41 2024 -0400

    tools/elfutils: enable parallel building
    
    There are multiple subdirectories for elfutils
    and more than one is not dependent on another,
    so enabling parallel building can save time
    if multiple cores are available.
    
    The change in build time for the package
    is as much as 20% when cores are not in use by other jobs.
    
    Signed-off-by: Michael Pratt <mcpratt at pm.me>
    Link: https://github.com/openwrt/openwrt/pull/16522
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 tools/elfutils/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/elfutils/Makefile b/tools/elfutils/Makefile
index ce711ac66c..294947df10 100644
--- a/tools/elfutils/Makefile
+++ b/tools/elfutils/Makefile
@@ -48,6 +48,8 @@ PKG_GNULIB_MODS = \
 	strchrnul \
 	tsearch
 
+HOST_BUILD_PARALLEL:=1
+
 include $(INCLUDE_DIR)/host-build.mk
 
 export $(PKG_GNULIB_BASE)=$(HOST_BUILD_DIR)/$(PKG_GNULIB_BASE)/.libs/$(PKG_GNULIB_BASE).a




More information about the lede-commits mailing list