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.
This commit is contained in:
Christian Mauderer
2021-01-22 15:44:16 +01:00
parent 7b99d7619e
commit c45da42b7a
3 changed files with 20 additions and 5 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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