Skip to content

Commit

Permalink
boards: x86: qemu_x86: move and convert to HWMv2
Browse files Browse the repository at this point in the history
Move and convert qemu_x86 board configurations to HWMv2.

Several board configurations have changed their identifiers
to the HWMv2 scheme:

 - qemu_x86_nokpti --> qemu_x86/ia32/nokpti
 - qemu_x86_nommu  --> qemu_x86/ia32/nommu
 - qemu_x86_nopae  --> qemu_x86/ia32/nopae
 - qemu_x86_virt   --> qemu_x86/ia32/virt
 - qemu_x86_xip    --> qemu_x86/ia32/xip

 - qemu_x86_64_nokpti --> qemu_x86//nokpti

Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
  • Loading branch information
golowanow committed Jan 25, 2024
1 parent 5c7817c commit dcd3130
Show file tree
Hide file tree
Showing 44 changed files with 73 additions and 56 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

if(CONFIG_BOARD_QEMU_X86_64 AND CONFIG_BUILD_OUTPUT_EFI)
set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/arch/x86/zefi/zefi.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,22 @@ config EEPROM_INIT_PRIORITY
config BUILD_OUTPUT_BIN
default n

config QEMU_TARGET
default y

config HAS_COVERAGE_SUPPORT
default y

endif # BOARD_QEMU_X86 || BOARD_QEMU_X86_64 || BOARD_QEMU_X86_LAKEMONT || BOARD_QEMU_X86_TINY

if BOARD_QEMU_X86

config BOARD
default "qemu_x86"

config CPU_HAS_FPU
default y

config FLASH_SIMULATOR
default y
depends on FLASH
Expand Down Expand Up @@ -46,6 +55,9 @@ if BOARD_QEMU_X86_64
config BOARD
default "qemu_x86_64"

config X86_64
default y

config KERNEL_VM_SIZE
default 0x10000000 if ACPI

Expand All @@ -56,6 +68,9 @@ if BOARD_QEMU_X86_LAKEMONT
config BOARD
default "qemu_x86_lakemont"

config CPU_HAS_FPU
default y

config KERNEL_VM_SIZE
default 0x400000

Expand All @@ -80,6 +95,9 @@ if BOARD_QEMU_X86_TINY
config BOARD
default "qemu_x86_tiny"

config CPU_HAS_FPU
default y

config KERNEL_VM_SIZE
default 0x400000

Expand All @@ -101,7 +119,7 @@ config HAVE_CUSTOM_LINKER_SCRIPT
default y

config CUSTOM_LINKER_SCRIPT
default "${ZEPHYR_BASE}/boards/x86/qemu_x86/qemu_x86_tiny.ld"
default "${ZEPHYR_BASE}/boards/v2/qemu/qemu_x86/qemu_x86_tiny.ld"

config X86_EXTRA_PAGE_TABLE_PAGES
# This is needed for gen_mmu.py to map the flash into memory
Expand Down
4 changes: 4 additions & 0 deletions boards/v2/qemu/qemu_x86/Kconfig.qemu_x86
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SPDX-License-Identifier: Apache-2.0

config BOARD_QEMU_X86
select SOC_IA32
4 changes: 4 additions & 0 deletions boards/v2/qemu/qemu_x86/Kconfig.qemu_x86_64
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SPDX-License-Identifier: Apache-2.0

config BOARD_QEMU_X86_64
select SOC_IA32
4 changes: 4 additions & 0 deletions boards/v2/qemu/qemu_x86/Kconfig.qemu_x86_lakemont
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SPDX-License-Identifier: Apache-2.0

config BOARD_QEMU_X86_LAKEMONT
select SOC_LAKEMONT
4 changes: 4 additions & 0 deletions boards/v2/qemu/qemu_x86/Kconfig.qemu_x86_tiny
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SPDX-License-Identifier: Apache-2.0

