Skip to content

Commit

Permalink
build: move qemu definitions to boards
Browse files Browse the repository at this point in the history
Change-Id: I4e87dbd6eea8320f23e5691c1762a7353240a5c8
Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif authored and Anas Nashif committed Jan 10, 2017
1 parent 6d9ed99 commit 6bea1be
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 22 deletions.
6 changes: 0 additions & 6 deletions arch/arm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,3 @@ KBUILD_CFLAGS += $(soc-cflags)
KBUILD_CXXFLAGS += $(soc-cxxflags)
KBUILD_AFLAGS += $(soc-aflags)

QEMU_CPU_TYPE_arm = cortex-m3
QEMU_FLAGS_arm = -cpu $(QEMU_CPU_TYPE_arm) \
-machine lm3s6965evb -nographic -vga none
QEMU_arm = qemu-system-arm

export QEMU_FLAGS_arm QEMU_arm
3 changes: 0 additions & 3 deletions arch/nios2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,3 @@ KBUILD_AFLAGS += $(soc-aflags)
zephyr: $(KERNEL_HEX_NAME)
all: $(KERNEL_HEX_NAME)

QEMU_CPU_TYPE_nios2 = nios2
QEMU_FLAGS_nios2 = -machine altera_10m50_zephyr -nographic
QEMU_nios2 = qemu-system-nios2
13 changes: 0 additions & 13 deletions arch/x86/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,3 @@ KBUILD_CFLAGS += $(soc-cflags)
KBUILD_CXXFLAGS += $(soc-cxxflags)
KBUILD_AFLAGS += $(soc-aflags)

QEMU_BIOS ?= /usr/share/qemu
QEMU_CPU_TYPE_x86 = qemu32
QEMU_X86_NO_REBOOT_y =
QEMU_X86_NO_REBOOT_ = -no-reboot
QEMU_FLAGS_x86 = -m 32 -cpu $(QEMU_CPU_TYPE_x86) \
$(QEMU_X86_NO_REBOOT_$(CONFIG_REBOOT)) \
-nographic -vga none -display none -net none \
-clock dynticks -no-acpi -balloon none \
-L $(QEMU_BIOS) -bios bios.bin \
-machine type=pc-0.14
QEMU_x86 = qemu-system-i386

export QEMU_FLAGS_x86 QEMU_x86 QEMU_CPU_TYPE_x86
7 changes: 7 additions & 0 deletions boards/arm/qemu_cortex_m3/Makefile.board
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@

QEMU_CPU_TYPE_arm = cortex-m3
QEMU_FLAGS_arm = -cpu $(QEMU_CPU_TYPE_arm) \
-machine lm3s6965evb -nographic -vga none
QEMU_arm = qemu-system-arm

DEBUG_SCRIPT = qemu.sh

debugserver: QEMU_EXTRA_FLAGS += -s -S
debugserver: qemu

export QEMU_FLAGS_arm QEMU_arm
4 changes: 4 additions & 0 deletions boards/nios2/qemu_nios2/Makefile.board
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

QEMU_CPU_TYPE_nios2 = nios2
QEMU_FLAGS_nios2 = -machine altera_10m50_zephyr -nographic
QEMU_nios2 = qemu-system-nios2

DEBUG_SCRIPT = qemu.sh

debugserver: QEMU_EXTRA_FLAGS += -s -S
Expand Down
14 changes: 14 additions & 0 deletions boards/x86/qemu_x86/Makefile.board
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@

QEMU_BIOS ?= /usr/share/qemu
QEMU_CPU_TYPE_x86 = qemu32
QEMU_X86_NO_REBOOT_y =
QEMU_X86_NO_REBOOT_ = -no-reboot
QEMU_FLAGS_x86 = -m 32 -cpu $(QEMU_CPU_TYPE_x86) \
$(QEMU_X86_NO_REBOOT_$(CONFIG_REBOOT)) \
-nographic -vga none -display none -net none \
-clock dynticks -no-acpi -balloon none \
-L $(QEMU_BIOS) -bios bios.bin \
-machine type=pc-0.14
QEMU_x86 = qemu-system-i386

DEBUG_SCRIPT = qemu.sh

debugserver: QEMU_EXTRA_FLAGS += -s -S
debugserver: qemu

export QEMU_FLAGS_x86 QEMU_x86 QEMU_CPU_TYPE_x86

0 comments on commit 6bea1be

Please sign in to comment.