spec/build/riscv: add SBI

Enable the imported SBI in the build for riscv/riscv.

Other riscv BSPs would need to add the entry for optincludes
in addition to adding objsbi to their grp.

Updates #3337
This commit is contained in:
Gedare Bloom
2026-02-27 13:08:18 -07:00
committed by Kinsey Moore
parent da3313a562
commit 10cb664875
3 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
build-type: objects
cflags: []
copyrights:
- Copyright (C) 2026 Gedare Bloom
cppflags: []
cxxflags: []
enabled-by: true
includes: []
install:
- destination: ${BSP_INCLUDEDIR}/machine
source:
- contrib/bsps/sbi/sbi.h
links: []
source:
- contrib/bsps/riscv/sbi/sbi.c
type: build

View File

@@ -34,6 +34,8 @@ links:
uid: obj
- role: build-dependency
uid: objsmp
- role: build-dependency
uid: ../objsbi
- role: build-dependency
uid: ../../objmem
- role: build-dependency
@@ -68,6 +70,8 @@ links:
uid: ../start
- role: build-dependency
uid: ../../bspopts
- role: build-dependency
uid: optincludes
type: build
use-after: []
use-before: []

View File

@@ -0,0 +1,16 @@
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
actions:
- set-value: |
bsps/include bsps/${ARCH}/include bsps/${ARCH}/${BSP_FAMILY}/include contrib/bsps/${ARCH}/include
- substitute: null
- split: null
- env-assign: null
build-type: option
copyrights:
- Copyright (C) 2026 Gedare Bloom
default: []
description: ''
enabled-by: true
links: []
name: BSP_INCLUDES
type: build