blob: d467a41d18325c309f74415058d740c280f130ab [file] [log] [blame]
Armando Montaneza69244e2019-11-15 11:25:10 -08001# Copyright 2019 The Pigweed Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4# use this file except in compliance with the License. You may obtain a copy
5# of the License at
6#
7# https://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
15config("linker_script_config") {
16 _linker_script = "stm32f429.ld"
17 inputs = [
18 _linker_script,
19 ]
20 ldflags = [ "-T" + rebase_path("$_linker_script") ]
21}
22
23source_set("linker_script") {
24 public_configs = [ ":linker_script_config" ]
25}
26
27source_set("pw_dumb_io_baremetal_stm32f429") {
28 public_configs = [ "$dir_pw_build:pw_default_cpp" ]
29 public_deps = [
30 ":linker_script",
31 ]
32 deps = [
33 "$dir_pw_dumb_io:facade",
34 "$dir_pw_preprocessor",
35 ]
36 sources = [
37 "core_init.c",
38 "dumb_io_baremetal.cc",
39 ]
40}