[rtems commit] bsps/shared: Build fsl-edma only for certain BSP

Christian Mauderer christianm at rtems.org
Fri Jan 22 14:51:43 UTC 2021


Module:    rtems
Branch:    master
Commit:    c45da42b7aa5cf7652617552d63dc754b36ea191
Changeset: http://git.rtems.org/rtems/commit/?id=c45da42b7aa5cf7652617552d63dc754b36ea191

Author:    Christian Mauderer <christian.mauderer at embedded-brains.de>
Date:      Fri Jan 22 15:44:16 2021 +0100

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.

---

 spec/build/bsps/arm/imxrt/bspimxrt.yml |  2 ++
 spec/build/bsps/obj.yml                |  5 -----
 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 3044fda..916c959 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 abed6bc..b598d54 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 0000000..a3295a4
--- /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



More information about the vc mailing list