Cosmos/source/Cosmos.Build.Windows/Builder/MakePXEStep.cs
2009-05-16 10:26:46 +00:00

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();
}
}
}