mtk_7687.mk 1.8 KB

1234567891011121314151617181920212223242526272829
  1. BIN_ROOT_PATH:=${PROJECT_ROOT_PATH}/../../../../../tools/gcc/gcc-arm-none-eabi/bin
  2. CC=$(BIN_ROOT_PATH)/arm-none-eabi-gcc
  3. AR=$(BIN_ROOT_PATH)/arm-none-eabi-ar
  4. RANLIB=${BIN_ROOT_PATH}/arm-none-eabi-gcc-ranlib
  5. #ALLFLAGS = -mlittle-endian -mthumb -mcpu=cortex-m4
  6. #FPUFLAGS = -fsingle-precision-constant -Wdouble-promotion -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fno-common
  7. #CFLAGS += $(ALLFLAGS) $(FPUFLAGS) -ffunction-sections -fdata-sections -fno-builtin -Wimplicit-function-declaration
  8. CFLAGS += -D__MTK_7687__
  9. ALLFLAGS = -mlittle-endian -mthumb -mcpu=cortex-m4
  10. FPUFLAGS = -fsingle-precision-constant -Wdouble-promotion -mfpu=fpv4-sp-d16 -mfloat-abi=hard
  11. CFLAGS += $(ALLFLAGS) $(FPUFLAGS) -ffunction-sections -fdata-sections -fno-builtin -Wimplicit-function-declaration
  12. CFLAGS += -Os -Wall -fno-strict-aliasing -fno-common -O2
  13. CFLAGS += -Wall -Wimplicit-function-declaration -Werror=uninitialized -Wno-error=maybe-uninitialized -Werror=return-type
  14. CFLAGS += -D free=vPortFree -D malloc=pvPortMalloc -D calloc=pvPortCalloc -D realloc=pvPortRealloc -D strdup=mtk_strdup
  15. CFLAGS += -D LWIP_IPV6=1 -D LWIP_IGMP=1 -D SO_REUSE=1
  16. INCLUDES+= -I${PROJECT_ROOT_PATH}/../../iot_sdk/inc
  17. INCLUDES+= -I${PROJECT_ROOT_PATH}/../../../../../kernel/service/inc
  18. INCLUDES+= -I${PROJECT_ROOT_PATH}/../../../../../middleware/third_party/lwip/src/include
  19. INCLUDES+= -I${PROJECT_ROOT_PATH}/../../../../../middleware/third_party/lwip/ports/include
  20. INCLUDES+= -I${PROJECT_ROOT_PATH}/../../../../../driver/board/mt76x7_hdk/wifi/inc
  21. INCLUDES+= -I${PROJECT_ROOT_PATH}/../../../../../driver/chip/inc
  22. INCLUDES+= -I${PROJECT_ROOT_PATH}/../../../../../driver/chip/mt7687/inc
  23. INCLUDES+= -I${PROJECT_ROOT_PATH}/../../../../../driver/CMSIS/Device/MTK/mt7687/Include
  24. INCLUDES+= -I${PROJECT_ROOT_PATH}/../../../../../driver/CMSIS/Include