From c565996b45b6657962d2e476dfe8bf0b2a2044b9 Mon Sep 17 00:00:00 2001 From: wangmingrong1 Date: Sat, 12 Oct 2024 13:48:12 +0800 Subject: [PATCH] mps/cmake: add cmake build 1. fix comments 2. mps2-an500:add mps2-an500 cmake build 3. mps2-an521:add mps2-an521 cmake build Signed-off-by: wangmingrong1 --- boards/arm/mps/mps2-an500/CMakeLists.txt | 21 ++++++++++++++++ boards/arm/mps/mps2-an500/src/CMakeLists.txt | 25 ++++++++++++++++++++ boards/arm/mps/mps2-an521/CMakeLists.txt | 21 ++++++++++++++++ boards/arm/mps/mps2-an521/src/CMakeLists.txt | 25 ++++++++++++++++++++ boards/arm/mps/mps3-an547/CMakeLists.txt | 2 +- 5 files changed, 93 insertions(+), 1 deletion(-) create mode 100644 boards/arm/mps/mps2-an500/CMakeLists.txt create mode 100644 boards/arm/mps/mps2-an500/src/CMakeLists.txt create mode 100644 boards/arm/mps/mps2-an521/CMakeLists.txt create mode 100644 boards/arm/mps/mps2-an521/src/CMakeLists.txt diff --git a/boards/arm/mps/mps2-an500/CMakeLists.txt b/boards/arm/mps/mps2-an500/CMakeLists.txt new file mode 100644 index 0000000000..3e85aea5bd --- /dev/null +++ b/boards/arm/mps/mps2-an500/CMakeLists.txt @@ -0,0 +1,21 @@ +# ############################################################################## +# boards/arm/mps/mps2-an500/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +add_subdirectory(src) diff --git a/boards/arm/mps/mps2-an500/src/CMakeLists.txt b/boards/arm/mps/mps2-an500/src/CMakeLists.txt new file mode 100644 index 0000000000..f91cea6ba6 --- /dev/null +++ b/boards/arm/mps/mps2-an500/src/CMakeLists.txt @@ -0,0 +1,25 @@ +# ############################################################################## +# boards/arm/mps/mps2-an500/src/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +set(SRCS mps2_bringup.c mps2_reset.c) + +target_sources(board PRIVATE ${SRCS}) + +set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash.ld") diff --git a/boards/arm/mps/mps2-an521/CMakeLists.txt b/boards/arm/mps/mps2-an521/CMakeLists.txt new file mode 100644 index 0000000000..34afcb7931 --- /dev/null +++ b/boards/arm/mps/mps2-an521/CMakeLists.txt @@ -0,0 +1,21 @@ +# ############################################################################## +# boards/arm/mps/mps2-an521/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +add_subdirectory(src) diff --git a/boards/arm/mps/mps2-an521/src/CMakeLists.txt b/boards/arm/mps/mps2-an521/src/CMakeLists.txt new file mode 100644 index 0000000000..7c5459d352 --- /dev/null +++ b/boards/arm/mps/mps2-an521/src/CMakeLists.txt @@ -0,0 +1,25 @@ +# ############################################################################## +# boards/arm/mps/mps2-an521/src/CMakeLists.txt +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor +# license agreements. See the NOTICE file distributed with this work for +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +set(SRCS mps2_bringup.c mps2_reset.c) + +target_sources(board PRIVATE ${SRCS}) + +set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash.ld") diff --git a/boards/arm/mps/mps3-an547/CMakeLists.txt b/boards/arm/mps/mps3-an547/CMakeLists.txt index cdf7fbc3c2..3222d2478c 100644 --- a/boards/arm/mps/mps3-an547/CMakeLists.txt +++ b/boards/arm/mps/mps3-an547/CMakeLists.txt @@ -1,5 +1,5 @@ # ############################################################################## -# boards/arm/mps3/mps3-an547/CMakeLists.txt +# boards/arm/mps/mps3-an547/CMakeLists.txt # # Licensed to the Apache Software Foundation (ASF) under one or more contributor # license agreements. See the NOTICE file distributed with this work for