clean up lpc makefile
This commit is contained in:
+10
-7
@@ -10,6 +10,8 @@ CFLAGS += \
|
||||
# lpc_types.h cause following errors
|
||||
CFLAGS += -Wno-error=strict-prototypes
|
||||
|
||||
MCU_DIR = hw/mcu/nxp/lpc_driver/lpc18xx/lpc_chip_18xx
|
||||
|
||||
# All source paths should be relative to the top level.
|
||||
LD_FILE = hw/bsp/mcb1800/lpc1857.ld
|
||||
|
||||
@@ -17,15 +19,16 @@ LD_FILE = hw/bsp/mcb1800/lpc1857.ld
|
||||
SRC_C += src/portable/$(VENDOR)/$(CHIP_FAMILY)/hal_$(CHIP_FAMILY).c
|
||||
|
||||
SRC_C += \
|
||||
hw/mcu/nxp/lpc_driver/lpc_chip_18xx/src/chip_18xx_43xx.c \
|
||||
hw/mcu/nxp/lpc_driver/lpc_chip_18xx/src/clock_18xx_43xx.c \
|
||||
hw/mcu/nxp/lpc_driver/lpc_chip_18xx/src/gpio_18xx_43xx.c \
|
||||
hw/mcu/nxp/lpc_driver/lpc_chip_18xx/src/sysinit_18xx_43xx.c \
|
||||
hw/mcu/nxp/lpc_driver/lpc_chip_18xx/src/uart_18xx_43xx.c
|
||||
$(MCU_DIR)/../gcc/cr_startup_lpc18xx.c \
|
||||
$(MCU_DIR)/src/chip_18xx_43xx.c \
|
||||
$(MCU_DIR)/src/clock_18xx_43xx.c \
|
||||
$(MCU_DIR)/src/gpio_18xx_43xx.c \
|
||||
$(MCU_DIR)/src/sysinit_18xx_43xx.c \
|
||||
$(MCU_DIR)/src/uart_18xx_43xx.c
|
||||
|
||||
INC += \
|
||||
$(TOP)/hw/mcu/nxp/lpc_driver/lpc_chip_18xx/inc \
|
||||
$(TOP)/hw/mcu/nxp/lpc_driver/lpc_chip_18xx/inc/config_18xx
|
||||
$(TOP)/$(MCU_DIR)/inc \
|
||||
$(TOP)/$(MCU_DIR)/inc/config_18xx
|
||||
|
||||
# For TinyUSB port source
|
||||
VENDOR = nxp
|
||||
|
||||
Reference in New Issue
Block a user