-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use single makefile on both platforms
- Loading branch information
Showing
32 changed files
with
150 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
ASFLAGS += --strip-local-absolute | ||
REL := test_text.o \ | ||
test_rodata.o \ | ||
test_data.o \ | ||
test_bss.o \ | ||
test_cross_0.o \ | ||
test_cross_1.o \ | ||
test_bounce.o \ | ||
test_bounce_neon.o \ | ||
test_bounce_neon_aosoa.o \ | ||
test_bounce_neon_aosoa_bg.o \ | ||
test_bounce_data_aosoa_alt_0.o \ | ||
test_bounce_data_aosoa_alt_1.o \ | ||
test_bounce_data_aosoa_alt_2.o \ | ||
test_bounce_data_aosoa_alt_3.o | ||
|
||
test_bounce.o: test_bounce.s | ||
$(AS) $(ASFLAGS) --defsym FB_DIM_X=$(shell tput cols) --defsym FB_DIM_Y=$(shell tput lines) --defsym FRAMES=1024 -o $@ $^ | ||
|
||
test_bounce_neon.o: test_bounce_neon.s | ||
$(AS) $(ASFLAGS) --defsym FB_DIM_X=$(shell tput cols) --defsym FB_DIM_Y=$(shell tput lines) --defsym FRAMES=2048 -o $@ $^ | ||
|
||
test_bounce_neon_aosoa.o: test_bounce_neon_aosoa.s | ||
$(AS) $(ASFLAGS) --defsym FB_DIM_X=$(shell tput cols) --defsym FB_DIM_Y=$(shell tput lines) --defsym FRAMES=1024 -o $@ $^ | ||
|
||
test_bounce_neon_aosoa_bg.o: test_bounce_neon_aosoa_bg.s | ||
$(AS) $(ASFLAGS) --defsym FB_DIM_X=$(shell tput cols) --defsym FB_DIM_Y=$(shell tput lines) --defsym FRAMES=2048 -o $@ $^ | ||
|
||
all: $(REL) | ||
|
||
clean: | ||
rm -f $(REL) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
#!/bin/bash | ||
BUILD=.. | ||
|
||
make all | ||
make -C ${BUILD} all | ||
|
||
# Hide term cursor before loading REL; nuke all VMAs from common libraries and | ||
# the process heap VMA, before passing control to _start; restore term cursor | ||
# upon termination | ||
|
||
tput civis | ||
./elvenrel test_bounce.o --filter /lib/aarch64-linux-gnu --filter [heap] | ||
${BUILD}/elvenrel test_bounce.o --filter /lib/aarch64-linux-gnu --filter [heap] | ||
tput cnorm |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
BUILD=.. | ||
|
||
make -C ${BUILD} all | ||
|
||
# Hide term cursor before loading RELs; nuke all VMAs from common libraries and | ||
# the process heap VMA, before passing control to _start; suppress reports to | ||
# stdout; restore term cursor upon termination | ||
|
||
tput civis | ||
${BUILD}/elvenrel test_bounce_data_aosoa_alt_0.o test_bounce_neon_aosoa.o --filter /lib/aarch64-linux-gnu --filter [heap] --quiet | ||
${BUILD}/elvenrel test_bounce_data_aosoa_alt_1.o test_bounce_neon_aosoa.o --filter /lib/aarch64-linux-gnu --filter [heap] --quiet | ||
${BUILD}/elvenrel test_bounce_data_aosoa_alt_2.o test_bounce_neon_aosoa.o --filter /lib/aarch64-linux-gnu --filter [heap] --quiet | ||
${BUILD}/elvenrel test_bounce_data_aosoa_alt_3.o test_bounce_neon_aosoa.o --filter /lib/aarch64-linux-gnu --filter [heap] --quiet | ||
${BUILD}/elvenrel test_bounce_data_aosoa_alt_2.o test_bounce_neon_aosoa_bg.o --filter /lib/aarch64-linux-gnu --filter [heap] --quiet | ||
tput cnorm |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#!/bin/bash | ||
BUILD=.. | ||
|
||
make all | ||
make -C ${BUILD} all | ||
|
||
# Load two RELs with cross-relocations; nuke all VMAs from common libraries and | ||
# the process heap VMA, before passing control to _start | ||
|
||
./elvenrel test_cross_0.o test_cross_1.o --filter /lib/aarch64-linux-gnu --filter [heap] | ||
${BUILD}/elvenrel test_cross_0.o test_cross_1.o --filter /lib/aarch64-linux-gnu --filter [heap] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Support both GAS and Apple clang | ||
AS_VENDOR := $(word 1, $(shell $(AS) --version)) | ||
ifeq ($(AS_VENDOR), GNU) | ||
ASFLAGS += --strip-local-absolute | ||
defsym = --defsym $(1)=$(2) | ||
else | ||
ASFLAGS += --target=aarch64-linux-gnu | ||
defsym = -Wa,-defsym,$(1)=$(2) | ||
endif | ||
REL := test_text.o \ | ||
test_rodata.o \ | ||
test_data.o \ | ||
test_bss.o \ | ||
test_cross_0.o \ | ||
test_cross_1.o \ | ||
test_bounce.o | ||
|
||
test_bounce.o: test_bounce.s | ||
$(AS) $(ASFLAGS) $(call defsym,FB_DIM_X,$(shell tput cols)) $(call defsym,FB_DIM_Y,$(shell tput lines)) $(call defsym,FRAMES,1024) -o $@ $^ | ||
|
||
all: $(REL) | ||
|
||
clean: | ||
rm -f $(REL) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
BUILD=.. | ||
|
||
make -C ${BUILD} all | ||
|
||
# Hide term cursor before loading REL; restore term cursor | ||
# upon termination | ||
|
||
tput civis | ||
${BUILD}/elvenrel test_bounce.o | ||
tput cnorm |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
BUILD=.. | ||
|
||
make -C ${BUILD} all | ||
|
||
# Load two RELs with cross-relocations | ||
|
||
${BUILD}/elvenrel test_cross_0.o test_cross_1.o |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.