Skip to content

Commit

Permalink
output.bin is now Cosmos.bin
Browse files Browse the repository at this point in the history
  • Loading branch information
kudzu_cp committed Jun 25, 2012
1 parent db5fb69 commit 630c457
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Build/ISO/isolinux.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
default cosmos
label cosmos
kernel mboot.c32
append output.bin
append Cosmos.bin

prompt 0

Expand Down
2 changes: 1 addition & 1 deletion Build/PXE/pxelinux.cfg/default
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ DEFAULT Cosmos

LABEL Cosmos
KERNEL mboot.c32
APPEND output.bin
APPEND Cosmos.bin
2 changes: 1 addition & 1 deletion Build/USB/syslinux.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ DEFAULT Cosmos

LABEL Cosmos
KERNEL mboot.c32
APPEND output.bin
APPEND Cosmos.bin
8 changes: 4 additions & 4 deletions source2/Build/Cosmos.Build.Common/IsoMaker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ static public void Generate(string aBuildPath, string xInputPathname, string aIs
string xPath = Path.Combine(aBuildPath, @"ISO");
RemoveFile(aIsoPathname);

// We copy and rename in the process to output.bin becaue the .cfg is currently
// hardcoded to output.bin.
string xOutputBin = Path.Combine(xPath, "output.bin");
// We copy and rename in the process to Cosmos.bin becaue the .cfg is currently
// hardcoded to Cosmos.bin.
string xOutputBin = Path.Combine(xPath, "Cosmos.bin");
RemoveFile(xOutputBin);
File.Copy(xInputPathname, xOutputBin);

Expand All @@ -33,7 +33,7 @@ static public void Generate(string aBuildPath, string xInputPathname, string aIs
BootFileName = xIsoLinux,
BootInfoTable = true
};
// TODO - Use move or see if we can do this without copying first the output.bin as they will start to get larger
// TODO - Use move or see if we can do this without copying first the Cosmos.bin as they will start to get larger
xOptions.IncludeFiles.Add(xPath);

var xISO = new Iso9660Generator(xOptions);
Expand Down
17 changes: 10 additions & 7 deletions source2/Build/Cosmos.Build.Common/UsbMaker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,21 @@ static public void Generate() {
string aDrive = "G";

//string xPath = BuildPath + @"C:\Users\Atmoic\AppData\Roaming\Cosmos User Kit\Build\USB";
string xPath = @"D:\source\Cosmos\Build\USB";
string xPath = @"C:\Users\Atmoic\AppData\Roaming\Cosmos User Kit\Build\USB";

// Why do we copy it twice???
RemoveFile(Path.Combine(xPath, "output.bin"));
//File.Copy(xBuildPath + @"output.bin", xPath + @"output.bin");
RemoveFile(Path.Combine(xPath, "Cosmos.bin"));
File.Copy(@"d:\source\Cosmos\source2\Demos\Guess\bin\Debug\Guess.obj", Path.Combine(xPath, "Cosmos.bin"));

// Copy to USB device
RemoveFile(aDrive + @":\output.bin");
//File.Copy(xPath + @"output.bin", aDrive + @":\output.bin");
RemoveFile(aDrive + @":\Cosmos.bin");
File.Copy(Path.Combine(xPath, "Cosmos.bin"), aDrive + @":\Cosmos.bin");

RemoveFile(aDrive + @":\mboot.c32");
//File.Copy(xPath + @"mboot.c32", aDrive + @":\mboot.c32");
File.Copy(Path.Combine(xPath, "mboot.c32"), aDrive + @":\mboot.c32");

RemoveFile(aDrive + @":\syslinux.cfg");
//File.Copy(xPath + @"syslinux.cfg", aDrive + @":\syslinux.cfg");
File.Copy(Path.Combine(xPath, "syslinux.cfg"), aDrive + @":\syslinux.cfg");

// Set MBR
//TODO: Hangs on Windows 2008 - maybe needs admin permissions? Or maybe its not compat?
Expand Down

0 comments on commit 630c457

Please sign in to comment.