File tree 3 files changed +16
-3
lines changed
3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 13
13
[submodule "riscv-newlib "]
14
14
path = riscv-newlib
15
15
url = ../riscv-newlib.git
16
+ [submodule "riscv-qemu "]
17
+ path = riscv-qemu
18
+ url = git://github.com/riscv/riscv-qemu.git
Original file line number Diff line number Diff line change @@ -290,15 +290,24 @@ stamps/build-gcc-newlib-stage2: $(srcdir)/riscv-gcc stamps/build-newlib
290
290
$(MAKE ) -C $(notdir $@ ) install
291
291
mkdir -p $(dir $@ ) && touch $@
292
292
293
- .PHONY : check-gcc-newlib
294
- check-gcc-newlib : stamps/build-gcc-newlib-stage2
293
+ stamps/build-qemu : $(srcdir ) /riscv-qemu
294
+ rm -rf $@ $(notdir $@ )
295
+ mkdir $(notdir $@ )
296
+ cd $(notdir $@ ) && $< /configure \
297
+ --prefix=$(INSTALL_DIR ) \
298
+ --target-list=riscv64-linux-user,riscv32-linux-user
299
+ $(MAKE ) -C $(notdir $@ )
300
+ $(MAKE ) -C $(notdir $@ ) install
301
+ date > $@
302
+
303
+ stamps/check-gcc-newlib : stamps/build-gcc-newlib-stage2 stamps/build-qemu
295
304
export PATH=$(srcdir ) /scripts/wrapper/qemu:$(INSTALL_DIR ) /bin:$(PATH ) && \
296
305
export DEJAGNULIBS=$(srcdir ) /riscv-dejagnu && \
297
306
export RISC_V_SYSROOT=$(SYSROOT ) && \
298
307
cd build-gcc-newlib-stage2 && \
299
308
$(MAKE ) check-gcc " RUNTESTFLAGS=--target_board=riscv-sim"
300
309
301
- check-gcc-linux : stamps/build-gcc-linux-stage2
310
+ stamps/ check-gcc-linux : stamps/build-gcc-linux-stage2 stamps/build-qemu
302
311
export PATH=$(srcdir ) /scripts/wrapper/qemu:$(INSTALL_DIR ) /bin:$(PATH ) && \
303
312
export DEJAGNULIBS=$(srcdir ) /riscv-dejagnu && \
304
313
export RISC_V_SYSROOT=$(SYSROOT ) && \
Submodule riscv-qemu added at
ff36f2f
You can’t perform that action at this time.
0 commit comments