mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 23:10:22 +00:00
59513b05ee
* fixed inline functions for modern C standart * more stack for application * added library * init fatfs library * fatfs example application * Merge with current master * fix typo and delete old files * cmsis os 2 reentrance fix * Reworked dependency wait to support multiple dependency * Build FatFS on local target, syscall.c is target-specific. * run local target ok * testcase for fatfs Co-authored-by: aanper <mail@s3f.ru>
19 lines
No EOL
454 B
Makefile
19 lines
No EOL
454 B
Makefile
TOOLCHAIN = x86
|
|
|
|
# Sources
|
|
C_SOURCES += $(TARGET_DIR)/Src/main.c
|
|
C_SOURCES += $(TARGET_DIR)/Src/flipper_hal.c
|
|
C_SOURCES += $(TARGET_DIR)/Src/lo_os.c
|
|
C_SOURCES += $(TARGET_DIR)/Src/lo_hal.c
|
|
|
|
# CFLAGS += -DFURI_DEBUG
|
|
CFLAGS += -I$(TARGET_DIR)/Inc
|
|
CFLAGS += -Wall -fdata-sections -ffunction-sections -pthread
|
|
LDFLAGS += -pthread
|
|
|
|
# FatFs library
|
|
CFLAGS += -I$(TARGET_DIR)/fatfs
|
|
C_SOURCES += $(TARGET_DIR)/fatfs/syscall.c
|
|
|
|
run: all
|
|
$(OBJ_DIR)/$(PROJECT).elf
|