
KERNELDIR	:= $(INSTALL_ROOT)/linux

platform_STM32F429-objs += ../STM32F4xx_HAL_Driver/system_stm32f4xx.o
platform_STM32F429-objs += ../STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o
platform_STM32F429-objs += ../STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o

platform_STM32F429-objs += platform_main.o

obj-m	+= platform_STM32F429.o

APPDIR := $(INSTALL_ROOT)/projects/gd32450i-eval/app

EXTRA_CFLAGS += -I$(APPDIR)/driver/STM32F4xx_HAL_Driver
EXTRA_CFLAGS += -I$(APPDIR)/driver/STM32F4xx_HAL_Driver/Inc
EXTRA_CFLAGS += -I$(APPDIR)/driver
EXTRA_CFLAGS += -I$(APPDIR)/common_include

modules	:
	make -C $(KERNELDIR) M=`pwd` modules CFLAGS="" LDFLAGS=""

clean_modules:
	make -C $(KERNELDIR) M=`pwd` clean
	rm -f modules.order

