kendryte-package.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {
  2. "$schema": "vscode://schemas/CMakeLists",
  3. "name": "kendryte/standalone-sdk",
  4. "version": "develop",
  5. "type": "library",
  6. "extraList": "cmake/ide.cmake",
  7. "include": [
  8. "./lib/bsp/include",
  9. "./lib/drivers/include",
  10. "./lib/utils/include",
  11. "third_party/xtl/include",
  12. "lib/nncase/include"
  13. ],
  14. "source": [
  15. "lib/**/*.c",
  16. "lib/**/*.cpp",
  17. "lib/**/*.s",
  18. "lib/**/*.S"
  19. ],
  20. "c_flags": [
  21. "-std=gnu11",
  22. "-Wno-pointer-to-int-cast",
  23. "-Wno-old-style-declaration"
  24. ],
  25. "cpp_flags": [
  26. "-std=gnu++17"
  27. ],
  28. "c_cpp_flags": [
  29. "-mcmodel=medany",
  30. "-mabi=lp64f",
  31. "-march=rv64imafc",
  32. "-fno-common",
  33. "-ffunction-sections",
  34. "-fdata-sections",
  35. "-fstrict-volatile-bitfields",
  36. "-fno-zero-initialized-in-bss",
  37. "-ffast-math",
  38. "-fno-math-errno",
  39. "-fsingle-precision-constant",
  40. "-Os",
  41. "-ggdb",
  42. "-Wall",
  43. "-Werror=all",
  44. "-Wno-error=unused-function",
  45. "-Wno-error=unused-but-set-variable",
  46. "-Wno-error=unused-variable",
  47. "-Wno-error=deprecated-declarations",
  48. "-Wno-multichar",
  49. "-Wextra",
  50. "-Werror=frame-larger-than=32768",
  51. "-Wno-unused-parameter",
  52. "-Wno-sign-compare",
  53. "-Wno-error=missing-braces",
  54. "-Wno-error=return-type",
  55. "-Wno-error=pointer-sign",
  56. "-Wno-missing-braces",
  57. "-Wno-strict-aliasing",
  58. "-Wno-implicit-fallthrough",
  59. "-Wno-missing-field-initializers",
  60. "-Wno-int-to-pointer-cast",
  61. "-Wno-error=comment",
  62. "-Wno-error=logical-not-parentheses",
  63. "-Wno-error=duplicate-decl-specifier",
  64. "-Wno-error=parentheses"
  65. ],
  66. "link_flags": [
  67. "-nostartfiles",
  68. "-static",
  69. "-Wl,--gc-sections",
  70. "-Wl,-static",
  71. "-Wl,-EL",
  72. "-Wl,--no-relax"
  73. ],
  74. "ld_file": "lds/kendryte.ld",
  75. "properties": {
  76. "LINKER_LANGUAGE": "C"
  77. },
  78. "__random": "74211554725553837",
  79. "systemLibrary": [
  80. "gcc",
  81. "m",
  82. "c"
  83. ],
  84. "definitions": {
  85. "TCB_SPAN_NO_EXCEPTIONS:raw": "",
  86. "TCB_SPAN_NO_CONTRACT_CHECKING:raw": "",
  87. "NNCASE_TARGET:raw": "k210",
  88. "KENDRYTE_SDK_TYPE:raw": "1",
  89. "KENDRYTE_SDK_TYPE_STANDALONE:raw": "1",
  90. "KENDRYTE_SDK_TYPE_FREERTOS:raw": "2",
  91. "KENDRYTE_SDK_RELEASE_DATE:raw": "0"
  92. },
  93. "linkArgumentPrefix": [
  94. "-Wl,--whole-archive"
  95. ],
  96. "linkArgumentSuffix": [
  97. "-Wl,--no-whole-archive"
  98. ]
  99. }