aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKito Cheng <kito.cheng@sifive.com>2023-05-27 00:12:13 +0800
committerGitHub <noreply@github.com>2023-05-27 00:12:13 +0800
commit9becd93bc45eea8e02ce86aa4f74048e26f38f6d (patch)
treea263374e0859172675fe146f6870a43a7a78fc95
parent66f3efbbc337d37ea537687421da53d5236376bb (diff)
parent8aa10637548227f7e378778fb5ba4dc847cbcc0a (diff)
downloadriscv-gnu-toolchain-9becd93bc45eea8e02ce86aa4f74048e26f38f6d.zip
riscv-gnu-toolchain-9becd93bc45eea8e02ce86aa4f74048e26f38f6d.tar.gz
riscv-gnu-toolchain-9becd93bc45eea8e02ce86aa4f74048e26f38f6d.tar.bz2
Merge pull request #1258 from TommyMurphyTM1234/master
Fix #1256 - git clone pk if spike used
-rw-r--r--Makefile.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index 0d7423f..6c6e1d8 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -270,6 +270,7 @@ endif
ifeq ($(findstring $(srcdir),$(SPIKE_SRCDIR)),$(srcdir))
SPIKE_SRC_GIT := $(SPIKE_SRCDIR)/.git
+PK_SRC_GIT := $(PK_SRCDIR)/.git
else
SPIKE_SRC_GIT :=
endif
@@ -847,7 +848,7 @@ stamps/build-spike: $(SPIKE_SRCDIR) $(SPIKE_SRC_GIT)
mkdir -p $(dir $@)
date > $@
-stamps/build-pk32: $(PK_SRCDIR) stamps/build-gcc-newlib-stage2
+stamps/build-pk32: $(PK_SRCDIR) $(PK_SRC_GIT) stamps/build-gcc-newlib-stage2
rm -rf $@ $(notdir $@)
mkdir $(notdir $@)
cd $(notdir $@) && $</configure \
@@ -860,7 +861,7 @@ stamps/build-pk32: $(PK_SRCDIR) stamps/build-gcc-newlib-stage2
mkdir -p $(dir $@)
date > $@
-stamps/build-pk64: $(PK_SRCDIR) stamps/build-gcc-newlib-stage2
+stamps/build-pk64: $(PK_SRCDIR) $(PK_SRC_GIT) stamps/build-gcc-newlib-stage2
rm -rf $@ $(notdir $@)
mkdir $(notdir $@)
cd $(notdir $@) && $</configure \