You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by lu...@apache.org on 2026/03/24 14:04:02 UTC
(nuttx) 02/02: boards/arm64/a64: CMake added pinephone board
This is an automated email from the ASF dual-hosted git repository.
lupyuen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 80b7174810898cb5ca3713649f6a8c6d80c44c80
Author: simbit18 <10...@users.noreply.github.com>
AuthorDate: Tue Mar 24 12:41:29 2026 +0100
boards/arm64/a64: CMake added pinephone board
CMake added pinephone board
Signed-off-by: simbit18 <si...@gmail.com>
---
boards/arm64/a64/pinephone/CMakeLists.txt | 23 ++++++++++++
boards/arm64/a64/pinephone/src/CMakeLists.txt | 50 +++++++++++++++++++++++++++
2 files changed, 73 insertions(+)
diff --git a/boards/arm64/a64/pinephone/CMakeLists.txt b/boards/arm64/a64/pinephone/CMakeLists.txt
new file mode 100644
index 00000000000..f96335c0bb0
--- /dev/null
+++ b/boards/arm64/a64/pinephone/CMakeLists.txt
@@ -0,0 +1,23 @@
+# ##############################################################################
+# boards/arm64/a64/pinephone/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# 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/arm64/a64/pinephone/src/CMakeLists.txt b/boards/arm64/a64/pinephone/src/CMakeLists.txt
new file mode 100644
index 00000000000..4458d7d9b43
--- /dev/null
+++ b/boards/arm64/a64/pinephone/src/CMakeLists.txt
@@ -0,0 +1,50 @@
+# ##############################################################################
+# boards/arm64/a64/pinephone/src/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# 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 pinephone_boardinit.c pinephone_bringup.c pinephone_pmic.c)
+
+if(CONFIG_BOARDCTL)
+ list(APPEND SRCS pinephone_appinit.c)
+ if(CONFIG_BOARDCTL_RESET)
+ list(APPEND SRCS pinephone_reset.c)
+ endif()
+endif()
+
+if(CONFIG_ARCH_LEDS)
+ list(APPEND SRCS pinephone_autoleds.c)
+endif()
+
+if(CONFIG_USERLED)
+ list(APPEND SRCS pinephone_userleds.c)
+endif()
+
+if(CONFIG_VIDEO_FB)
+ list(APPEND SRCS pinephone_display.c pinephone_lcd.c)
+endif()
+
+if(CONFIG_INPUT_GT9XX)
+ list(APPEND SRCS pinephone_touch.c)
+endif()
+
+target_sources(board PRIVATE ${SRCS})
+
+set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/dramboot.ld")