File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 52
52
echo "$PWD/toolchain/bin" >> $GITHUB_PATH
53
53
- name : Build binaries
54
54
run : |
55
- make build- artifact USE_PREBUILT=0
55
+ make artifact USE_PREBUILT=0
56
56
- name : Create tarball
57
57
run : |
58
58
tar -C build -zcf rv32emu-prebuilt.tar.gz linux-x64 riscv32
Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ EXPECTED_puzzle = success in 2005 trials
243
243
EXPECTED_fcalc = Performed 12 tests, 0 failures, 100% success rate.
244
244
EXPECTED_pi = 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086
245
245
246
- check : $(BIN ) build- artifact
246
+ check : $(BIN ) artifact
247
247
$(Q )$(foreach e,$(CHECK_ELF_FILES ) ,\
248
248
$(PRINTF ) " Running $( e) ... " ; \
249
249
if [ " $( shell $( BIN) $( OUT) /riscv32/$( e) | uniq) " = " $( strip $( EXPECTED_$( e) ) ) inferior exit code 0" ]; then \
@@ -255,7 +255,7 @@ check: $(BIN) build-artifact
255
255
)
256
256
257
257
EXPECTED_aes_sha1 = 1242a6757c8aef23e50b5264f5941a2f4b4a347e -
258
- misalign : $(BIN ) build- artifact
258
+ misalign : $(BIN ) artifact
259
259
$(Q )$(PRINTF ) " Running uaes ... " ;
260
260
$(Q ) if [ " $( shell $( BIN) -m $( OUT) /riscv32/uaes | $( SHA1SUM) ) " = " $( EXPECTED_aes_sha1) " ]; then \
261
261
$(call notice, [OK]) ; \
Original file line number Diff line number Diff line change @@ -333,13 +333,13 @@ The prebuilt executables are built from GNU/GCC v9 and [xPack GCC v14.2.0-1](htt
333
333
To fetch the prebuilt executables, run the following command:
334
334
335
335
``` shell
336
- $ make build- artifact
336
+ $ make artifact
337
337
```
338
338
339
- Or, to compile the executables from the source , run:
339
+ Or, to compile the executables from scratch , run:
340
340
341
341
``` shell
342
- $ make build- artifact USE_PREBUILT=0
342
+ $ make artifact USE_PREBUILT=0 [CROSS_COMPILE =< COMPILER_PREFIX > ]
343
343
```
344
344
345
345
Notice that the RISC-V cross-compiler is required to build the binary.
Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ ifeq ($(USE_PREBUILT),1)
38
38
LATEST_RELEASE := $(shell wget -q https://api.github.com/repos/sysprog21/rv32emu-prebuilt/releases/latest -O- | grep -Po '(?<="tag_name": ") .+(?=",)')
39
39
endif
40
40
41
- .PHONY : build- artifact
41
+ .PHONY : artifact
42
42
43
- build- artifact :
43
+ artifact :
44
44
ifeq ($(USE_PREBUILT ) ,1)
45
45
@echo "Fetching prebuilt executables in \"rv32emu-prebuilt\"..."
46
46
@wget -q https://github.com/sysprog21/rv32emu-prebuilt/releases/download/$(LATEST_RELEASE)/rv32emu-prebuilt.tar.gz -O- | tar -C build -xz
You can’t perform that action at this time.
0 commit comments