genprotimg is not required if the --host-key-document= configure option is not specified, so avoid running it in that case. This prevents the build message: bash: line 1: genprotimg: command not found Signed-off-by: Nicholas Piggin <npiggin@xxxxxxxxx> --- s390x/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/s390x/Makefile b/s390x/Makefile index 19c41a2ec..c6518bbd1 100644 --- a/s390x/Makefile +++ b/s390x/Makefile @@ -213,12 +213,16 @@ $(comm-key): # The genprotimg arguments for the cck changed over time so we need to # figure out which argument to use in order to set the cck +ifneq ($(HOST_KEY_DOCUMENT),) GENPROTIMG_HAS_COMM_KEY = $(shell $(GENPROTIMG) --help | grep -q -- --comm-key && echo yes) ifeq ($(GENPROTIMG_HAS_COMM_KEY),yes) GENPROTIMG_COMM_OPTION := --comm-key else GENPROTIMG_COMM_OPTION := --x-comm-key endif +else +GENPROTIMG_HAS_COMM_KEY = +endif ifeq ($(CONFIG_DUMP),yes) # allow dumping + PCKMO -- 2.43.0