[PATCH 2/3] bsps/arm: Use shared object for ARM920 MMU support
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Apr 23 19:09:38 UTC 2024
---
spec/build/bsps/arm/csb336/bspcsb336.yml | 3 ++-
spec/build/bsps/arm/csb337/grp.yml | 2 ++
spec/build/bsps/arm/csb337/obj.yml | 1 -
spec/build/bsps/arm/grp.yml | 3 ---
spec/build/bsps/arm/gumstix/bspgumstix.yml | 3 ++-
spec/build/bsps/arm/objarm920mmu.yml | 17 +++++++++++++++++
spec/build/bsps/arm/smdk2410/bspsmdk2410.yml | 3 ++-
7 files changed, 25 insertions(+), 7 deletions(-)
create mode 100644 spec/build/bsps/arm/objarm920mmu.yml
diff --git a/spec/build/bsps/arm/csb336/bspcsb336.yml b/spec/build/bsps/arm/csb336/bspcsb336.yml
index edfd813227..7028925662 100644
--- a/spec/build/bsps/arm/csb336/bspcsb336.yml
+++ b/spec/build/bsps/arm/csb336/bspcsb336.yml
@@ -28,6 +28,8 @@ links:
uid: start
- role: build-dependency
uid: ../grp
+- role: build-dependency
+ uid: ../objarm920mmu
- role: build-dependency
uid: ../../obj
- role: build-dependency
@@ -46,7 +48,6 @@ source:
- bsps/arm/csb336/start/bspstart.c
- bsps/arm/csb336/start/memmap.c
- bsps/arm/shared/cache/cache-cp15.c
-- bsps/arm/shared/cp15/arm920-mmu.c
- bsps/shared/dev/cpucounter/cpucounterfrequency.c
- bsps/shared/dev/cpucounter/cpucounterread.c
- bsps/shared/dev/getentropy/getentropy-cpucounter.c
diff --git a/spec/build/bsps/arm/csb337/grp.yml b/spec/build/bsps/arm/csb337/grp.yml
index 47c3b68a26..7a8602aea4 100644
--- a/spec/build/bsps/arm/csb337/grp.yml
+++ b/spec/build/bsps/arm/csb337/grp.yml
@@ -40,6 +40,8 @@ links:
uid: start
- role: build-dependency
uid: ../grp
+- role: build-dependency
+ uid: ../objarm920mmu
- role: build-dependency
uid: ../../linkcmds
- role: build-dependency
diff --git a/spec/build/bsps/arm/csb337/obj.yml b/spec/build/bsps/arm/csb337/obj.yml
index 3858e4f00d..d817e08a58 100644
--- a/spec/build/bsps/arm/csb337/obj.yml
+++ b/spec/build/bsps/arm/csb337/obj.yml
@@ -42,7 +42,6 @@ source:
- bsps/arm/csb337/start/memmap.c
- bsps/arm/csb337/start/pmc.c
- bsps/arm/shared/cache/cache-cp15.c
-- bsps/arm/shared/cp15/arm920-mmu.c
- bsps/shared/dev/cpucounter/cpucounterfrequency.c
- bsps/shared/dev/cpucounter/cpucounterread.c
- bsps/shared/dev/getentropy/getentropy-cpucounter.c
diff --git a/spec/build/bsps/arm/grp.yml b/spec/build/bsps/arm/grp.yml
index ff4ff854ee..6979e02fb2 100644
--- a/spec/build/bsps/arm/grp.yml
+++ b/spec/build/bsps/arm/grp.yml
@@ -47,9 +47,6 @@ install:
- bsps/include/dev/irq/arm-gic-regs.h
- bsps/include/dev/irq/arm-gic-tm27.h
- bsps/include/dev/irq/arm-gic.h
-- destination: ${BSP_INCLUDEDIR}/libcpu
- source:
- - bsps/arm/include/libcpu/mmu.h
- destination: ${BSP_LIBDIR}
source:
- bsps/arm/shared/start/linkcmds.armv4
diff --git a/spec/build/bsps/arm/gumstix/bspgumstix.yml b/spec/build/bsps/arm/gumstix/bspgumstix.yml
index 7946a64ed4..2b40b50e0e 100644
--- a/spec/build/bsps/arm/gumstix/bspgumstix.yml
+++ b/spec/build/bsps/arm/gumstix/bspgumstix.yml
@@ -30,6 +30,8 @@ links:
uid: optskyeye
- role: build-dependency
uid: start
+- role: build-dependency
+ uid: ../objarm920mmu
- role: build-dependency
uid: ../../obj
- role: build-dependency
@@ -50,7 +52,6 @@ source:
- bsps/arm/gumstix/start/bspreset.c
- bsps/arm/gumstix/start/bspstart.c
- bsps/arm/gumstix/start/memmap.c
-- bsps/arm/shared/cp15/arm920-mmu.c
- bsps/shared/cache/nocache.c
- bsps/shared/dev/cpucounter/cpucounterfrequency.c
- bsps/shared/dev/cpucounter/cpucounterread.c
diff --git a/spec/build/bsps/arm/objarm920mmu.yml b/spec/build/bsps/arm/objarm920mmu.yml
new file mode 100644
index 0000000000..f440a15d7d
--- /dev/null
+++ b/spec/build/bsps/arm/objarm920mmu.yml
@@ -0,0 +1,17 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+build-type: objects
+cflags: []
+copyrights:
+- Copyright (C) 2024 embedded brains GmbH & Co. KG
+cppflags: []
+cxxflags: []
+enabled-by: true
+includes: []
+install:
+- destination: ${BSP_INCLUDEDIR}/libcpu
+ source:
+ - bsps/arm/include/libcpu/mmu.h
+links: []
+source:
+- bsps/arm/shared/cp15/arm920-mmu.c
+type: build
diff --git a/spec/build/bsps/arm/smdk2410/bspsmdk2410.yml b/spec/build/bsps/arm/smdk2410/bspsmdk2410.yml
index ec7dc73af4..967bd8b87e 100644
--- a/spec/build/bsps/arm/smdk2410/bspsmdk2410.yml
+++ b/spec/build/bsps/arm/smdk2410/bspsmdk2410.yml
@@ -34,6 +34,8 @@ links:
uid: optskyeye
- role: build-dependency
uid: start
+- role: build-dependency
+ uid: ../objarm920mmu
- role: build-dependency
uid: ../../obj
- role: build-dependency
@@ -46,7 +48,6 @@ links:
uid: ../../bspopts
source:
- bsps/arm/shared/cache/cache-cp15.c
-- bsps/arm/shared/cp15/arm920-mmu.c
- bsps/arm/smdk2410/btimer/btimer.c
- bsps/arm/smdk2410/clock/clockdrv.c
- bsps/arm/smdk2410/clock/support.c
--
2.35.3
More information about the devel
mailing list