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 b8880c40d124e37bed74666cf20f0c11249417a3 Author: simbit18 <[email protected]> AuthorDate: Fri Mar 13 17:15:48 2026 +0100 boards/arm/lpc17xx_40xx: CMake added boards CMake added boards: - lincoln60 - lpc4088-devkit - lpc4088-quickstart - lpcxpresso-lpc1768 - mbed - mcb1700 - olimex-lpc1766stk - open1788 - pnev5180b - u-blox-c027 - zkit-arm-1769 Signed-off-by: simbit18 <[email protected]> --- boards/arm/lpc17xx_40xx/lincoln60/CMakeLists.txt | 23 ++++++++ .../arm/lpc17xx_40xx/lincoln60/src/CMakeLists.txt | 39 +++++++++++++ .../arm/lpc17xx_40xx/lpc4088-devkit/CMakeLists.txt | 30 ++++++++++ .../lpc17xx_40xx/lpc4088-devkit/src/CMakeLists.txt | 65 ++++++++++++++++++++++ .../lpc17xx_40xx/lpc4088-quickstart/CMakeLists.txt | 30 ++++++++++ .../lpc4088-quickstart/src/CMakeLists.txt | 56 +++++++++++++++++++ .../lpc17xx_40xx/lpcxpresso-lpc1768/CMakeLists.txt | 23 ++++++++ .../lpcxpresso-lpc1768/src/CMakeLists.txt | 47 ++++++++++++++++ boards/arm/lpc17xx_40xx/mbed/CMakeLists.txt | 23 ++++++++ boards/arm/lpc17xx_40xx/mbed/src/CMakeLists.txt | 51 +++++++++++++++++ boards/arm/lpc17xx_40xx/mcb1700/CMakeLists.txt | 23 ++++++++ boards/arm/lpc17xx_40xx/mcb1700/src/CMakeLists.txt | 43 ++++++++++++++ .../lpc17xx_40xx/olimex-lpc1766stk/CMakeLists.txt | 23 ++++++++ .../olimex-lpc1766stk/src/CMakeLists.txt | 43 ++++++++++++++ boards/arm/lpc17xx_40xx/open1788/CMakeLists.txt | 30 ++++++++++ .../arm/lpc17xx_40xx/open1788/src/CMakeLists.txt | 65 ++++++++++++++++++++++ boards/arm/lpc17xx_40xx/pnev5180b/CMakeLists.txt | 30 ++++++++++ .../arm/lpc17xx_40xx/pnev5180b/src/CMakeLists.txt | 55 ++++++++++++++++++ boards/arm/lpc17xx_40xx/u-blox-c027/CMakeLists.txt | 23 ++++++++ .../lpc17xx_40xx/u-blox-c027/src/CMakeLists.txt | 48 ++++++++++++++++ .../arm/lpc17xx_40xx/zkit-arm-1769/CMakeLists.txt | 23 ++++++++ .../lpc17xx_40xx/zkit-arm-1769/src/CMakeLists.txt | 52 +++++++++++++++++ 22 files changed, 845 insertions(+) diff --git a/boards/arm/lpc17xx_40xx/lincoln60/CMakeLists.txt b/boards/arm/lpc17xx_40xx/lincoln60/CMakeLists.txt new file mode 100644 index 00000000000..5c0b858b010 --- /dev/null +++ b/boards/arm/lpc17xx_40xx/lincoln60/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/lincoln60/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/arm/lpc17xx_40xx/lincoln60/src/CMakeLists.txt b/boards/arm/lpc17xx_40xx/lincoln60/src/CMakeLists.txt new file mode 100644 index 00000000000..1e45c095294 --- /dev/null +++ b/boards/arm/lpc17xx_40xx/lincoln60/src/CMakeLists.txt @@ -0,0 +1,39 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/lincoln60/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 lpc17_40_boot.c lpc17_40_leds.c) + +if(CONFIG_BOARDCTL) + list(APPEND SRCS lpc17_40_appinit.c) +endif() + +if(CONFIG_USBMSC) + list(APPEND SRCS lpc17_40_usbmsc.c) +endif() + +if(CONFIG_ARCH_BUTTONS) + list(APPEND SRCS lpc17_40_buttons.c) +endif() + +target_sources(board PRIVATE ${SRCS}) + +set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/ld.script") diff --git a/boards/arm/lpc17xx_40xx/lpc4088-devkit/CMakeLists.txt b/boards/arm/lpc17xx_40xx/lpc4088-devkit/CMakeLists.txt new file mode 100644 index 00000000000..77fe237be79 --- /dev/null +++ b/boards/arm/lpc17xx_40xx/lpc4088-devkit/CMakeLists.txt @@ -0,0 +1,30 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/lpc4088-devkit/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) + +if(NOT CONFIG_BUILD_FLAT) + add_subdirectory(kernel) + set_property( + GLOBAL PROPERTY LD_SCRIPT_USER ${CMAKE_CURRENT_LIST_DIR}/scripts/memory.ld + ${CMAKE_CURRENT_LIST_DIR}/scripts/user-space.ld) +endif() diff --git a/boards/arm/lpc17xx_40xx/lpc4088-devkit/src/CMakeLists.txt b/boards/arm/lpc17xx_40xx/lpc4088-devkit/src/CMakeLists.txt new file mode 100644 index 00000000000..3c6f6ef316e --- /dev/null +++ b/boards/arm/lpc17xx_40xx/lpc4088-devkit/src/CMakeLists.txt @@ -0,0 +1,65 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/lpc4088-devkit/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 lpc17_40_boardinitialize.c lpc17_40_bringup.c lpc17_40_ssp.c) + +if(CONFIG_LPC17_40_EMC) + if(CONFIG_LPC17_40_EXTNOR) + list(APPEND SRCS lpc17_40_norinitialize.c) + endif() + + if(CONFIG_LPC17_40_EXTNAND) + list(APPEND SRCS lpc17_40_nandinitialize.c) + endif() + + if(CONFIG_LPC17_40_EXTDRAM) + list(APPEND SRCS lpc17_40_sdraminitialize.c) + endif() +endif() + +if(CONFIG_LPC17_40_LCD) + list(APPEND SRCS lpc17_40_lcd.c) +endif() + +if(CONFIG_BOARDCTL) + list(APPEND SRCS lpc17_40_appinit.c) +endif() + +if(CONFIG_ARCH_LEDS) + list(APPEND SRCS lpc17_40_autoleds.c) +else() + list(APPEND SRCS lpc17_40_userleds.c) +endif() + +if(CONFIG_ARCH_BUTTONS) + list(APPEND SRCS lpc17_40_buttons.c) +elseif(CONFIG_LPC4088_DEVKIT_DJOYSTICK) + list(APPEND SRCS lpc17_40_djoystick.c) +endif() + +if(CONFIG_INPUT_ADS7843E) + list(APPEND SRCS lpc17_40_touchscreen.c) +endif() + +target_sources(board PRIVATE ${SRCS}) + +set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/ld.script") diff --git a/boards/arm/lpc17xx_40xx/lpc4088-quickstart/CMakeLists.txt b/boards/arm/lpc17xx_40xx/lpc4088-quickstart/CMakeLists.txt new file mode 100644 index 00000000000..baeb489d6ec --- /dev/null +++ b/boards/arm/lpc17xx_40xx/lpc4088-quickstart/CMakeLists.txt @@ -0,0 +1,30 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/lpc4088-quickstart/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) + +if(NOT CONFIG_BUILD_FLAT) + add_subdirectory(kernel) + set_property( + GLOBAL PROPERTY LD_SCRIPT_USER ${CMAKE_CURRENT_LIST_DIR}/scripts/memory.ld + ${CMAKE_CURRENT_LIST_DIR}/scripts/user-space.ld) +endif() diff --git a/boards/arm/lpc17xx_40xx/lpc4088-quickstart/src/CMakeLists.txt b/boards/arm/lpc17xx_40xx/lpc4088-quickstart/src/CMakeLists.txt new file mode 100644 index 00000000000..36c31734aec --- /dev/null +++ b/boards/arm/lpc17xx_40xx/lpc4088-quickstart/src/CMakeLists.txt @@ -0,0 +1,56 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/lpc4088-quickstart/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 lpc17_40_boardinitialize.c lpc17_40_bringup.c lpc17_40_ssp.c) + +if(CONFIG_LPC17_40_EMC) + + if(CONFIG_LPC17_40_EXTDRAM) + list(APPEND SRCS lpc17_40_sdraminitialize.c) + endif() +endif() + +if(CONFIG_LPC17_40_LCD) + list(APPEND SRCS lpc17_40_lcd.c) +endif() + +if(CONFIG_LPC17_40_EXTNAND) + list(APPEND SRCS lpc17_40_nandinitialize.c) +endif() + +if(CONFIG_BOARDCTL) + list(APPEND SRCS lpc17_40_appinit.c) +endif() + +if(CONFIG_ARCH_LEDS) + list(APPEND SRCS lpc17_40_autoleds.c) +else() + list(APPEND SRCS lpc17_40_userleds.c) +endif() + +if(CONFIG_ARCH_BUTTONS) + list(APPEND SRCS lpc17_40_buttons.c) +endif() + +target_sources(board PRIVATE ${SRCS}) + +set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/ld.script") diff --git a/boards/arm/lpc17xx_40xx/lpcxpresso-lpc1768/CMakeLists.txt b/boards/arm/lpc17xx_40xx/lpcxpresso-lpc1768/CMakeLists.txt new file mode 100644 index 00000000000..26df18c5f7c --- /dev/null +++ b/boards/arm/lpc17xx_40xx/lpcxpresso-lpc1768/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/lpcxpresso-lpc1768/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/arm/lpc17xx_40xx/lpcxpresso-lpc1768/src/CMakeLists.txt b/boards/arm/lpc17xx_40xx/lpcxpresso-lpc1768/src/CMakeLists.txt new file mode 100644 index 00000000000..dcfd52a73b3 --- /dev/null +++ b/boards/arm/lpc17xx_40xx/lpcxpresso-lpc1768/src/CMakeLists.txt @@ -0,0 +1,47 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/lpcxpresso-lpc1768/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 lpc17_40_boot.c lpc17_40_leds.c lpc17_40_ssp.c lpc17_40_dac.c) + +if(CONFIG_PWM) + list(APPEND SRCS lpc17_40_pwm.c) +endif() + +if(CONFIG_ADC) + list(APPEND SRCS lpc17_40_adc.c) +endif() + +if(CONFIG_BOARDCTL) + list(APPEND SRCS lpc17_40_appinit.c) +endif() + +if(CONFIG_NX_LCDDRIVER) + list(APPEND SRCS lpc17_40_oled.c) +endif() + +if(CONFIG_USBMSC) + list(APPEND SRCS lpc17_40_usbmsc.c) +endif() + +target_sources(board PRIVATE ${SRCS}) + +set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/ld.script") diff --git a/boards/arm/lpc17xx_40xx/mbed/CMakeLists.txt b/boards/arm/lpc17xx_40xx/mbed/CMakeLists.txt new file mode 100644 index 00000000000..fb68653149b --- /dev/null +++ b/boards/arm/lpc17xx_40xx/mbed/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/mbed/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/arm/lpc17xx_40xx/mbed/src/CMakeLists.txt b/boards/arm/lpc17xx_40xx/mbed/src/CMakeLists.txt new file mode 100644 index 00000000000..d32be9271e3 --- /dev/null +++ b/boards/arm/lpc17xx_40xx/mbed/src/CMakeLists.txt @@ -0,0 +1,51 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/mbed/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 lpc17_40_boot.c lpc17_40_dac.c) + +if(CONFIG_ARCH_LEDS) + list(APPEND SRCS lpc17_40_leds.c) +endif() + +if(CONFIG_BOARDCTL) + list(APPEND SRCS lpc17_40_appinit.c) +endif() + +if(CONFIG_USBMSC) + list(APPEND SRCS lpc17_40_usbmsc.c) +endif() + +if(CONFIG_PWM) + list(APPEND SRCS lpc17_40_pwm.c) +endif() + +if(CONFIG_ADC) + list(APPEND SRCS lpc17_40_adc.c) +endif() + +if(CONFIG_USERLED) + list(APPEND SRCS lpc17_40_userleds.c) +endif() + +target_sources(board PRIVATE ${SRCS}) + +set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/ld.script") diff --git a/boards/arm/lpc17xx_40xx/mcb1700/CMakeLists.txt b/boards/arm/lpc17xx_40xx/mcb1700/CMakeLists.txt new file mode 100644 index 00000000000..b934c8b896f --- /dev/null +++ b/boards/arm/lpc17xx_40xx/mcb1700/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/mcb1700/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/arm/lpc17xx_40xx/mcb1700/src/CMakeLists.txt b/boards/arm/lpc17xx_40xx/mcb1700/src/CMakeLists.txt new file mode 100644 index 00000000000..ccfa428c733 --- /dev/null +++ b/boards/arm/lpc17xx_40xx/mcb1700/src/CMakeLists.txt @@ -0,0 +1,43 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/mcb1700/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 lpc17_40_boot.c lpc17_40_bringup.c lpc17_40_leds.c lpc17_40_dac.c) + +if(CONFIG_BOARDCTL) + list(APPEND SRCS lpc17_40_appinit.c) +endif() + +if(CONFIG_USBMSC) + list(APPEND SRCS lpc17_40_usbmsc.c) +endif() + +if(CONFIG_PWM) + list(APPEND SRCS lpc17_40_pwm.c) +endif() + +if(CONFIG_ADC) + list(APPEND SRCS lpc17_40_adc.c) +endif() + +target_sources(board PRIVATE ${SRCS}) + +set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/ld.script") diff --git a/boards/arm/lpc17xx_40xx/olimex-lpc1766stk/CMakeLists.txt b/boards/arm/lpc17xx_40xx/olimex-lpc1766stk/CMakeLists.txt new file mode 100644 index 00000000000..f1ff8683414 --- /dev/null +++ b/boards/arm/lpc17xx_40xx/olimex-lpc1766stk/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/olimex-lpc1766stk/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/arm/lpc17xx_40xx/olimex-lpc1766stk/src/CMakeLists.txt b/boards/arm/lpc17xx_40xx/olimex-lpc1766stk/src/CMakeLists.txt new file mode 100644 index 00000000000..b77dca2ee41 --- /dev/null +++ b/boards/arm/lpc17xx_40xx/olimex-lpc1766stk/src/CMakeLists.txt @@ -0,0 +1,43 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/olimex-lpc1766stk/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 lpc17_40_boot.c lpc17_40_bringup.c lpc17_40_leds.c lpc17_40_ssp.c) + +if(CONFIG_BOARDCTL) + list(APPEND SRCS lpc17_40_appinit.c) +endif() + +if(CONFIG_USBMSC) + list(APPEND SRCS lpc17_40_usbmsc.c) +endif() + +if(CONFIG_ARCH_BUTTONS) + list(APPEND SRCS lpc17_40_buttons.c) +endif() + +if(CONFIG_CAN) + list(APPEND SRCS lpc17_40_can.c) +endif() + +target_sources(board PRIVATE ${SRCS}) + +set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/ld.script") diff --git a/boards/arm/lpc17xx_40xx/open1788/CMakeLists.txt b/boards/arm/lpc17xx_40xx/open1788/CMakeLists.txt new file mode 100644 index 00000000000..6ee2e479924 --- /dev/null +++ b/boards/arm/lpc17xx_40xx/open1788/CMakeLists.txt @@ -0,0 +1,30 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/open1788/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) + +if(NOT CONFIG_BUILD_FLAT) + add_subdirectory(kernel) + set_property( + GLOBAL PROPERTY LD_SCRIPT_USER ${CMAKE_CURRENT_LIST_DIR}/scripts/memory.ld + ${CMAKE_CURRENT_LIST_DIR}/scripts/user-space.ld) +endif() diff --git a/boards/arm/lpc17xx_40xx/open1788/src/CMakeLists.txt b/boards/arm/lpc17xx_40xx/open1788/src/CMakeLists.txt new file mode 100644 index 00000000000..609dfeb6cf6 --- /dev/null +++ b/boards/arm/lpc17xx_40xx/open1788/src/CMakeLists.txt @@ -0,0 +1,65 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/open1788/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 lpc17_40_boardinitialize.c lpc17_40_bringup.c lpc17_40_ssp.c) + +if(CONFIG_LPC17_40_EMC) + if(CONFIG_LPC17_40_EXTNOR) + list(APPEND SRCS lpc17_40_norinitialize.c) + endif() + + if(CONFIG_LPC17_40_EXTNAND) + list(APPEND SRCS lpc17_40_nandinitialize.c) + endif() + + if(CONFIG_LPC17_40_EXTDRAM) + list(APPEND SRCS lpc17_40_sdraminitialize.c) + endif() +endif() + +if(CONFIG_LPC17_40_LCD) + list(APPEND SRCS lpc17_40_lcd.c) +endif() + +if(CONFIG_BOARDCTL) + list(APPEND SRCS lpc17_40_appinit.c) +endif() + +if(CONFIG_ARCH_LEDS) + list(APPEND SRCS lpc17_40_autoleds.c) +else() + list(APPEND SRCS lpc17_40_userleds.c) +endif() + +if(CONFIG_ARCH_BUTTONS) + list(APPEND SRCS lpc17_40_buttons.c) +elseif(CONFIG_OPEN1788_DJOYSTICK) + list(APPEND SRCS lpc17_40_djoystick.c) +endif() + +if(CONFIG_INPUT_ADS7843E) + list(APPEND SRCS lpc17_40_touchscreen.c) +endif() + +target_sources(board PRIVATE ${SRCS}) + +set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/ld.script") diff --git a/boards/arm/lpc17xx_40xx/pnev5180b/CMakeLists.txt b/boards/arm/lpc17xx_40xx/pnev5180b/CMakeLists.txt new file mode 100644 index 00000000000..76dad32cfd9 --- /dev/null +++ b/boards/arm/lpc17xx_40xx/pnev5180b/CMakeLists.txt @@ -0,0 +1,30 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/pnev5180b/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) + +if(NOT CONFIG_BUILD_FLAT) + add_subdirectory(kernel) + set_property( + GLOBAL PROPERTY LD_SCRIPT_USER ${CMAKE_CURRENT_LIST_DIR}/scripts/memory.ld + ${CMAKE_CURRENT_LIST_DIR}/scripts/user-space.ld) +endif() diff --git a/boards/arm/lpc17xx_40xx/pnev5180b/src/CMakeLists.txt b/boards/arm/lpc17xx_40xx/pnev5180b/src/CMakeLists.txt new file mode 100644 index 00000000000..70090743111 --- /dev/null +++ b/boards/arm/lpc17xx_40xx/pnev5180b/src/CMakeLists.txt @@ -0,0 +1,55 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/pnev5180b/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 lpc17_40_boot.c lpc17_40_bringup.c) + +if(CONFIG_ARCH_LEDS) + list(APPEND SRCS lpc17_40_leds.c) +endif() + +if(CONFIG_BOARDCTL) + list(APPEND SRCS lpc17_40_appinit.c) +endif() + +if(CONFIG_USBDEV_COMPOSITE) + list(APPEND SRCS lpc17_40_composite.c) +endif() + +if(CONFIG_LPC17_40_SPI) + list(APPEND SRCS lpc17_40_spi.c) +endif() + +if(CONFIG_ELF) + list(APPEND SRCS lpc17_40_symtab.c) +endif() + +if(CONFIG_NXFLAT) + list(APPEND SRCS lpc17_40_symtab.c) +endif() + +if(CONFIG_LPC17_40_ROMFS) + list(APPEND SRCS lpc17_40_romfs.c) +endif() + +target_sources(board PRIVATE ${SRCS}) + +set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash.ld") diff --git a/boards/arm/lpc17xx_40xx/u-blox-c027/CMakeLists.txt b/boards/arm/lpc17xx_40xx/u-blox-c027/CMakeLists.txt new file mode 100644 index 00000000000..99aa2cd29cf --- /dev/null +++ b/boards/arm/lpc17xx_40xx/u-blox-c027/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/u-blox-c027/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/arm/lpc17xx_40xx/u-blox-c027/src/CMakeLists.txt b/boards/arm/lpc17xx_40xx/u-blox-c027/src/CMakeLists.txt new file mode 100644 index 00000000000..f9c98b843e9 --- /dev/null +++ b/boards/arm/lpc17xx_40xx/u-blox-c027/src/CMakeLists.txt @@ -0,0 +1,48 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/u-blox-c027/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 lpc17_40_boot.c lpc17_40_leds.c lpc17_40_ssp.c lpc17_40_dac.c) + +if(CONFIG_BOARDCTL) + list(APPEND SRCS lpc17_40_appinit.c) +endif() + +if(CONFIG_PWM) + list(APPEND SRCS lpc17_40_pwm.c) +endif() + +if(CONFIG_ADC) + list(APPEND SRCS lpc17_40_adc.c) +endif() + +if(CONFIG_MODEM_U_BLOX) + list(APPEND SRCS lpc17_40_ubxmdm.c) +endif() + +if(CONFIG_USBMSC) + list(APPEND SRCS lpc17_40_usbmsc.c) +endif() + +target_sources(board PRIVATE ${SRCS}) + +set_property(GLOBAL PROPERTY LD_SCRIPT + "${NUTTX_BOARD_DIR}/scripts/u-blox-c027.ld") diff --git a/boards/arm/lpc17xx_40xx/zkit-arm-1769/CMakeLists.txt b/boards/arm/lpc17xx_40xx/zkit-arm-1769/CMakeLists.txt new file mode 100644 index 00000000000..9d5425af86b --- /dev/null +++ b/boards/arm/lpc17xx_40xx/zkit-arm-1769/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/zkit-arm-1769/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/arm/lpc17xx_40xx/zkit-arm-1769/src/CMakeLists.txt b/boards/arm/lpc17xx_40xx/zkit-arm-1769/src/CMakeLists.txt new file mode 100644 index 00000000000..1872d841cfa --- /dev/null +++ b/boards/arm/lpc17xx_40xx/zkit-arm-1769/src/CMakeLists.txt @@ -0,0 +1,52 @@ +# ############################################################################## +# boards/arm/lpc17xx_40xx/zkit-arm-1769/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 lpc17_40_boot.c lpc17_40_leds.c lpc17_40_ssp.c lpc17_40_buttons.c + lpc17_40_lcd.c) + +if(CONFIG_BOARDCTL) + list(APPEND SRCS lpc17_40_appinit.c) +endif() + +if(CONFIG_USBMSC) + list(APPEND SRCS lpc17_40_usbmsc.c) +endif() + +if(CONFIG_ADC) + list(APPEND SRCS lpc17_40_adc.c) +endif() + +if(CONFIG_DAC) + list(APPEND SRCS lpc17_40_dac.c) +endif() + +if(CONFIG_CAN) + list(APPEND SRCS lpc17_40_can.c) +endif() + +if(CONFIG_LPC17_40_SPI) + list(APPEND SRCS lpc17_40_spi.c) +endif() + +target_sources(board PRIVATE ${SRCS}) + +set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/ld.script")
