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 authored and danielRep committed Aug 20, 2024
1 parent 5db9a68 commit 83199be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ 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),)
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 83199be

Please sign in to comment.