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:
Kinsey Moore
2020-12-03 10:58:26 -06:00
committed by Joel Sherrill
parent 74c1c4021b
commit 2365c93745
6 changed files with 25 additions and 8 deletions

View File

@@ -60,10 +60,6 @@ extern const rtems_termios_device_handler zynq_uart_handler;
#define ZYNQ_UART_DEFAULT_BAUD 115200
#ifndef ZYNQ_CLOCK_UART
#define ZYNQ_CLOCK_UART 100000000
#endif
void zynq_uart_initialize(rtems_termios_device_context *base);
int zynq_uart_read_polled(rtems_termios_device_context *base);

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View 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