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

Christian Mauderer christian.mauderer at embedded-brains.de
Fri Jan 22 14:44:16 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/obj.yml                |  5 -----
 spec/build/bsps/objdevfsledma.yml      | 18 ++++++++++++++++++
 3 files changed, 20 insertions(+), 5 deletions(-)
 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/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
-- 
2.26.2



More information about the devel mailing list