source: trunk/install/c/install.h@ 60

Last change on this file since 60 was 60, checked in by Ben Rietbroek, 10 years ago

Fixed building on Linux [v1.1.1-testing]

Of course the lowercasing broke building on Linux.
This commit fixes that.

File size: 4.7 KB
Line 
1// AiR-BOOT (c) Copyright 1998-2009 M. Kiewitz
2//
3// This file is part of AiR-BOOT
4//
5// AiR-BOOT is free software: you can redistribute it and/or modify it under
6// the terms of the GNU General Public License as published by the Free
7// Software Foundation, either version 3 of the License, or (at your option)
8// any later version.
9//
10// AiR-BOOT is distributed in the hope that it will be useful, but WITHOUT ANY
11// WARRANTY: without even the implied warranty of MERCHANTABILITY or FITNESS
12// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13// details.
14//
15// You should have received a copy of the GNU General Public License along with
16// AiR-BOOT. If not, see <http://www.gnu.org/licenses/>.
17//
18
19
20/*
21// OS/2 BLDLEVEL Information.
22*/
23// Vendor
24#define BLDLVL_VENDOR "KIEWITZ"
25// Version
26#define BLDLVL_MAJOR_VERSION "1"
27#define BLDLVL_MIDDLE_VERSION "1"
28#define BLDLVL_MINOR_VERSION "0"
29// Build date
30#define BLDLVL_YEAR "2013"
31#define BLDLVL_MONTH "04"
32#define BLDLVL_DAY "05"
33// Build time
34#define BLDLVL_HOURS "01"
35#define BLDLVL_MINUTES "01"
36#define BLDLVL_SECONDS "00"
37// Build machine
38#define BLDLVL_MACHINE "*UNKNOWN*"
39// Build language
40#define BLDLVL_LANGUAGE "EN"
41
42//char bldlevel[] = "@#KIEWITZ:1.0.8#@##1## 2011/01/17 21:10:00 ecs-devbox:ASD123:L:C:8::99@@ Adapter Driver for PATA/SATA DASD";
43char bldlevel[] = "@#"\
44 BLDLVL_VENDOR":"\
45 BLDLVL_MAJOR_VERSION"."\
46 BLDLVL_MIDDLE_VERSION"."\
47 BLDLVL_MINOR_VERSION"#@##1## "\
48 BLDLVL_YEAR"/"\
49 BLDLVL_MONTH"/"\
50 BLDLVL_DAY" "\
51 BLDLVL_HOURS":"\
52 BLDLVL_MINUTES":"\
53 BLDLVL_SECONDS" "\
54 BLDLVL_MACHINE"::"\
55 BLDLVL_LANGUAGE"::"\
56 BLDLVL_MINOR_VERSION"::@@"\
57 "Installer for the AiR-BOOT Boot Manager";
58
59
60/*
61// Platform dependent defines and includes.
62*/
63#if defined(__DOS__)
64 // DOS platform
65 #define PLATFORM_DOS
66 #define PLATFORM_NAME "DOS"
67 // We use the OS/2 v1.x definitions like CHAR etc.
68 #include <os2def.h>
69#elif defined(__OS2__) && !defined(OS2)
70 // OS/2 platform
71 #define PLATFORM_OS2
72 #define PLATFORM_NAME "OS/2"
73 #define INCL_NOPMAPI
74 #define INCL_BASE
75 #define INCL_DOS
76 #define INCL_DOSDEVIOCTL
77 #include <os2.h>
78 #include <malloc.h>
79#elif defined(__NT__)
80 // Win32 platform
81 #define PLATFORM_WINNT
82 #define PLATFORM_NAME "Windows NT/2K/XP/Vista/7"
83 #include <windows.h>
84
85#elif defined(__LINUX__)
86 // Linux platform
87 #define PLATFORM_LINUX
88 #define PLATFORM_NAME "Linux"
89 // We use the OS/2 v2.x definitions like CHAR etc.
90 #include <os2def.h>
91#else
92 #error Unsupported platform
93#endif
94
95
96/*
97// Standard header files.
98*/
99#include <stdlib.h>
100#include <ctype.h>
101#include <stdio.h>
102#include <conio.h>
103#include <string.h>
104#include <i86.h>
105
106
107#define STATUS_NOTINSTALLED 0 // No ID found
108#define STATUS_CORRUPT 1 // ID found, Checksum failure
109#define STATUS_INSTALLED 2 // ID found, Checksum valid
110#define STATUS_INSTALLEDMGU 3 // ID found, Checksum valid, may get updated
111#define STATUS_IMPOSSIBLE 4 // Unable/Not willing to install
112
113/* Rousseau: added */
114#define IMAGE_NAME "airboot.bin"
115#define GPT 0xEE // GPT Disk, AiR-BOOT will abort
116#define BYTES_PER_SECTOR 512 // This could be higher in the future
117#define IMAGE_SIZE_60SECS 30720 // Normal image-size (max. 30 partitions)
118#define IMAGE_SIZE_62SECS 31744 // Extended image-size (max. 45 partitions)
119//#define IMAGE_SIZE IMAGE_SIZE_60SECS // Use the normal image
120#define IMAGE_SIZE IMAGE_SIZE_62SECS // Use the extended image
121#define SECTOR_COUNT IMAGE_SIZE / BYTES_PER_SECTOR // Size of the image in sectors
122#define CONFIG_OFFSET 0x6C00 // Byte offset of config-sector
123#define SECTORS_BEFORE_CONFIG CONFIG_OFFSET / BYTES_PER_SECTOR // Nr of sectors before config-sector
124
125
126
127
Note: See TracBrowser for help on using the repository browser.