Skip to content

Commit

Permalink
chore: Initialize git submodule shallowly
Browse files Browse the repository at this point in the history
  • Loading branch information
howjmay committed Feb 11, 2024
1 parent 1c9da01 commit 1f1653b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 $@)
Expand Down
2 changes: 1 addition & 1 deletion mk/riscv-arch-test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 1f1653b

Please sign in to comment.