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

Christian Mauderer christian.mauderer at embedded-brains.de
Fri Jan 22 14:15:02 UTC 2021


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/objdevfsledma.yml      | 18 ++++++++++++++++++
 2 files changed, 20 insertions(+)
 create mode 100644 spec/build/bsps/objdevfsledma.yml

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
@@ -143,6 +143,8 @@ links:
   uid: ../../obj
 - role: build-dependency
   uid: ../../objirq
+- role: build-dependency
+  uid: ../../objdevfsledma
 - role: build-dependency
   uid: ../../opto2
 - role: build-dependency
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
-- 
2.26.2



More information about the devel mailing list