aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommy Murphy <tommy_murphy@hotmail.com>2023-05-25 19:06:48 +0100
committerTommy Murphy <tommy_murphy@hotmail.com>2023-05-25 19:06:48 +0100
commit8aa10637548227f7e378778fb5ba4dc847cbcc0a (patch)
treea263374e0859172675fe146f6870a43a7a78fc95
parent66f3efbbc337d37ea537687421da53d5236376bb (diff)
downloadriscv-gnu-toolchain-8aa10637548227f7e378778fb5ba4dc847cbcc0a.zip
riscv-gnu-toolchain-8aa10637548227f7e378778fb5ba4dc847cbcc0a.tar.gz
riscv-gnu-toolchain-8aa10637548227f7e378778fb5ba4dc847cbcc0a.tar.bz2
If using spike then ensure that git clone done for pk before configuring/building it
-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 \