diff options
author | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2021-01-22 15:44:16 +0100 |
---|---|---|
committer | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2021-01-22 15:51:14 +0100 |
commit | c45da42b7aa5cf7652617552d63dc754b36ea191 (patch) | |
tree | 24226755f11fd390a42cc3794c1777aa52436675 | |
parent | bsp/imx: Fix system counter init for imx6 (diff) | |
download | rtems-c45da42b7aa5cf7652617552d63dc754b36ea191.tar.bz2 |
bsps/shared: Build fsl-edma only for certain BSP
Move the Freescale EDMA driver to it's own object and build it only for
the BSP that is currently using it.
-rw-r--r-- | spec/build/bsps/arm/imxrt/bspimxrt.yml | 2 | ||||
-rw-r--r-- | spec/build/bsps/obj.yml | 5 | ||||
-rw-r--r-- | spec/build/bsps/objdevfsledma.yml | 18 |
3 files changed, 20 insertions, 5 deletions
diff --git a/spec/build/bsps/arm/imxrt/bspimxrt.yml b/spec/build/bsps/arm/imxrt/bspimxrt.yml index 3044fda998..916c959eb3 100644 --- a/spec/build/bsps/arm/imxrt/bspimxrt.yml +++ b/spec/build/bsps/arm/imxrt/bspimxrt.yml @@ -144,6 +144,8 @@ links: - role: build-dependency uid: ../../objirq - role: build-dependency + uid: ../../objdevfsledma +- role: build-dependency uid: ../../opto2 - role: build-dependency uid: linkcmds diff --git a/spec/build/bsps/obj.yml b/spec/build/bsps/obj.yml index abed6bc76f..b598d54d16 100644 --- a/spec/build/bsps/obj.yml +++ b/spec/build/bsps/obj.yml @@ -28,10 +28,6 @@ install: source: - bsps/include/ofw/ofw.h - bsps/include/ofw/ofw_compat.h -- destination: ${BSP_INCLUDEDIR}/fsl - source: - - bsps/include/fsl/edma.h - - bsps/include/fsl/regs-edma.h - destination: ${BSP_INCLUDEDIR}/libchip source: - bsps/include/libchip/ata.h @@ -76,7 +72,6 @@ links: source: - bsps/shared/dev/display/disp_hcms29xx.c - bsps/shared/dev/display/font_hcms29xx.c -- bsps/shared/dev/dma/fsl-edma.c - bsps/shared/dev/i2c/i2c-2b-eeprom.c - bsps/shared/dev/i2c/i2c-ds1621.c - bsps/shared/dev/i2c/i2c-sc620.c diff --git a/spec/build/bsps/objdevfsledma.yml b/spec/build/bsps/objdevfsledma.yml new file mode 100644 index 0000000000..a3295a4060 --- /dev/null +++ b/spec/build/bsps/objdevfsledma.yml @@ -0,0 +1,18 @@ +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: true +includes: [] +install: +- destination: ${BSP_INCLUDEDIR}/fsl + source: + - bsps/include/fsl/edma.h + - bsps/include/fsl/regs-edma.h +links: [] +source: +- bsps/shared/dev/dma/fsl-edma.c +type: build |