diff options
Diffstat (limited to 'rules/pre/get_alternative.make')
-rw-r--r-- | rules/pre/get_alternative.make | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/rules/pre/get_alternative.make b/rules/pre/get_alternative.make index 81b05b585..1cf0c2541 100644 --- a/rules/pre/get_alternative.make +++ b/rules/pre/get_alternative.make @@ -44,4 +44,15 @@ $(call ptx/in-path,PTXDIST_PATH_PLATFORMCONFIGDIR,$(1)), $(PTXDIST_PLATFORMCONFIGDIR)/$(strip $(1))) endef +define ptx/get-kconfig2 +$(call ptx/force-sh, +unset $(2) && +. "$(1)" && +test -n "$${$(2)}" && +echo "$${$(2)}" +) +endef +define ptx/get-kconfig +$(call ptx/get-kconfig2,$(strip $(1)),$(strip $(2))) +endef # vim: syntax=make |