forked from Imagelibrary/rtems
spec: Move zynq-uart into its own object
Currently, zynq-uart code is always built and has some requirements for BSPs that use it. Instead of making all BSPs satisfy that requirement or working around it by setting defaults, this moves the zynq-uart code into its own spec build object so it can be included if needed.
This commit is contained in:
committed by
Joel Sherrill
parent
74c1c4021b
commit
2365c93745
@@ -31,6 +31,8 @@ links:
|
||||
uid: ../../obj
|
||||
- role: build-dependency
|
||||
uid: ../../objirq
|
||||
- role: build-dependency
|
||||
uid: ../../objdevserialzynq
|
||||
- role: build-dependency
|
||||
uid: ../../optcachedata
|
||||
- role: build-dependency
|
||||
|
||||
@@ -55,6 +55,8 @@ links:
|
||||
uid: ../../obj
|
||||
- role: build-dependency
|
||||
uid: ../../objirq
|
||||
- role: build-dependency
|
||||
uid: ../../objdevserialzynq
|
||||
- role: build-dependency
|
||||
uid: linkcmds
|
||||
- role: build-dependency
|
||||
|
||||
@@ -67,6 +67,8 @@ links:
|
||||
uid: ../../obj
|
||||
- role: build-dependency
|
||||
uid: ../../objirq
|
||||
- role: build-dependency
|
||||
uid: ../../objdevserialzynq
|
||||
- role: build-dependency
|
||||
uid: ../../opto2
|
||||
- role: build-dependency
|
||||
|
||||
@@ -52,8 +52,6 @@ install:
|
||||
source:
|
||||
- bsps/include/dev/serial/arm-pl011-regs.h
|
||||
- bsps/include/dev/serial/arm-pl011.h
|
||||
- bsps/include/dev/serial/zynq-uart-regs.h
|
||||
- bsps/include/dev/serial/zynq-uart.h
|
||||
- destination: ${BSP_INCLUDEDIR}/rtems/zilog
|
||||
source:
|
||||
- bsps/include/rtems/zilog/z8036.h
|
||||
@@ -96,8 +94,6 @@ source:
|
||||
- bsps/shared/dev/serial/ns16550.c
|
||||
- bsps/shared/dev/serial/ns16550-context.c
|
||||
- bsps/shared/dev/serial/serprobe.c
|
||||
- bsps/shared/dev/serial/zynq-uart.c
|
||||
- bsps/shared/dev/serial/zynq-uart-polled.c
|
||||
- bsps/shared/start/bootcard.c
|
||||
- bsps/shared/rtems-version.c
|
||||
type: build
|
||||
|
||||
19
spec/build/bsps/objdevserialzynq.yml
Normal file
19
spec/build/bsps/objdevserialzynq.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
|
||||
build-type: objects
|
||||
cflags: []
|
||||
copyrights:
|
||||
- Copyright (C) 2020 On-Line Applications Research (OAR)
|
||||
cppflags: []
|
||||
cxxflags: []
|
||||
enabled-by: true
|
||||
includes: []
|
||||
install:
|
||||
- destination: ${BSP_INCLUDEDIR}/dev/serial
|
||||
source:
|
||||
- bsps/include/dev/serial/zynq-uart-regs.h
|
||||
- bsps/include/dev/serial/zynq-uart.h
|
||||
links: []
|
||||
source:
|
||||
- bsps/shared/dev/serial/zynq-uart.c
|
||||
- bsps/shared/dev/serial/zynq-uart-polled.c
|
||||
type: build
|
||||
Reference in New Issue
Block a user