GongT пре 6 година
родитељ
комит
5a7d989fcd
3 измењених фајлова са 82 додато и 4 уклоњено
  1. 7 0
      cmake/ide.cmake
  2. 69 4
      kendryte-package.json
  3. 6 0
      package.json

+ 7 - 0
cmake/ide.cmake

@@ -0,0 +1,7 @@
+FILE(GLOB_RECURSE ASSEMBLY_FILES
+        "${CMAKE_CURRENT_LIST_DIR}/*.s"
+        "${CMAKE_CURRENT_LIST_DIR}/*.S"
+)
+
+SET_PROPERTY(SOURCE ${ASSEMBLY_FILES} PROPERTY LANGUAGE C)
+SET_SOURCE_FILES_PROPERTIES(${ASSEMBLY_FILES} PROPERTIES COMPILE_FLAGS "-x assembler-with-cpp -D __riscv64")

+ 69 - 4
kendryte-package.json

@@ -1,6 +1,71 @@
 {
-    "name": "framework-kendryte210-standalone-sdk",
-    "description": "This SDK is for Kendryte K210 without OS support.",
-    "version": "0.5.4",
-    "url": "https://github.com/kendryte/kendryte-standalone-sdk"
+	"$schema": "vscode://schemas/CMakeLists",
+	"name": "kendryte-standalone-sdk",
+	"version": "develop",
+	"type": "library",
+	"extraList": "cmake/ide.cmake",
+	"include": [
+		"lib/drivers/include",
+		"lib/bsp/include",
+		"lib/utils/include",
+		"lib/freertos/include",
+		"lib/freertos/conf",
+		"lib/freertos/portable"
+	],
+	"source": [
+		"lib/**/*.c",
+		"lib/**/*.cpp",
+		"lib/**/*.s",
+		"lib/**/*.S"
+	],
+	"c_flags": [
+		"-std=gnu11",
+		"-Wno-pointer-to-int-cast",
+		"-Wno-old-style-declaration"
+	],
+	"cpp_flags": [
+		"-std=gnu++17"
+	],
+	"c_cpp_flags": [
+		"-mcmodel=medany",
+		"-fno-common",
+		"-ffunction-sections",
+		"-fdata-sections",
+		"-fstrict-volatile-bitfields",
+		"-fno-zero-initialized-in-bss",
+		"-Os",
+		"-ggdb",
+		"-Wall",
+		"-Werror=all",
+		"-Wno-error=unused-function",
+		"-Wno-error=unused-but-set-variable",
+		"-Wno-error=unused-variable",
+		"-Wno-error=deprecated-declarations",
+		"-Wextra",
+		"-Werror=frame-larger-than=65536",
+		"-Wno-unused-parameter",
+		"-Wno-sign-compare",
+		"-Wno-error=missing-braces",
+		"-Wno-error=return-type",
+		"-Wno-error=pointer-sign",
+		"-Wno-missing-braces",
+		"-Wno-strict-aliasing",
+		"-Wno-implicit-fallthrough",
+		"-Wno-missing-field-initializers"
+	],
+	"link_flags": [
+		"-static",
+		"-Wl,-static",
+		"-Wl,-EL"
+	],
+	"ld_file": "lds/kendryte.ld",
+	"properties": {
+		"LINKER_LANGUAGE": "C"
+	},
+	"__random": "74211554725553837",
+	"systemLibrary": [
+		"gcc",
+		"m",
+		"c"
+	]
 }

+ 6 - 0
package.json

@@ -0,0 +1,6 @@
+{
+    "name": "framework-kendryte210-standalone-sdk",
+    "description": "This SDK is for Kendryte K210 without OS support.",
+    "version": "0.5.4",
+    "url": "https://github.com/kendryte/kendryte-standalone-sdk"
+}