Skip to content

Consolidate vendor info in board.yml files #89024

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion boards/96boards/stm32_sensor_mez/board.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
board:
name: 96b_stm32_sensor_mez
full_name: STM32 Sensor Mezzanine
vendor: st
vendor: 96boards
socs:
- name: stm32f446xx
3 changes: 3 additions & 0 deletions boards/acrn/acrn/board.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@ boards:

- name: acrn
full_name: ACRN hypervisor
vendor: acrn
socs:
- name: atom

- name: acrn_ehl_crb
full_name: ACRN on EHL hypervisor
vendor: acrn
socs:
- name: atom

- name: acrn_adl_crb
full_name: ACRN Hypervisor on ADL
vendor: acrn
socs:
- name: atom
1 change: 1 addition & 0 deletions boards/ct/ctcc/board.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
board:
name: ctcc
full_name: CTHINGS.CO Connectivity Card
vendor: ct
socs:
- name: nrf52840
- name: nrf9161
Expand Down
2 changes: 1 addition & 1 deletion boards/enjoydigital/litex_vexriscv/board.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
board:
name: litex_vexriscv
full_name: LiteX VexRiscv
vendor: litex
vendor: enjoydigital
socs:
- name: litex_vexriscv
2 changes: 1 addition & 1 deletion boards/franzininho/esp32s2_franzininho/board.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
board:
name: esp32s2_franzininho
full_name: ESP32-S2 Franzininho
vendor: espressif
vendor: franzininho
socs:
- name: esp32s2
1 change: 1 addition & 0 deletions boards/intel/niosv_g/board.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
board:
name: niosv_g
full_name: INTEL FPGA niosv_g
vendor: intel
socs:
- name: niosv_g
1 change: 1 addition & 0 deletions boards/intel/niosv_m/board.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
board:
name: niosv_m
full_name: INTEL FPGA niosv_m
vendor: intel
socs:
- name: niosv_m
1 change: 1 addition & 0 deletions boards/intel/socfpga/agilex5_socdk/board.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
board:
name: intel_socfpga_agilex5_socdk
full_name: Agilex™ 5 SoC FPGA Development Kit
vendor: intel
socs:
- name: agilex5
1 change: 1 addition & 0 deletions boards/intel/socfpga/agilex_socdk/board.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
board:
name: intel_socfpga_agilex_socdk
full_name: Agilex SoC Development Kit
vendor: intel
socs:
- name: agilex
1 change: 1 addition & 0 deletions boards/intel/socfpga_std/cyclonev_socdk/board.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
board:
name: cyclonev_socdk
full_name: Cyclone® V SoC Development Kit
vendor: intel
socs:
- name: cyclonev
2 changes: 1 addition & 1 deletion boards/others/serpente/board.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
board:
name: serpente
full_name: Arturo182 Serpente
vendor: solderparty
vendor: others
socs:
- name: samd21e18a
2 changes: 1 addition & 1 deletion boards/others/stm32f103_mini/board.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
board:
name: stm32f103_mini
full_name: STM32F103 Mini
vendor: st
vendor: others
socs:
- name: stm32f103xe
4 changes: 4 additions & 0 deletions boards/qemu/x86/board.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ boards:

- name: qemu_x86
full_name: QEMU Emulation for X86
vendor: intel
socs:
- name: atom
variants:
Expand All @@ -13,17 +14,20 @@ boards:

- name: qemu_x86_lakemont
full_name: QEMU Emulation for X86 / Lakemont CPU
vendor: intel
socs:
- name: lakemont

- name: qemu_x86_64
full_name: QEMU Emulation for X86 64bit
vendor: intel
socs:
- name: atom
variants:
- name: 'nokpti'

- name: qemu_x86_tiny
full_name: QEMU Emulation for X86 Minimal Configuration
vendor: intel
socs:
- name: atom
2 changes: 1 addition & 1 deletion boards/sc/scobc_module1/board.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
board:
name: scobc_module1
full_name: OBC module 1
vendor: spacecubics
vendor: sc
socs:
- name: designstart_fpga_cortex_m3
1 change: 1 addition & 0 deletions boards/up-bridge-the-gap/up_squared/board.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
board:
name: up_squared
full_name: UP Squared
vendor: up-bridge-the-gap
socs:
- name: apollo_lake
1 change: 1 addition & 0 deletions boards/up-bridge-the-gap/up_squared_pro_7000/board.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
board:
name: up_squared_pro_7000
full_name: UP Squared Pro 7000
vendor: up-bridge-the-gap
socs:
- name: alder_lake
12 changes: 1 addition & 11 deletions doc/_scripts/gen_boards_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,17 +262,7 @@ def get_catalog(generate_hw_features=False):
logger.info("Skipping generation of supported hardware features.")

for board in boards.values():
# We could use board.vendor but it is often incorrect. Instead, deduce vendor from
# containing folder. There are a few exceptions, like the "native" and "others" folders
# which we know are not actual vendors so treat them as such.
for folder in board.dir.parents:
if folder.name in ["native", "others"]:
vendor = "others"
break
elif vnd_lookup.vnd2vendor.get(folder.name):
vendor = folder.name
break

vendor = board.vendor or "others"
socs = {soc.name for soc in board.socs}
full_name = board.full_name or board.name
doc_page = guess_doc_page(board)
Expand Down
2 changes: 1 addition & 1 deletion dts/bindings/vendor-prefixes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ ysoft Y Soft Corporation a.s.
zarlink Zarlink Semiconductor
zealz Zealz
zeitec ZEITEC Semiconductor Co., LTD.
zephyr Zephyr-specific binding
zephyr The Zephyr Project
zidoo Shenzhen Zidoo Technology Co., Ltd.
zii Zodiac Inflight Innovations
zinitix Zinitix Co., Ltd
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/devicetree/api/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ ZTEST(devicetree_api, test_bus)
#define DT_DRV_COMPAT vnd_vendor

#define VND_VENDOR "A stand-in for a real vendor which can be used in examples and tests"
#define ZEP_VENDOR "Zephyr-specific binding"
#define ZEP_VENDOR "The Zephyr Project"

ZTEST(devicetree_api, test_vendor)
{
Expand Down