Add capabilites of executing extra commands in make test

This commit is contained in:
Hui, Chunyang 2023-05-18 10:03:29 +00:00 committed by volcano
parent e574ab65d3
commit fa3f2fb3cc
2 changed files with 9 additions and 1 deletions

@ -3,3 +3,8 @@ include ../test_common.mk
EXTRA_C_FLAGS := EXTRA_C_FLAGS :=
EXTRA_LINK_FLAGS := EXTRA_LINK_FLAGS :=
BIN_ARGS := BIN_ARGS :=
CUSTOM_PRE_BUILD := 1
custom_pre_build:
@echo "You can execute extra commands here before occlum build."

@ -43,8 +43,11 @@ LINK_FLAGS = $(C_FLAGS) -pie $(EXTRA_LINK_FLAGS)
############################################################################# #############################################################################
# Build # Build
############################################################################# #############################################################################
all: custom_pre_build $(ALL_BUILD_SUBDIRS) $(BIN) $(DEPS_FILE)
all: $(ALL_BUILD_SUBDIRS) $(BIN) $(DEPS_FILE) ifneq ($(CUSTOM_PRE_BUILD), 1)
custom_pre_build:
endif
$(ALL_BUILD_SUBDIRS): $(ALL_BUILD_SUBDIRS):
@mkdir -p $@ @mkdir -p $@