GD32F1x0编译脚本独立,它的重要函数必须放在开头
This commit is contained in:
parent
b0c275ff05
commit
cbec1ec867
|
@ -25,7 +25,7 @@ void assert_failed2(const char* msg, const char* file, unsigned int line);
|
|||
#endif
|
||||
|
||||
// 关键性代码放到开头
|
||||
#if !defined(TINY)
|
||||
#if !defined(TINY) && defined(USEROOT)
|
||||
#define INROOT __attribute__((section(".InRoot")))
|
||||
#else
|
||||
#define INROOT
|
||||
|
|
|
@ -45,7 +45,7 @@ void assert_failed2(cstring msg, cstring file, unsigned int line);
|
|||
#endif
|
||||
|
||||
// 关键性代码放到开头
|
||||
#if !defined(TINY)
|
||||
#if !defined(TINY) && defined(USEROOT)
|
||||
#define INROOT __attribute__((section(".InRoot")))
|
||||
#else
|
||||
#define INROOT
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
var build = Builder.Create("MDK");
|
||||
build.Init();
|
||||
build.CPU = "Cortex-M3";
|
||||
build.Defines.Add("STM32F1");
|
||||
build.AddIncludes("..\\", false);
|
||||
build.AddFiles("..\\Core");
|
||||
build.AddFiles("..\\Kernel");
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
var build = Builder.Create("MDK");
|
||||
build.Init();
|
||||
build.CPU = "Cortex-M3";
|
||||
build.Defines.Add("USEROOT");
|
||||
build.AddIncludes("..\\", false);
|
||||
build.AddFiles("..\\Core");
|
||||
build.AddFiles("..\\Kernel");
|
||||
build.AddFiles("..\\Device");
|
||||
build.AddFiles("..\\", "*.c;*.cpp", false);
|
||||
build.AddFiles("..\\Net");
|
||||
build.AddFiles("..\\Message");
|
||||
build.AddFiles("..\\Security", "*.cpp");
|
||||
build.AddFiles("..\\Board");
|
||||
build.AddFiles("..\\Storage");
|
||||
build.AddFiles("..\\App");
|
||||
build.AddFiles("..\\Drivers");
|
||||
build.AddFiles("..\\Test");
|
||||
build.AddFiles("..\\TinyIP", "*.c;*.cpp", false, "HttpClient");
|
||||
build.AddFiles("..\\TinyNet");
|
||||
build.AddFiles("..\\TokenNet");
|
||||
build.Libs.Clear();
|
||||
//build.Preprocess = true;
|
||||
build.CompileAll();
|
||||
build.BuildLib("..\\SmartOS_M3_1x0");
|
||||
|
||||
build.Debug = true;
|
||||
build.CompileAll();
|
||||
build.BuildLib("..\\SmartOS_M3_1x0");
|
||||
|
||||
/*build.Debug = false;
|
||||
build.Tiny = true;
|
||||
build.CompileAll();
|
||||
build.BuildLib("..\\SmartOS_M3");*/
|
|
@ -3,7 +3,6 @@ build.Init();
|
|||
build.CPU = "Cortex-M3";
|
||||
build.Linux = true;
|
||||
build.Output = "GCC";
|
||||
build.Defines.Add("STM32F1");
|
||||
build.AddIncludes("..\\", false);
|
||||
build.AddFiles("..\\Core");
|
||||
build.AddFiles("..\\Kernel");
|
||||
|
|
Loading…
Reference in New Issue