qemu

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

Makefile.softmmu-target (640B)


      1 # -*- Mode: makefile -*-
      2 #
      3 # ARM SoftMMU tests - included from tests/tcg/Makefile
      4 #
      5 
      6 ARM_SRC=$(SRC_PATH)/tests/tcg/arm
      7 
      8 # Set search path for all sources
      9 VPATH 		+= $(ARM_SRC)
     10 
     11 ARM_TESTS=test-armv6m-undef
     12 
     13 TESTS += $(ARM_TESTS)
     14 
     15 CFLAGS+=-Wl,--build-id=none -x assembler-with-cpp
     16 LDFLAGS+=-nostdlib -N -static
     17 
     18 %: %.S %.ld
     19 	$(CC) $(CFLAGS) $(ASFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS) -T $(ARM_SRC)/$@.ld
     20 
     21 # Specific Test Rules
     22 
     23 test-armv6m-undef: EXTRA_CFLAGS+=-mcpu=cortex-m0 -mfloat-abi=soft
     24 
     25 run-test-armv6m-undef: QEMU_OPTS+=-semihosting -M microbit -kernel
     26 run-plugin-test-armv6m-undef-%: QEMU_OPTS+=-semihosting -M microbit -kernel