Changeset 60 for trunk/tools/internal/fixcode.c
- Timestamp:
- Feb 18, 2016, 5:18:51 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/internal/fixcode.c
r57 r60 19 19 /* 20 20 // FIXCODE.C -- Fix the AiR-BOOT image; include the code-size and MBR prot-img. 21 // This reads AIR-BOOT.COM, merges MBR-PROT.BIN and writes AIRBOOT.BIN.21 // This reads 'air-boot.com', merges 'mbr-prot.bin' and writes 'airboot.bin'. 22 22 // It is a quick-and-dirty translation of the original DOS-only ASM file. 23 23 // Of course it's not as small but it's much easier to maintain across 24 24 // multiple platforms. A small change with regard to the old ASM version is 25 // that it directly writes AIRBOOT.BIN instead of writing AIR-BOOT.COM.25 // that it directly writes 'airboot.bin' instead of writing 'air-boot.com'. 26 26 // This way the pre and post situations are kept valid. 27 27 */ 28 28 29 29 30 #include " FIXCODE.H"30 #include "fixcode.h" 31 31 32 32 … … 49 49 50 50 /* File names */ 51 #define IN_FILE " AIR-BOOT.COM" // Target from assembly.51 #define IN_FILE "air-boot.com" // Target from assembly. 52 52 #ifdef PLATFORM_LINUX 53 #define MERGE_FILE " MBR-PROT/MBR-PROT.BIN" // MBR Protection Image.53 #define MERGE_FILE "mbr-prot/mbr-prot.bin" // MBR Protection Image. 54 54 #else 55 #define MERGE_FILE " MBR-PROT\\MBR-PROT.BIN" // MBR Protection Image.56 #endif 57 #define OUT_FILE " AIRBOOT.BIN" // Generated loader image.55 #define MERGE_FILE "mbr-prot\\mbr-prot.bin" // MBR Protection Image. 56 #endif 57 #define OUT_FILE "airboot.bin" // Generated loader image. 58 58 59 59 … … 200 200 201 201 /* 202 // Write AIRBOOT.BIN202 // Write 'airboot.bin' 203 203 */ 204 204 printf("%s", WriteCode);
Note:
See TracChangeset
for help on using the changeset viewer.