|
| 1 | +# ############################################################################## |
| 2 | +# boards/arm/lpc43xx/bambino-200e/src/CMakeLists.txt |
| 3 | +# |
| 4 | +# SPDX-License-Identifier: Apache-2.0 |
| 5 | +# |
| 6 | +# Licensed to the Apache Software Foundation (ASF) under one or more contributor |
| 7 | +# license agreements. See the NOTICE file distributed with this work for |
| 8 | +# additional information regarding copyright ownership. The ASF licenses this |
| 9 | +# file to you under the Apache License, Version 2.0 (the "License"); you may not |
| 10 | +# use this file except in compliance with the License. You may obtain a copy of |
| 11 | +# the License at |
| 12 | +# |
| 13 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 14 | +# |
| 15 | +# Unless required by applicable law or agreed to in writing, software |
| 16 | +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 17 | +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 18 | +# License for the specific language governing permissions and limitations under |
| 19 | +# the License. |
| 20 | +# |
| 21 | +# ############################################################################## |
| 22 | + |
| 23 | +set(SRCS lpc43_boot.c lpc43_ssp.c) |
| 24 | + |
| 25 | +if(CONFIG_SENSORS_MAX31855) |
| 26 | + list(APPEND SRCS lpc43_max31855.c) |
| 27 | +endif() |
| 28 | + |
| 29 | +if(CONFIG_BOARDCTL) |
| 30 | + list(APPEND SRCS lpc43_appinit.c) |
| 31 | +endif() |
| 32 | + |
| 33 | +if(CONFIG_ARCH_LEDS) |
| 34 | + list(APPEND SRCS lpc43_autoleds.c) |
| 35 | +else() |
| 36 | + list(APPEND SRCS lpc43_userleds.c) |
| 37 | +endif() |
| 38 | + |
| 39 | +if(CONFIG_ARCH_BUTTONS) |
| 40 | + list(APPEND SRCS lpc43_buttons.c) |
| 41 | +endif() |
| 42 | + |
| 43 | +if(CONFIG_TIMER) |
| 44 | + list(APPEND SRCS lpc43_timer.c) |
| 45 | +endif() |
| 46 | + |
| 47 | +if(CONFIG_USBMSC) |
| 48 | + list(APPEND SRCS lpc43_usbmsc.c) |
| 49 | +endif() |
| 50 | + |
| 51 | +target_sources(board PRIVATE ${SRCS}) |
| 52 | + |
| 53 | +if(CONFIG_LPC43_BOOT_SRAM) |
| 54 | + set(LDFILE ramconfig.ld) |
| 55 | +endif() |
| 56 | +if(CONFIG_LPC43_BOOT_SPIFI) |
| 57 | + set(LDFILE spificonfig.ld) |
| 58 | +endif() |
| 59 | +if(CONFIG_LPC43_BOOT_FLASHA) |
| 60 | + set(LDFILE flashaconfig.ld) |
| 61 | +endif() |
| 62 | +if(CONFIG_LPC43_BOOT_FLASHB) |
| 63 | + set(LDFILE flashaconfig.ld) |
| 64 | +endif() |
| 65 | +if(CONFIG_LPC43_BOOT_CS0FLASH) |
| 66 | + set(LDFILE cs0flash.ld) |
| 67 | +endif() |
| 68 | + |
| 69 | +set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/${LDFILE}") |
0 commit comments