Skip to content

Commit e8bddff

Browse files
meson,install: installing svd and schema files for SDK support
1 parent 561239e commit e8bddff

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ svd_opt = get_option('svd')
3434

3535
subdir('template')
3636
subdir('svd')
37+
subdir('schema')
3738

3839
if not get_option('with-tests-only')
3940
foreach f : svd_files

schema/meson.build

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
#
3+
# Copyright 2025 Ledger SAS
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
schema_files = files(
18+
'CMSIS-SVD.xsd'
19+
)
20+
21+
install_data(
22+
schema_files,
23+
install_dir : 'share/svd/schemas'
24+
)

svd/st/meson.build

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,9 @@ svd_files += files(
7575
'stm32wl5x_cm4.svd',
7676
'stm32wle5_cm4.svd',
7777
)
78+
79+
80+
install_data(
81+
svd_files,
82+
install_dir : 'share/svd/st'
83+
)

0 commit comments

Comments
 (0)