SmartOS编译的时候需要区分指令集,所以需要分为M0/M3/M4

This commit is contained in:
Stone 2016-06-15 06:41:44 +00:00
parent cabf30b32b
commit 2f1f76da56
5 changed files with 62 additions and 8 deletions

View File

@ -35,11 +35,11 @@ namespace NewLife.Reflection
build.AddFiles("..\\CortexM", "*.c;*.cpp;*.s"); build.AddFiles("..\\CortexM", "*.c;*.cpp;*.s");
build.Libs.Clear(); build.Libs.Clear();
build.CompileAll(); build.CompileAll();
build.BuildLib("..\\..\\"); build.BuildLib("..\\..\\SmartOS_F0");
build.Debug = true; build.Debug = true;
build.CompileAll(); build.CompileAll();
build.BuildLib("..\\..\\"); build.BuildLib("..\\..\\SmartOS_F0");
/*build.Tiny = true; /*build.Tiny = true;
build.CompileAll(); build.CompileAll();

View File

@ -34,11 +34,11 @@ namespace NewLife.Reflection
build.AddFiles("..\\CortexM", "*.c;*.cpp;*.s"); build.AddFiles("..\\CortexM", "*.c;*.cpp;*.s");
build.Libs.Clear(); build.Libs.Clear();
build.CompileAll(); build.CompileAll();
build.BuildLib("..\\..\\"); build.BuildLib("..\\..\\SmartOS_F0");
build.Debug = true; build.Debug = true;
build.CompileAll(); build.CompileAll();
build.BuildLib("..\\..\\"); build.BuildLib("..\\..\\SmartOS_F0");
/*build.Tiny = true; /*build.Tiny = true;
build.CompileAll(); build.CompileAll();

View File

@ -34,11 +34,11 @@ namespace NewLife.Reflection
build.AddFiles("..\\CortexM", "*.c;*.cpp;*.s"); build.AddFiles("..\\CortexM", "*.c;*.cpp;*.s");
build.Libs.Clear(); build.Libs.Clear();
build.CompileAll(); build.CompileAll();
build.BuildLib("..\\..\\"); build.BuildLib("..\\..\\SmartOS_F1");
build.Debug = true; build.Debug = true;
build.CompileAll(); build.CompileAll();
build.BuildLib("..\\..\\"); build.BuildLib("..\\..\\SmartOS_F1");
/*build.Tiny = true; /*build.Tiny = true;
build.CompileAll(); build.CompileAll();

View File

@ -34,11 +34,11 @@ namespace NewLife.Reflection
build.AddFiles("..\\CortexM", "*.c;*.cpp;*.s"); build.AddFiles("..\\CortexM", "*.c;*.cpp;*.s");
build.Libs.Clear(); build.Libs.Clear();
build.CompileAll(); build.CompileAll();
build.BuildLib("..\\..\\"); build.BuildLib("..\\..\\SmartOS_F4");
build.Debug = true; build.Debug = true;
build.CompileAll(); build.CompileAll();
build.BuildLib("..\\..\\"); build.BuildLib("..\\..\\SmartOS_F4");
/*build.Tiny = true; /*build.Tiny = true;
build.CompileAll(); build.CompileAll();

54
Tool/Build_SmartOS_M3.cs Normal file
View File

@ -0,0 +1,54 @@
using System;
using System.Collections;
using System.Diagnostics;
using System.Reflection;
using System.Text;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Microsoft.Win32;
using NewLife.Log;
namespace NewLife.Reflection
{
public class ScriptEngine
{
static void Main()
{
var build = new Builder();
build.Init();
build.Cortex = 3;
build.Defines.Add("STM32F1");
build.AddIncludes("..\\Core");
build.AddIncludes("..\\Kernel");
build.AddIncludes("..\\Device");
build.AddFiles("..\\Core");
build.AddFiles("..\\Kernel");
build.AddFiles("..\\Device");
build.AddFiles("..\\", "*.c;*.cpp", false);
build.AddFiles("..\\Security", "*.cpp");
build.AddFiles("..\\Board");
build.AddFiles("..\\Storage");
build.AddFiles("..\\App");
build.AddFiles("..\\Drivers");
build.AddFiles("..\\Net");
build.AddFiles("..\\Test");
build.AddFiles("..\\TinyIP", "*.c;*.cpp", false, "HttpClient");
build.AddFiles("..\\Message");
build.AddFiles("..\\TinyNet");
build.AddFiles("..\\TokenNet");
build.Libs.Clear();
build.CompileAll();
build.BuildLib("..\\SmartOS_M3");
build.Debug = true;
build.CompileAll();
build.BuildLib("..\\SmartOS_M3");
/*build.Tiny = true;
build.CompileAll();
build.BuildLib("..\\SmartOS_M3");*/
}
}
}
//include=MDK.cs