Skip to content

Commit

Permalink
update(ci): allow for submodule not be cloned
Browse files Browse the repository at this point in the history
If this reposiroty is not cloned with '--recursive', the ci subdmoudle
will not be prenset which will result in any invocation of make to fail.
This modification allows that if the ci submodule is not present, it
will simply be ignored and typical make calls for building the
hypervisor will continue normally.

Signed-off-by: Jose Martins <[email protected]>
  • Loading branch information
josecm committed Aug 13, 2024
1 parent ae6a76d commit 5c28387
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ scripts_dir:=$(cur_dir)/scripts
ci_dir:=$(cur_dir)/ci
src_dirs:=

include $(ci_dir)/ci.mk
-include $(ci_dir)/ci.mk

targets:=$(MAKECMDGOALS)
ifeq ($(targets),)
targets:=all
endif
non_build_targets+=ci clean
non_build_targets+=ci cleanc
build_targets:=$(strip $(foreach target, $(targets), \
$(if $(findstring $(target),$(non_build_targets)),,$(target))))

Expand Down Expand Up @@ -327,6 +327,8 @@ clean:

# Instantiate CI rules

ifneq ($(wildcard $(ci_dir)/ci.mk),)

all_files= $(realpath \
$(cur_dir)/Makefile \
$(call list_dir_files_recursive, $(src_dir), *) \
Expand All @@ -342,3 +344,5 @@ $(call ci, format, $(all_c_files))

.PHONY: ci
ci: license-check format-check

endif

0 comments on commit 5c28387

Please sign in to comment.