Lines Matching +full:boot +full:- +full:serial +full:- +full:test

10 # These objects provide the basic boot code and helper functions for all tests
11 CRT_OBJS=boot.o
24 LDFLAGS=-Wl,-T$(LINK_SCRIPT)
27 CFLAGS+=-nostdlib -ggdb -O0 $(MINILIB_INC)
28 LDFLAGS+=-static -nostdlib $(CRT_OBJS) $(MINILIB_OBJS) -lgcc
30 config-cc.mak: Makefile
31 $(quiet-@)( \
32 $(call cc-option,-march=armv8.3-a, CROSS_CC_HAS_ARMV8_3); \
33 $(call cc-option,-march=armv8.5-a+memtag, CROSS_CC_HAS_ARMV8_MTE)) 3> config-cc.mak
34 -include config-cc.mak
40 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -x assembler-with-cpp -Wa,--noexecstack -c $< -o $@
44 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS)
46 memory: CFLAGS+=-DCHECK_UNALIGNED=1
48 memory-sve: memory.c $(LINK_SCRIPT) $(CRT_OBJS) $(MINILIB_OBJS)
49 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS)
51 memory-sve: CFLAGS+=-DCHECK_UNALIGNED=1 -march=armv8.1-a+sve -O3
53 TESTS+=memory-sve
56 QEMU_BASE_MACHINE=-M virt -cpu max -display none
57 QEMU_BASE_ARGS=-semihosting-config enable=on,target=native,chardev=output
58 QEMU_OPTS+=$(QEMU_BASE_MACHINE) $(QEMU_BASE_ARGS) -kernel
60 # console test is manual only
61 QEMU_SEMIHOST=-serial none -chardev stdio,mux=on,id=stdio0 -semihosting-config enable=on,chardev=st…
62 run-semiconsole: QEMU_OPTS=$(QEMU_BASE_MACHINE) $(QEMU_SEMIHOST) -kernel
63 run-semiconsole: semiconsole
64 $(call skip-test, $<, "MANUAL ONLY")
65 $(if $(V),@printf " %-7s %s %s\n" "TO RUN" $(notdir $(QEMU)) "$(QEMU_OPTS) $<")
66 run-plugin-semiconsole-with-%: semiconsole
67 $(call skip-test, $<, "MANUAL ONLY")
69 # vtimer test needs EL2
70 QEMU_EL2_MACHINE=-machine virt,virtualization=on,gic-version=2 -cpu cortex-a57 -smp 4
71 QEMU_EL2_BASE_ARGS=-semihosting-config enable=on,target=native,chardev=output,arg="2"
72 run-vtimer: QEMU_OPTS=$(QEMU_EL2_MACHINE) $(QEMU_EL2_BASE_ARGS) -kernel
74 # Simple Record/Replay Test
75 .PHONY: memory-record
76 run-memory-record: memory-record memory
77 $(call run-test, $<, \
78 $(QEMU) -monitor none -display none \
79 -chardev file$(COMMA)path=$<.out$(COMMA)id=output \
80 -icount shift=5$(COMMA)rr=record$(COMMA)rrfile=record.bin \
83 .PHONY: memory-replay
84 run-memory-replay: memory-replay run-memory-record
85 $(call run-test, $<, \
86 $(QEMU) -monitor none -display none \
87 -chardev file$(COMMA)path=$<.out$(COMMA)id=output \
88 -icount shift=5$(COMMA)rr=replay$(COMMA)rrfile=record.bin \
91 EXTRA_RUNS+=run-memory-replay
94 pauth-3: CFLAGS += $(CROSS_CC_HAS_ARMV8_3)
95 # This test explicitly checks the output of the pauth operation so we
97 run-pauth-3: QEMU_BASE_MACHINE=-M virt -cpu max,pauth-qarma5=on -display none
99 pauth-3:
100 $(call skip-test, "BUILD of $@", "missing compiler support")
101 run-pauth-3:
102 $(call skip-test, "RUN of pauth-3", "not built")
106 QEMU_MTE_ENABLED_MACHINE=-M virt,mte=on -cpu max -display none
107 QEMU_OPTS_WITH_MTE_ON = $(QEMU_MTE_ENABLED_MACHINE) $(QEMU_BASE_ARGS) -kernel
108 mte: CFLAGS+=-march=armv8.5-a+memtag
110 $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS)
112 run-mte: QEMU_OPTS=$(QEMU_OPTS_WITH_MTE_ON)
113 run-mte: mte
116 run-gdbstub-mte: QEMU_OPTS=$(QEMU_OPTS_WITH_MTE_ON)
117 run-gdbstub-mte: mte
118 $(call run-test, $@, $(GDB_SCRIPT) \
119 --output run-gdbstub-mte.out \
120 --gdb $(GDB) \
121 --qemu $(QEMU) --qargs "-chardev null$(COMMA)id=output $(QEMU_OPTS)" \
122 --bin $< --test $(AARCH64_SRC)/gdbstub/test-mte.py -- --mode=system, \
125 EXTRA_RUNS += run-gdbstub-mte
127 run-gdbstub-mte:
128 $(call skip-test "RUN of gdbstub-mte", "GDB does not support MTE in baremetal!")
132 $(call skip-test, "BUILD of $@", "missing compiler support")
133 run-mte:
134 $(call skip-test, "RUN of mte", "not build")