config.mk 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. BSP_ROOT ?= D:/github/LuatOS/bsp/w60x
  2. RTT_ROOT ?= D:/github/LuatOS/bsp/w60x/rt-thread
  3. CROSS_COMPILE ?=D:\\github\\env\\tools\\gnu_gcc\\arm_gcc\\mingw\\bin\\arm-none-eabi-
  4. CFLAGS := -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections -std=gnu99 -w -fno-common -fomit-frame-pointer -fno-short-enums -fsigned-char -O2
  5. AFLAGS := -c -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections -x assembler-with-cpp -Wa,-mimplicit-it=thumb
  6. LFLAGS := -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections -lm -lgcc -lc -g --specs=nano.specs -nostartfiles -Wl,-Map=rtthread-w60x.map -Os -Wl,--gc-sections -Wl,--cref -Wl,--entry=Reset_Handler -Wl,--no-enum-size-warning -Wl,--no-wchar-size-warning -T drivers/linker_scripts/link.lds
  7. CPPPATHS :=-I"D:\github\LuatOS\lua\include", \
  8. -I"D:\github\LuatOS\luat\inculde", \
  9. -I"D:\github\LuatOS\luat\packages\airkiss", \
  10. -I"D:\github\LuatOS\luat\packages\lfs", \
  11. -I"D:\github\LuatOS\luat\packages\lua-cjson", \
  12. -I"D:\github\LuatOS\luat\packages\vsprintf", \
  13. -I$(BSP_ROOT) \
  14. -I$(BSP_ROOT)\applications \
  15. -I$(BSP_ROOT)\drivers \
  16. -I$(BSP_ROOT)\packages\netutils-v1.1.0\ntp \
  17. -I$(BSP_ROOT)\packages\u8g2-c-latest \
  18. -I$(BSP_ROOT)\packages\u8g2-c-latest\port \
  19. -I$(BSP_ROOT)\packages\wm_libraries-latest \
  20. -I$(BSP_ROOT)\packages\wm_libraries-latest\Include \
  21. -I$(BSP_ROOT)\packages\wm_libraries-latest\Include\Driver \
  22. -I$(BSP_ROOT)\packages\wm_libraries-latest\Include\OS \
  23. -I$(BSP_ROOT)\packages\wm_libraries-latest\Include\Platform \
  24. -I$(BSP_ROOT)\packages\wm_libraries-latest\Include\WiFi \
  25. -I$(BSP_ROOT)\packages\wm_libraries-latest\Platform\Boot\gcc \
  26. -I$(BSP_ROOT)\packages\wm_libraries-latest\Platform\Common\Params \
  27. -I$(BSP_ROOT)\packages\wm_libraries-latest\Platform\Common\crypto \
  28. -I$(BSP_ROOT)\packages\wm_libraries-latest\Platform\Common\crypto\digest \
  29. -I$(BSP_ROOT)\packages\wm_libraries-latest\Platform\Common\crypto\math \
  30. -I$(BSP_ROOT)\packages\wm_libraries-latest\Platform\Common\crypto\symmetric \
  31. -I$(BSP_ROOT)\packages\wm_libraries-latest\Platform\Drivers\spi \
  32. -I$(BSP_ROOT)\packages\wm_libraries-latest\Platform\Inc \
  33. -I$(RTT_ROOT)\components\dfs\filesystems\devfs \
  34. -I$(RTT_ROOT)\components\dfs\include \
  35. -I$(RTT_ROOT)\components\drivers\hwcrypto \
  36. -I$(RTT_ROOT)\components\drivers\include \
  37. -I$(RTT_ROOT)\components\drivers\spi \
  38. -I$(RTT_ROOT)\components\drivers\wlan \
  39. -I$(RTT_ROOT)\components\finsh \
  40. -I$(RTT_ROOT)\components\libc\compilers\newlib \
  41. -I$(RTT_ROOT)\components\net\lwip-2.0.2\src \
  42. -I$(RTT_ROOT)\components\net\lwip-2.0.2\src\arch\include \
  43. -I$(RTT_ROOT)\components\net\lwip-2.0.2\src\include \
  44. -I$(RTT_ROOT)\components\net\lwip-2.0.2\src\include\ipv4 \
  45. -I$(RTT_ROOT)\components\net\lwip-2.0.2\src\include\netif \
  46. -I$(RTT_ROOT)\components\net\lwip_dhcpd \
  47. -I$(RTT_ROOT)\components\net\netdev\include \
  48. -I$(RTT_ROOT)\components\net\sal_socket\impl \
  49. -I$(RTT_ROOT)\components\net\sal_socket\include \
  50. -I$(RTT_ROOT)\components\net\sal_socket\include\dfs_net \
  51. -I$(RTT_ROOT)\components\net\sal_socket\include\socket \
  52. -I$(RTT_ROOT)\components\net\sal_socket\include\socket\sys_socket \
  53. -I$(RTT_ROOT)\components\utilities\ulog \
  54. -I$(RTT_ROOT)\components\utilities\ymodem \
  55. -I$(RTT_ROOT)\include \
  56. -I$(RTT_ROOT)\libcpu\arm\common \
  57. -I$(RTT_ROOT)\libcpu\arm\cortex-m3
  58. DEFINES := -DHAVE_CCONFIG_H -DRT_USING_NEWLIB -DWM_W600 -D_REENT_SMALL