File tree Expand file tree Collapse file tree 4 files changed +32
-1
lines changed Expand file tree Collapse file tree 4 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ GLIBC_SRCDIR := @with_glibc_src@
9
9
MUSL_SRCDIR := @with_musl_src@
10
10
LINUX_HEADERS_SRCDIR := @with_linux_headers_src@
11
11
GDB_SRCDIR := @with_gdb_src@
12
+ QEMU_SRCDIR := @with_qemu_src@
12
13
13
14
SIM: =qemu
14
15
@@ -243,6 +244,12 @@ else
243
244
GLIBC_SRC_GIT :=
244
245
endif
245
246
247
+ ifeq ($(findstring $(srcdir ) ,$(QEMU_SRCDIR ) ) ,$(srcdir ) )
248
+ QEMU_SRC_GIT := $(QEMU_SRCDIR ) /.git
249
+ else
250
+ QEMU_SRC_GIT :=
251
+ endif
252
+
246
253
ifneq ("$(wildcard $(GCC_SRCDIR ) /.git) ","")
247
254
GCCPKGVER := g$(shell git -C $(GCC_SRCDIR ) describe --always --dirty --exclude '* ')
248
255
else
@@ -820,7 +827,7 @@ stamps/build-pk64: pk-src stamps/build-gcc-newlib-stage2
820
827
mkdir -p $(dir $@ )
821
828
date > $@
822
829
823
- stamps/build-qemu : $(srcdir ) /qemu $(srcdir ) /qemu/.git
830
+ stamps/build-qemu : $(QEMU_SRCDIR ) $(QEMU_SRC_GIT )
824
831
rm -rf $@ $(notdir $@ )
825
832
mkdir $(notdir $@ )
826
833
cd $(notdir $@ ) && $< /configure \
Original file line number Diff line number Diff line change @@ -240,4 +240,5 @@ Here is the list of configure option for specify source tree:
240
240
--with-musl-src
241
241
--with-gdb-src
242
242
--with-linux-headers-src
243
+ --with-qemu-src
243
244
Original file line number Diff line number Diff line change @@ -585,6 +585,7 @@ PACKAGE_URL=''
585
585
ac_subst_vars=' LTLIBOBJS
586
586
LIBOBJS
587
587
with_linux_headers_src
588
+ with_qemu_src
588
589
with_gdb_src
589
590
with_musl_src
590
591
with_glibc_src
@@ -686,6 +687,7 @@ with_newlib_src
686
687
with_glibc_src
687
688
with_musl_src
688
689
with_gdb_src
690
+ with_qemu_src
689
691
with_linux_headers_src
690
692
'
691
693
ac_precious_vars=' build_alias
@@ -1352,6 +1354,7 @@ Optional Packages:
1352
1354
--with-glibc-src Set glibc source path, use builtin source by default
1353
1355
--with-musl-src Set musl source path, use builtin source by default
1354
1356
--with-gdb-src Set gdb source path, use builtin source by default
1357
+ --with-qemu-src Set qemu source path, use builtin source by default
1355
1358
--with-linux-headers-src
1356
1359
Set linux-headers source path, use builtin source by
1357
1360
default
@@ -3614,6 +3617,25 @@ fi
3614
3617
else
3615
3618
with_gdb_src=" \$ (srcdir)/riscv-gdb"
3616
3619
3620
+ fi
3621
+
3622
+ }
3623
+ {
3624
+
3625
+ # Check whether --with-qemu-src was given.
3626
+ if test " ${with_qemu_src+set} " = set ; then :
3627
+ withval=$with_qemu_src ;
3628
+ else
3629
+ with_qemu_src=default
3630
+
3631
+ fi
3632
+
3633
+ if test " x$with_qemu_src " ! = xdefault; then :
3634
+ with_qemu_src=$with_qemu_src
3635
+
3636
+ else
3637
+ with_qemu_src=" \$ (srcdir)/riscv-qemu"
3638
+
3617
3639
fi
3618
3640
3619
3641
}
Original file line number Diff line number Diff line change @@ -221,6 +221,7 @@ AX_ARG_WITH_SRC(newlib)
221
221
AX_ARG_WITH_SRC(glibc)
222
222
AX_ARG_WITH_SRC(musl)
223
223
AX_ARG_WITH_SRC(gdb)
224
+ AX_ARG_WITH_SRC(qemu)
224
225
225
226
AC_ARG_WITH ( linux-headers-src ,
226
227
[ AC_HELP_STRING ([ --with-linux-headers-src] ,
You can’t perform that action at this time.
0 commit comments