diff options
Diffstat (limited to 'core/mk/pkg-macros/install.mk')
-rw-r--r-- | core/mk/pkg-macros/install.mk | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/mk/pkg-macros/install.mk b/core/mk/pkg-macros/install.mk index dce57e4..15b41f4 100644 --- a/core/mk/pkg-macros/install.mk +++ b/core/mk/pkg-macros/install.mk @@ -115,16 +115,22 @@ __embtk_pkg_notconfigured-y = $(call __embtk_mk_pathnotexist,$(__embtk_pkg_dotco # A macro to generate a package __embtk_pkg_dotkconfig_f file. # define __embtk_pkg_gen_dotkconfig_f - echo '__embtk_$(pkgv)_okconfigs := $(__embtk_pkg_kconfigs_all_v)' > $(__embtk_pkg_dotkconfig_f) + printf '__embtk_$(pkgv)_okconfigs := %s\n' \ + '$(call embtk_shell_quote,$(__embtk_pkg_kconfigs_all_v))' \ + > $(__embtk_pkg_dotkconfig_f) + printf '__embtk_$(pkgv)_oconfigureopts := %s\n' \ + '$(call embtk_shell_quote,$(__embtk_pkg_configureopts))' \ + >> $(__embtk_pkg_dotkconfig_f) endef # # A macro to test if a package build recipe needs to be run or not. # -__embtk_pkg_runrecipe-y = $(or $(__embtk_pkg_ninstalled-y),$(__embtk_pkg_confchanged-y)) +__embtk_pkg_runrecipe-y = $(or $(__embtk_pkg_ninstalled-y),$(__embtk_pkg_confchanged-y),$(__embtk_pkg_configurechanged-y)) __embtk_pkg_installed-y = $(or $(__embtk_$(pkgv)_installed),$(wildcard $(__embtk_pkg_dotinstalled_f))) __embtk_pkg_ninstalled-y = $(if $(__embtk_pkg_installed-y),,y) __embtk_pkg_confchanged-y = $(call __embtk_strneq,$(__embtk_pkg_kconfigs_all_v),$(__embtk_$(pkgv)_okconfigs)) +__embtk_pkg_configurechanged-y = $(call __embtk_strneq,$(__embtk_pkg_configureopts),$(__embtk_$(pkgv)_oconfigureopts)) # # Various helpers macros for different steps while installing packages. |