qemu

FORK: QEMU emulator
git clone https://git.neptards.moe/neptards/qemu.git
Log | Files | Refs | Submodules | LICENSE

Makefile.softmmu-target (986B)


      1 #
      2 # Nios2 system tests
      3 #
      4 # Copyright Linaro Ltd 2022
      5 # SPDX-License-Identifier: GPL-2.0-or-later
      6 #
      7 
      8 NIOS2_SYSTEM_SRC = $(SRC_PATH)/tests/tcg/nios2
      9 VPATH += $(NIOS2_SYSTEM_SRC)
     10 
     11 # These objects provide the basic boot code and helper functions for all tests
     12 CRT_OBJS = boot.o intr.o $(MINILIB_OBJS)
     13 LINK_SCRIPT = $(NIOS2_SYSTEM_SRC)/10m50-ghrd.ld
     14 
     15 CFLAGS  += -nostdlib -g -O0 $(MINILIB_INC)
     16 LDFLAGS += -Wl,-T$(LINK_SCRIPT) -static -nostdlib $(CRT_OBJS) -lgcc
     17 
     18 %.o: %.S
     19 	$(call quiet-command, $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -x assembler-with-cpp -c $< -o $@, AS, $@)
     20 
     21 %.o: %.c
     22 	$(call quiet-command, $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@, CC, $@)
     23 
     24 # Build and link the tests
     25 %: %.o $(LINK_SCRIPT) $(CRT_OBJS)
     26 	$(call quiet-command, $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS), LD, $@)
     27 
     28 QEMU_OPTS = -M 10m50-ghrd,vic=on -semihosting-config enable=on,target=native,chardev=output -kernel
     29 
     30 memory: CFLAGS+=-DCHECK_UNALIGNED=0
     31 TESTS += $(MULTIARCH_TESTS)
     32 TESTS += test-shadow-1