mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-20 12:58:39 +00:00
36 lines
800 B
C#
36 lines
800 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.IO;
|
|
|
|
namespace Cosmos.Compiler.Builder
|
|
{
|
|
public class MakePXEStep : BuilderStep
|
|
{
|
|
public MakePXEStep(BuildOptions options)
|
|
: base(options)
|
|
{
|
|
}
|
|
|
|
|
|
|
|
override public void Execute()
|
|
{
|
|
Init();
|
|
|
|
string xPath = BuildPath + @"PXE\";
|
|
buildFileUtils.RemoveFile(xPath + @"Boot\output.bin");
|
|
File.Move(BuildPath + "output.bin", xPath + @"Boot\output.bin");
|
|
// *Must* set working dir so tftpd32 will set itself to proper dir
|
|
Global.Call(xPath + "tftpd32.exe", "", xPath, false, true);
|
|
|
|
Finish();
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|