From 1db60dffec9e25662c289331a48a978075f11841 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 12 Oct 2020 16:05:50 +0200 Subject: build: Move drivers without SMP support This fixes warnings like this: warning: implicit declaration of function 'rtems_interrupt_disable' warning: implicit declaration of function 'rtems_interrupt_enable' warning: implicit declaration of function 'rtems_interrupt_flash' --- spec/build/bsps/obj.yml | 17 ++--------------- spec/build/bsps/objnosmp.yml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 15 deletions(-) create mode 100644 spec/build/bsps/objnosmp.yml diff --git a/spec/build/bsps/obj.yml b/spec/build/bsps/obj.yml index 29084a70b8..a454783d51 100644 --- a/spec/build/bsps/obj.yml +++ b/spec/build/bsps/obj.yml @@ -26,7 +26,6 @@ install: - bsps/include/bsp/utility.h - destination: ${BSP_INCLUDEDIR}/libchip source: - - bsps/include/libchip/am29lv160.h - bsps/include/libchip/ata.h - bsps/include/libchip/ata_internal.h - bsps/include/libchip/disp_hcms29xx.h @@ -39,8 +38,6 @@ install: - bsps/include/libchip/ide_ctrl_cfg.h - bsps/include/libchip/ide_ctrl_io.h - bsps/include/libchip/m48t08.h - - bsps/include/libchip/mc146818a.h - - bsps/include/libchip/mc68681.h - bsps/include/libchip/ns16550.h - bsps/include/libchip/ns16550_p.h - bsps/include/libchip/rtc.h @@ -51,7 +48,6 @@ install: - bsps/include/libchip/spi-memdrv.h - bsps/include/libchip/spi-sd-card.h - bsps/include/libchip/wd80x3.h - - bsps/include/libchip/z85c30.h - destination: ${BSP_INCLUDEDIR}/dev/serial source: - bsps/include/dev/serial/arm-pl011-regs.h @@ -67,10 +63,11 @@ links: uid: objnet - role: build-dependency uid: objnetnosmp +- role: build-dependency + uid: objnosmp source: - bsps/shared/dev/display/disp_hcms29xx.c - bsps/shared/dev/display/font_hcms29xx.c -- bsps/shared/dev/flash/am29lv160.c - bsps/shared/dev/i2c/i2c-2b-eeprom.c - bsps/shared/dev/i2c/i2c-ds1621.c - bsps/shared/dev/i2c/i2c-sc620.c @@ -92,21 +89,11 @@ source: - bsps/shared/dev/rtc/m48t08_reg4.c - bsps/shared/dev/rtc/m48t08_reg8.c - bsps/shared/dev/rtc/m48t08_reg.c -- bsps/shared/dev/rtc/mc146818a.c -- bsps/shared/dev/rtc/mc146818a_ioreg.c - bsps/shared/dev/rtc/rtcprobe.c - bsps/shared/dev/serial/arm-pl011.c -- bsps/shared/dev/serial/mc68681_baud.c -- bsps/shared/dev/serial/mc68681.c -- bsps/shared/dev/serial/mc68681_reg2.c -- bsps/shared/dev/serial/mc68681_reg4.c -- bsps/shared/dev/serial/mc68681_reg8.c -- bsps/shared/dev/serial/mc68681_reg.c - bsps/shared/dev/serial/ns16550.c - bsps/shared/dev/serial/ns16550-context.c - bsps/shared/dev/serial/serprobe.c -- bsps/shared/dev/serial/z85c30.c -- bsps/shared/dev/serial/z85c30_reg.c - bsps/shared/start/bootcard.c - bsps/shared/rtems-version.c type: build diff --git a/spec/build/bsps/objnosmp.yml b/spec/build/bsps/objnosmp.yml new file mode 100644 index 0000000000..772e6f121c --- /dev/null +++ b/spec/build/bsps/objnosmp.yml @@ -0,0 +1,31 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +build-type: objects +cflags: [] +copyrights: +- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de) +cppflags: [] +cxxflags: [] +enabled-by: + not: RTEMS_SMP +includes: [] +install: +- destination: ${BSP_INCLUDEDIR}/libchip + source: + - bsps/include/libchip/am29lv160.h + - bsps/include/libchip/mc146818a.h + - bsps/include/libchip/mc68681.h + - bsps/include/libchip/z85c30.h +links: [] +source: +- bsps/shared/dev/flash/am29lv160.c +- bsps/shared/dev/rtc/mc146818a.c +- bsps/shared/dev/rtc/mc146818a_ioreg.c +- bsps/shared/dev/serial/mc68681_baud.c +- bsps/shared/dev/serial/mc68681.c +- bsps/shared/dev/serial/mc68681_reg2.c +- bsps/shared/dev/serial/mc68681_reg4.c +- bsps/shared/dev/serial/mc68681_reg8.c +- bsps/shared/dev/serial/mc68681_reg.c +- bsps/shared/dev/serial/z85c30.c +- bsps/shared/dev/serial/z85c30_reg.c +type: build -- cgit v1.2.3