diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2021-05-27 08:39:18 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2021-05-27 08:39:18 +0200 |
commit | 0fbf02767ca383523792f0699fb509da270cdc1d (patch) | |
tree | e4d186e6173af501647741b2129c2619fbede956 | |
parent | a29533b3fd22bc5bbbdbdf1c8c79f7609e3f2703 (diff) | |
download | ptxdist-0fbf02767ca383523792f0699fb509da270cdc1d.tar.gz ptxdist-0fbf02767ca383523792f0699fb509da270cdc1d.tar.xz |
ptx/config-md5: allow empyt md5 if --update-md5 is used
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/pre/000-option-disabled.make | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/pre/000-option-disabled.make b/rules/pre/000-option-disabled.make index fa8f35828..5bb63b01d 100644 --- a/rules/pre/000-option-disabled.make +++ b/rules/pre/000-option-disabled.make @@ -150,7 +150,7 @@ define ptx/config-foo $(strip $(if $($(strip $(1))), $(if $(call remove_quotes,$($(2))), $(call remove_quotes,$($(2))), - $(error $(2) is undefined or empty)), + $(if $(filter update,$(3)),,$(error $(2) is undefined or empty))), undefined)) endef @@ -182,7 +182,7 @@ endef # the package is enabled. # define ptx/config-md5 -$(call ptx/config-foo,$(strip $(1)),$(if $(strip $(2)),$(strip $(2))_MD5,$(strip $(1))_MD5)) +$(call ptx/config-foo,$(strip $(1)),$(if $(strip $(2)),$(strip $(2))_MD5,$(strip $(1))_MD5),$(PTXCONF_SETUP_CHECK)) endef # vim: syntax=make |