diff --git a/Makefile b/Makefile index c3641968a..d984c7dcd 100644 --- a/Makefile +++ b/Makefile @@ -65,7 +65,7 @@ AR = emar endif SOFTFLOAT_OUT = $(abspath $(OUT)/softfloat) src/softfloat/build/Linux-RISCV-GCC/Makefile: - git submodule update --init src/softfloat/ + git submodule update --depth 1 --init src/softfloat/ SOFTFLOAT_LIB := $(SOFTFLOAT_OUT)/softfloat.a $(SOFTFLOAT_LIB): src/softfloat/build/Linux-RISCV-GCC/Makefile $(MAKE) -C $(dir $<) BUILD_DIR=$(SOFTFLOAT_OUT) CC=$(CC) AR=$(AR) @@ -100,7 +100,7 @@ ifeq ($(call has, GDBSTUB), 1) GDBSTUB_OUT = $(abspath $(OUT)/mini-gdbstub) GDBSTUB_COMM = 127.0.0.1:1234 src/mini-gdbstub/Makefile: - git submodule update --init $(dir $@) + git submodule update --depth 1 --init $(dir $@) GDBSTUB_LIB := $(GDBSTUB_OUT)/libgdbstub.a $(GDBSTUB_LIB): src/mini-gdbstub/Makefile $(MAKE) -C $(dir $<) O=$(dir $@) diff --git a/mk/riscv-arch-test.mk b/mk/riscv-arch-test.mk index 20e110374..a3e7445e4 100644 --- a/mk/riscv-arch-test.mk +++ b/mk/riscv-arch-test.mk @@ -13,7 +13,7 @@ arch-test: $(BIN) ifeq ($(CROSS_COMPILE),) $(error GNU Toolchain for RISC-V is required to build architecture tests. Please check package installation) endif - git submodule update --init $(dir $(ARCH_TEST_DIR)) + git submodule update --depth 1 --init $(dir $(ARCH_TEST_DIR)) $(Q)python3 -B $(RISCV_TARGET)/setup.py --riscv_device=$(RISCV_DEVICE) $(Q)riscof run --work-dir=$(WORK) \ --config=$(RISCV_TARGET)/config.ini \