diff --git a/common/libs/func_wrt_Makefile b/common/libs/func_wrt_Makefile index 49c5bab..b9dd146 100644 --- a/common/libs/func_wrt_Makefile +++ b/common/libs/func_wrt_Makefile @@ -45,6 +45,7 @@ ADD_REPORT = $REPORT ADD_CUSTOM_TOOLS = $CUSTOM_TOOLS ADD_BLFS_TOOLS = $BLFS_TOOL PKGMNGT = $PKGMNGT +WRAP_INSTALL = $WRAP_INSTALL export PATH := \${PATH}:/usr/sbin diff --git a/common/makefile-functions b/common/makefile-functions index 9e34161..8126986 100644 --- a/common/makefile-functions +++ b/common/makefile-functions @@ -115,7 +115,9 @@ define get_pkg_root2 echo "export PKG_DEST=$(SRC)/$@" >> envars; \ echo "source packInstall.sh" >> envars; \ echo "export -f packInstall" >> envars; \ - echo "export -f wrapInstall" >> envars; \ + if [ "$(WRAP_INSTALL)" = "y" ]; then \ + echo "export -f wrapInstall" >> envars; \ + fi; \ fi; endef