config BOARD_QEMU_X86_TINY
select SOC_IA32
File renamed without changes.
30 changes: 30 additions & 0 deletions boards/v2/qemu/qemu_x86/board.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
boards:

- name: qemu_x86
socs:
- name: ia32
variants:
- name: 'nokpti'
- name: 'nommu'
- name: 'nopae'
- name: 'virt'
- name: 'xip'

- name: qemu_x86_lakemont
socs:
- name: lakemont

- name: qemu_x86_64
socs:
- name: ia32
variants:
- name: 'nokpti'

- name: qemu_x86_tiny
socs:
- name: ia32
revision:
format: custom
default: ''
revisions:
- name: '768'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_IA32=y
CONFIG_BOARD_QEMU_X86_64=y
CONFIG_PIC_DISABLE=y
CONFIG_LOAPIC=y
CONFIG_CONSOLE=y
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
identifier: qemu_x86_64_nokpti
identifier: qemu_x86_64//nokpti
name: QEMU Emulation for X86_64 (KPTI disabled)
type: qemu
arch: x86
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_IA32=y
CONFIG_BOARD_QEMU_X86_64=y
CONFIG_PIC_DISABLE=y
CONFIG_LOAPIC=y
CONFIG_CONSOLE=y
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_IA32=y
CONFIG_BOARD_QEMU_X86=y
CONFIG_PIC_DISABLE=y
CONFIG_LOAPIC=y
CONFIG_CONSOLE=y
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_LAKEMONT=y
CONFIG_BOARD_QEMU_X86_LAKEMONT=y
CONFIG_PIC_DISABLE=y
CONFIG_LOAPIC=y
CONFIG_CONSOLE=y
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
identifier: qemu_x86_nokpti
identifier: qemu_x86/ia32/nokpti
name: QEMU Emulation for X86 (KPTI disabled)
type: qemu
arch: x86
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_IA32=y
CONFIG_BOARD_QEMU_X86=y
CONFIG_PIC_DISABLE=y
CONFIG_LOAPIC=y
CONFIG_CONSOLE=y
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
identifier: qemu_x86_nommu
identifier: qemu_x86/ia32/nommu
name: QEMU Emulation for X86 (MMU disabled)
type: qemu
arch: x86
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_IA32=y
CONFIG_BOARD_QEMU_X86=y
CONFIG_PIC_DISABLE=y
CONFIG_LOAPIC=y
CONFIG_CONSOLE=y
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
identifier: qemu_x86_nopae
identifier: qemu_x86/ia32/nopae
name: QEMU Emulation for X86 (32-bit page tables)
type: qemu
arch: x86
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_IA32=y
CONFIG_BOARD_QEMU_X86=y
CONFIG_PIC_DISABLE=y
CONFIG_LOAPIC=y
CONFIG_CONSOLE=y
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_IA32=y
CONFIG_BOARD_QEMU_X86_TINY=y
CONFIG_PIC_DISABLE=y
CONFIG_LOAPIC=y
CONFIG_CONSOLE=y
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
identifier: qemu_x86_virt
identifier: qemu_x86/ia32/virt
name: QEMU Emulation for X86 (Run in Virtual Address Space)
type: qemu
arch: x86
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_IA32=y
CONFIG_BOARD_QEMU_X86=y
CONFIG_PIC_DISABLE=y
CONFIG_LOAPIC=y
CONFIG_CONSOLE=y
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
identifier: qemu_x86_xip
identifier: qemu_x86/ia32/xip
name: QEMU Emulation for X86 (XIP enabled)
type: qemu
arch: x86
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

CONFIG_SOC_IA32=y
CONFIG_BOARD_QEMU_X86=y
CONFIG_PIC_DISABLE=y
CONFIG_LOAPIC=y
CONFIG_CONSOLE=y
Expand Down
File renamed without changes.
29 changes: 0 additions & 29 deletions boards/x86/qemu_x86/Kconfig.board

This file was deleted.

0 comments on commit dcd3130

Please sign in to comment.