[PATCH 1/2] build: add logging output for host build

Florian Eckert fe at dev.tdt.de
Mon Apr 4 06:20:53 PDT 2022


The output of the build log is very confusing. In order to better
distinguish the individual steps during debugging, this commit writes a
logging mark into the build log.
- *** Calling Host/Configure/Default (<package name>)
- *** Calling Host/Compile/Default (<package name>)
- *** Calling Host/Install/Default (<package name>)

Signed-off-by: Florian Eckert <fe at dev.tdt.de>
---
 include/host-build.mk | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/include/host-build.mk b/include/host-build.mk
index 7f76eb1a2f..b31bf93b30 100644
--- a/include/host-build.mk
+++ b/include/host-build.mk
@@ -82,6 +82,7 @@ ifeq ($(HOST_OS),Darwin)
 endif
 
 define Host/Configure/Default
+	@echo '*** Calling Host/Configure/Default ($(PKG_NAME)) ***'
 	$(if $(HOST_CONFIGURE_PARALLEL),+)(cd $(HOST_BUILD_DIR)/$(3); \
 		if [ -x configure ]; then \
 			$(CP) $(SCRIPT_DIR)/config.{guess,sub} $(HOST_BUILD_DIR)/$(3)/ && \
@@ -95,10 +96,11 @@ define Host/Configure/Default
 endef
 
 define Host/Configure
-  $(call Host/Configure/Default)
+	$(call Host/Configure/Default)
 endef
 
 define Host/Compile/Default
+	@echo '*** Calling Host/Compile/Default ($(PKG_NAME)) ***'
 	+$(HOST_MAKE_VARS) \
 	$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) \
 		$(HOST_MAKE_FLAGS) \
@@ -106,18 +108,18 @@ define Host/Compile/Default
 endef
 
 define Host/Compile
-  $(call Host/Compile/Default)
+	$(call Host/Compile/Default)
 endef
 
 define Host/Install/Default
+	@echo '*** Calling Host/Install/Default ($(PKG_NAME)) ***'
 	$(call Host/Compile/Default,install)
 endef
 
 define Host/Install
-  $(call Host/Install/Default,$(HOST_BUILD_PREFIX))
+	$(call Host/Install/Default)
 endef
 
-
 ifneq ($(if $(HOST_QUILT),,$(CONFIG_AUTOREBUILD)),)
   define HostHost/Autoclean
     $(call rdep,${CURDIR} $(PKG_FILE_DEPENDS),$(HOST_STAMP_PREPARED))
-- 
2.30.2




More information about the openwrt-devel mailing list