zephyr/arch/arm/fsl_frdm_k64f/defs.objs

107 lines
3.3 KiB
Plaintext

# defs.objs - build system
#
# Copyright (c) 2015 Wind River Systems, Inc.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1) Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# 2) Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# 3) Neither the name of Wind River Systems nor the names of its contributors
# may be used to endorse or promote products derived from this software without
# specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
bsp_INCLUDE_DIR = $(strip \
${vBASE}/kernel/common/bsp \
${vBASE}/include/bsp \
${vBASE}/include \
${vBASE}/include/drivers \
${vBASE}/drivers \
${vBASE}/arch/${vARCH} \
${vBSP_BASE_DIR}/${vBSP} \
)
# initialization
bsp_init_SRC = $(strip \
arch/arm/bsp/CortexM/vector_table.s \
arch/arm/bsp/CortexM/reset.s \
arch/arm/bsp/CortexM/prep_c.c \
)
# arch-specific
bsp_arch_SRC = $(strip \
arch/arm/bsp/CortexM/scs.c \
arch/arm/bsp/CortexM/scb.c \
arch/arm/bsp/CortexM/nmi.c \
)
# Bluetooth
bsp_drivers_SRC_BLUETOOTH_UART_y = drivers/bluetooth/uart.c
# peripherals
bsp_drivers_SRC_GDB_INFO_y = arch/${vARCH}/timer/systick_gdb.s
bsp_drivers_SRC = $(strip \
drivers/console/uart_console.c \
arch/${vARCH}/timer/systick.c \
drivers/serial/k20UartDrv.c \
${bsp_drivers_SRC_GDB_INFO_${CONFIG_GDB_INFO}} \
${bsp_drivers_SRC_BLUETOOTH_UART_${CONFIG_BLUETOOTH_UART}} \
)
# configurable
bsp_module_SRC_MICROKERNEL_y = $(strip \
)
bsp_modules_SRC = $(strip \
${bsp_module_SRC_MICROKERNEL_${CONFIG_MICROKERNEL}} \
${bsp_module_SRC_RUNTIME_NMI_${CONFIG_RUNTIME_NMI}} \
)
# miscellaneous needed by kernel
bsp_misc_SRC = $(strip \
arch/arm/bsp/sysFatalErrorHandler.c \
arch/arm/bsp/rand32.c \
)
bsp_kernel_SRC = $(strip \
${bsp_arch_SRC} \
${bsp_init_SRC} \
${bsp_modules_SRC} \
${bsp_misc_SRC} \
)
bsp_SRC_IRQ_VECTOR_TABLE_y = ${vBSP_BASE_DIR}/${vBSP}/irq_vector_table.c
bsp_SRC_SW_ISR_TABLE_y = ${vBSP_BASE_DIR}/${vBSP}/sw_isr_table.c
bsp_SRC = $(strip \
${vBSP_BASE_DIR}/${vBSP}/system.c \
${vBSP_BASE_DIR}/${vBSP}/nmi_on_reset.s \
${vBSP_BASE_DIR}/${vBSP}/wdog.s \
${bsp_SRC_IRQ_VECTOR_TABLE_${CONFIG_IRQ_VECTOR_TABLE_BSP}} \
${bsp_SRC_SW_ISR_TABLE_${CONFIG_SW_ISR_TABLE_BSP}} \
$(foreach src,${bsp_kernel_SRC},$(addprefix ${vBASE}/,${src})) \
$(foreach src,${bsp_drivers_SRC},$(addprefix ${vBASE}/,${src})) \
)
KLIBS += bsp