Chameleon

Chameleon Commit Details

Date:2010-03-21 23:37:37 (14 years 1 month ago)
Author:DieBuche
Commit:137
Parents: 136
Message:verbose -> PRINT, new autores_dbg make option
Changes:
M/branches/autoResolution/i386/cdboot/Makefile
M/branches/autoResolution/i386/boot2/gui.c
M/branches/autoResolution/i386/libsaio/gma_resolution.c
M/branches/autoResolution/i386/util/Makefile
M/branches/autoResolution/i386/libsaio/Makefile
M/branches/autoResolution/i386/libsaio/autoresolution.c
M/branches/autoResolution/i386/boot0/Makefile
M/branches/autoResolution/i386/libsaio/nvidia_resolution.c
M/branches/autoResolution/i386/boot1/Makefile
M/branches/autoResolution/i386/boot2/Makefile
M/branches/autoResolution/i386/libsaio/ati_resolution.c
M/branches/autoResolution/i386/libsaio/autoresolution.h
M/branches/autoResolution/i386/libsa/Makefile
M/branches/autoResolution/i386/boot2/boot.c
M/branches/autoResolution/i386/Makefile
M/branches/autoResolution/i386/libsaio/hfs.c

File differences

branches/autoResolution/i386/libsaio/ati_resolution.c
2424
2525
2626
27
27
2828
29
30
31
29
30
31
3232
3333
3434
......
4444
4545
4646
47
47
4848
4949
50
50
5151
5252
5353
......
5858
5959
6060
61
61
6262
6363
6464
......
7777
7878
7979
80
80
8181
8282
8383
ATOM_STANDARD_VESA_TIMING * std_vesa = (ATOM_STANDARD_VESA_TIMING *) (map->bios_ptr + std_vesa_offset);
map->mode_table = (char *) &std_vesa->aModeTimings;
verbose("Standard VESA Table at offset * 0x%x\n", std_vesa_offset);
PRINT("Standard VESA Table at offset * 0x%x\n", std_vesa_offset);
if (map->mode_table == 0) {
verbose("Unable to locate the mode table.\n");
verbose("Please run the program 'dump_bios' as root and\n");
verbose("email the file 'vbios.dmp' to gaeloulacuisse@yahoo.fr.\n");
PRINT("Unable to locate the mode table.\n");
PRINT("Please run the program 'dump_bios' as root and\n");
PRINT("email the file 'vbios.dmp' to gaeloulacuisse@yahoo.fr.\n");
close_vbios(map);
return 0;
if (!detect_ati_bios_type(map)) map->bios = BT_ATI_2;
if (map->bios == BT_ATI_2) {
map->modeline_num = map->mode_table_size / sizeof(ATOM_DTD_FORMAT);
verbose("Using DTD Format modelines\n");
PRINT("Using DTD Format modelines\n");
} else {
map->modeline_num = map->mode_table_size / sizeof(ATOM_MODE_TIMING);
verbose("Using Atom Mode Timing modelines\n");
PRINT("Using Atom Mode Timing modelines\n");
}
return map;
}
if ((*x != 0) && (*y != 0) && ( mode_timing[idx].usCRTC_H_Disp >= 640 )) {
verbose("Mode %dx%d -> %dx%d\n",mode_timing[idx].usCRTC_H_Disp,mode_timing[idx].usCRTC_V_Disp,
PRINT("Mode %dx%d -> %dx%d\n",mode_timing[idx].usCRTC_H_Disp,mode_timing[idx].usCRTC_V_Disp,
*x, *y);
mode_timing[idx].usCRTC_H_Disp = *x;
if ((*x != 0) && (*y != 0) && ( mode_timing[idx].usHActive >= 640 )) {
verbose("Mode %dx%d -> %dx%d\n", mode_timing[idx].usHActive, mode_timing[idx].usHActive,
PRINT("Mode %dx%d -> %dx%d\n", mode_timing[idx].usHActive, mode_timing[idx].usHActive,
*x, *y);
mode_timing[idx].usHActive = *x;
branches/autoResolution/i386/libsaio/hfs.c
887887
888888
889889
890
890
891
891892
892893
893894
readOffset = ((blockNumber - countedBlocks) * gBlockSize) +
(offset % gBlockSize);
readSize = GetExtentSize(currentExtent, 0) * gBlockSize - readOffset;
// MacWen: fix overflow in multiplication by forcing 64bit multiplication
readSize = (long long)GetExtentSize(currentExtent, 0) * gBlockSize - readOffset;
if (readSize > (size - sizeRead)) readSize = size - sizeRead;
readOffset += (long long)GetExtentStart(currentExtent, 0) * gBlockSize;
branches/autoResolution/i386/libsaio/Makefile
6767
6868
6969
70
70
71
7172
7273
7374
#SIG = $(SYMROOT)/sig
all embedtheme: $(DIRS_NEEDED) libsaio.h $(LIBS)
all embedtheme autores_dbg: $(DIRS_NEEDED) libsaio.h $(LIBS)
autores_dbg: CFLAGS += -DAUTORES_DEBUG
#libsaio_static.a: $(SAIO_OBJS)
#rm -f $(SYMROOT)/$@
branches/autoResolution/i386/libsaio/autoresolution.c
178178
179179
180180
181
181
182182
183183
184184
......
246246
247247
248248
249
249
250250
251251
252252
......
270270
271271
272272
273
273
274274
275275
276276
......
287287
288288
289289
290
290
291291
292292
293293
......
309309
310310
311311
312
312
313313
314314
315315
......
323323
324324
325325
326
326
327327
328
328
329329
330
330
331331
332332
333333
......
394394
395395
396396
397
397
398398
399399
400400
......
444444
445445
446446
447
447
448448
449449
450450
......
464464
465465
466466
467
467468
468469
469470
......
472473
473474
474475
475
476
477
478
476479
477480
478481
479482
480483
481
482
483484
485
486
484487
485488
489
490
491
492
493
486494
495
496
487497
488498
499
500
501
502
503
489504
505
506
490507
491508
509
510
511
512
513
492514
515
516
493517
494518
519
520
521
522
523
495524
525
526
496527
497528
498529
499530
500
501
531
502532
503533
504534
......
523553
524554
525555
556
526557
527558
aspect->width = 4;
aspect->height = 3;
}
verbose("Aspect Ratio is %d/%d\n", aspect->width, aspect->height);
PRINT("Aspect Ratio is %d/%d\n", aspect->width, aspect->height);
}
void cvt_timings(UInt32 x, UInt32 y, UInt32 freq,
if (forced_chipset == CT_UNKWN) {
map->chipset_id = get_chipset_id();
map->chipset = get_chipset(map->chipset_id);
verbose("Chipset is %s (pci id 0x%x)\n",chipset_type_names[map->chipset], map->chipset_id);
PRINT("Chipset is %s (pci id 0x%x)\n",chipset_type_names[map->chipset], map->chipset_id);
}
else if (forced_chipset != CT_UNKWN) {
map->chipset = forced_chipset;
ati_tables.AtomRomHeader = (ATOM_ROM_HEADER *) (map->bios_ptr + *(unsigned short *) (map->bios_ptr + OFFSET_TO_POINTER_TO_ATOM_ROM_HEADER));
if (strcmp ((char *) ati_tables.AtomRomHeader->uaFirmWareSignature, "ATOM") == 0) {
map->bios = BT_ATI_1;
verbose("We have an AtomBios Card\n");
PRINT("We have an AtomBios Card\n");
return open_ati_vbios(map, ati_tables);
}
&& (map->bios_ptr[i+3] == 'D'))
{
map->bios = BT_NVDA;
verbose("We have an NVIDIA Card\n");
PRINT("We have an NVIDIA Card\n");
return open_nvidia_vbios(map);
break;
}
&& (map->bios_ptr[i+4] == 'l'))
{
map->bios = BT_1;
verbose("We have an Intel Card\n");
PRINT("We have an Intel Card\n");
return open_intel_vbios(map);
break;
}
if ( (map->chipset == CT_UNKWN) || ((map->bios != BT_ATI_1) && (map->bios != BT_NVDA) && (map->bios != BT_1)) )
{
printf("Unknown chipset type and unrecognized bios.\n");
PRINT("Unknown chipset type and unrecognized bios.\n");
printf("autoresolution only works with Intel 800/900 series graphic chipsets.\n");
PRINT("autoresolution only works with Intel 800/900 series graphic chipsets.\n");
printf("Chipset Id: %x\n", map->chipset_id);
PRINT("Chipset Id: %x\n", map->chipset_id);
close_vbios(map);
return 0;
}
#if DEBUG
{
UInt32 t = inl(0xcfc);
printf("unlock PAM: (0x%08x)\n", t);
PRINT("unlock PAM: (0x%08x)\n", t);
}
#endif
}
#if DEBUG
{
UInt32 t = inl(0xcfc);
printf("relock PAM: (0x%08x)\n", t);
PRINT("relock PAM: (0x%08x)\n", t);
}
#endif
}
void patch_vbios(vbios_map * map, UInt32 x, UInt32 y, UInt32 bp, UInt32 htotal, UInt32 vtotal) {
UInt32 i = 0;
/*
* Get the aspect ratio for the requested mode
*/
i = x = y = 0;
if (map->bios != BT_NVDA) {
verbose("%d modes to pacth\n", map->modeline_num);
PRINT("%d modes to patch\n", map->modeline_num);
switch (map->bios) {
case BT_1:
while (i < map->modeline_num) {
if (x == 1400) x = 1440;
if (x == 1600) x = 1680;
y = x * map->aspect_ratio.height / map->aspect_ratio.width;
switch (map->bios) {
case BT_1:
intel_set_mode_1(map, i, &x, &y);
i++;
}
break;
case BT_2:
while (i < map->modeline_num) {
if (x == 1400) x = 1440;
if (x == 1600) x = 1680;
y = x * map->aspect_ratio.height / map->aspect_ratio.width;
intel_set_mode_2(map, i, &x, &y);
i++;
}
break;
case BT_3:
while (i < map->modeline_num) {
if (x == 1400) x = 1440;
if (x == 1600) x = 1680;
y = x * map->aspect_ratio.height / map->aspect_ratio.width;
intel_set_mode_3(map, i, &x, &y);
i++;
}
break;
case BT_ATI_1:
while (i < map->modeline_num) {
if (x == 1400) x = 1440;
if (x == 1600) x = 1680;
y = x * map->aspect_ratio.height / map->aspect_ratio.width;
ati_set_mode_1(map, i, &x, &y);
i++;
}
break;
case BT_ATI_2:
while (i < map->modeline_num) {
if (x == 1400) x = 1440;
if (x == 1600) x = 1680;
y = x * map->aspect_ratio.height / map->aspect_ratio.width;
ati_set_mode_2(map, i, &x, &y);
i++;
}
break;
default:
break;
}
i++;
}
return;
}
if (map->bios == BT_NVDA) {
nvidia_set_mode(map, i, &x, &y, SECOND_VESA_TABLE);
i++;
}
return;
}
}
branches/autoResolution/i386/libsaio/autoresolution.h
2121
2222
2323
24
25
26
27
28
29
2430
2531
2632
......
7076
7177
7278
79
80
7381
7482
75
7683
7784
85
7886
7987
8088
#define NEW(a) ((a *)(malloc(sizeof(a))))
#define FREE(a) (free(a))
#ifdef AUTORES_DEBUG
#define PRINT(a, b...) printf(a, ##b);
#else
#define PRINT(a, b...) verbose(a, ##b);
#endif
#define VBIOS_START 0xc0000
#define VBIOS_SIZE 0x10000
char * mode_table;
char * nv_mode_table_2;
UInt32 mode_table_size;
UInt32 nv_mode_table_2_size;
UInt32 mode_table_size;
UInt32 modeline_num;
UInt32 nv_modeline_num_2;
UInt8 b1, b2;
s_aspect aspect_ratio;
branches/autoResolution/i386/libsaio/nvidia_resolution.c
4949
5050
5151
52
52
5353
5454
5555
56
56
5757
5858
59
59
6060
6161
6262
63
64
65
63
64
65
6666
6767
6868
6969
7070
71
72
7371
74
72
73
74
7575
7676
77
78
77
78
79
80
7981
8082
8183
82
83
84
8485
85
86
8687
87
88
8889
8990
9091
9192
9293
93
94
94
9595
96
96
9797
98
98
9999
100100
101
101
102102
103103
104104
......
108108
109109
110110
111
112
113111
114112
115
113
116114
117115
118116
......
152150
153151
154152
155
153
156154
157155
158156
nv_data_table = (unsigned short *) (map->bios_ptr + (nv_data_table_offset + OFFSET_TO_VESA_TABLE_INDEX));
std_vesa = (NV_VESA_TABLE *) (map->bios_ptr + *nv_data_table);
map->mode_table = (char *) std_vesa->sModelines;
verbose("First Standard VESA Table at offset 0x%x\n", *nv_data_table);
PRINT("First Standard VESA Table at offset 0x%x\n", *nv_data_table);
if (nv_modeline_2_offset == (VBIOS_SIZE-1) || nv_modeline_2_offset == 0) {
map->nv_mode_table_2 = NULL;
verbose("There is no Second Standard VESA Table to patch\n");
PRINT("There is no Second Standard VESA Table to patch\n");
} else {
map->nv_mode_table_2 = (char*) map->bios_ptr + nv_modeline_2_offset;
verbose("Second Standard VESA Table at offset 0x%x\n", nv_modeline_2_offset);
PRINT("Second Standard VESA Table at offset 0x%x\n", nv_modeline_2_offset);
}
if (map->mode_table == NULL) {
verbose("Unable to locate the mode table.\n");
verbose("Please run the program 'dump_bios' as root and\n");
verbose("email the file 'vbios.dmp' to gaeloulacuisse@yahoo.fr.\n");
PRINT("Unable to locate the mode table.\n");
PRINT("Please run the program 'dump_bios' as root and\n");
PRINT("email the file 'vbios.dmp' to gaeloulacuisse@yahoo.fr.\n");
close_vbios(map);
return 0;
}
//This won't be used as there is no garanty this is right
map->mode_table_size = std_vesa->sHeader.usTable_Size;
/*
* Determine how many modes and tables sizes
* Having trouble determining the number of table
* so it's hardcode to 16 and 31 for the First VESA table
* and the Second Vesa Table respectively
*/
NV_MODELINE *mode_ptr =(NV_MODELINE *)map->mode_table;
NV_MODELINE_2 *mode_2_ptr =(NV_MODELINE_2 *)map->nv_mode_table_2;
map->modeline_num = 16;
map->nv_modeline_num_2 = 31;
/*NV_MODELINE_2 *mode_2_ptr =(NV_MODELINE_2 *)map->nv_mode_table_2;
map->modeline_num = map->nv_modeline_num_2 = 0;
//First Table
while ((mode_ptr[map->modeline_num].reserved3 & 0xff) == 0xff)
map->modeline_num++;
map->modeline_num = std_vesa->sHeader.usTableSize;
verbose("First VESA Table has %d modes\n",map->modeline_num);
PRINT("First VESA Table has %d modes\n",map->modeline_num);
if (map->modeline_num == 0) {
verbose("%d is incorrect, make it a 16\n",map->modeline_num);
PRINT("%d is incorrect, make it a 16\n",map->modeline_num);
map->modeline_num = 16;
}
map->mode_table_size = map->modeline_num * sizeof(NV_MODELINE);
//Second Table
while (mode_2_ptr[map->nv_modeline_num_2].h_disp <= 0x800)
map->nv_modeline_num_2++;
map->nv_modeline_num_2 = *((UInt8 *)(mode_2_ptr - 2)) - 32;
printf("Second VESA Table has %d modes\n",map->nv_modeline_num_2);
PRINT("Second VESA Table has %d modes\n",map->nv_modeline_num_2);
if (map->nv_modeline_num_2 == 0) {
verbose("%d is incorrect, make it a 32\n",map->nv_modeline_num_2);
PRINT("%d is incorrect, make it a 32\n",map->nv_modeline_num_2);
map->nv_modeline_num_2 = 32;
}
map->nv_mode_table_2_size = map->nv_modeline_num_2 * sizeof(NV_MODELINE_2);
map->nv_mode_table_2_size = map->nv_modeline_num_2 * sizeof(NV_MODELINE_2);*/
return map;
}
if (Type == MAIN_VESA_TABLE) {
NV_MODELINE * mode_timing = (NV_MODELINE *) map->mode_table;
if ((mode_timing[idx].reserved3 & 0xff) != 0xff) return FALSE;
if ((*x != 0) && (*y != 0) && ( mode_timing[idx].usH_Active >= 640 )) {
verbose("Mode %dx%d -> %dx%d ", mode_timing[idx].usH_Active, mode_timing[idx].usV_Active,
PRINT("Mode %dx%d -> %dx%d ", mode_timing[idx].usH_Active, mode_timing[idx].usV_Active,
*x, *y);
generic_modeline modeline;
if ((*x != 0) && (*y != 0) && ( mode_timing[idx].h_disp >= 640 )) {
verbose("Mode %dx%d -> %dx%d ", mode_timing[idx].h_disp, mode_timing[idx].v_disp,
PRINT("Mode %dx%d -> %dx%d ", mode_timing[idx].h_disp, mode_timing[idx].v_disp,
*x, *y);
generic_modeline modeline;
branches/autoResolution/i386/libsaio/gma_resolution.c
4646
4747
4848
49
49
5050
5151
5252
......
7373
7474
7575
76
77
78
76
77
78
7979
8080
8181
8282
8383
84
85
8486
8587
8688
......
9395
9496
9597
98
9699
97100
98101
......
101104
102105
103106
107
104108
105109
106110
111
107112
108113
109114
115
110116
111117
112
113
114
118
119
120
115121
116122
117123
......
131137
132138
133139
134
140
135141
136142
137143
......
160166
161167
162168
163
169
164170
165171
166172
......
202208
203209
204210
205
211
206212
207213
208214
}
}
/*printf("r1 = %d r2 = %d\n", r1, r2);*/
/*PRINT("r1 = %d r2 = %d\n", r1, r2);*/
}
return (r2-r1-6) % entry_size == 0;
}
if (map->mode_table == 0) {
verbose("Unable to locate the mode table.\n");
verbose("Please run the program 'dump_bios' as root and\n");
verbose("email the file 'vbios.dmp' to gaeloulacuisse@yahoo.fr.\n");
PRINT("Unable to locate the mode table.\n");
PRINT("Please run the program 'dump_bios' as root and\n");
PRINT("email the file 'vbios.dmp' to gaeloulacuisse@yahoo.fr.\n");
close_vbios(map);
return 0;
}
PRINT("Mode Table at offset : 0x%x\n", ((unsigned char *)map->mode_table) - map->bios_ptr);
/*
* Determine size of mode table
*/
}
map->modeline_num = map->mode_table_size;
PRINT("Mode Table size : %d\n", map->modeline_num);
/*
* Figure out what type of bios we have
if (detect_bios_type(map, TRUE, sizeof(vbios_modeline_type3))) {
map->bios = BT_3;
PRINT("Bios Type : BT_3\n");
}
else if (detect_bios_type(map, TRUE, sizeof(vbios_modeline_type2))) {
map->bios = BT_2;
PRINT("Bios Type : BT_2\n");
}
else if (detect_bios_type(map, FALSE, sizeof(vbios_resolution_type1))) {
map->bios = BT_1;
PRINT("Bios Type : BT_1\n");
}
else {
verbose("Unable to determine bios type.\n");
verbose("Please run the program 'dump_bios' as root and\n");
verbose("email the file 'vbios.dmp' to gaeloulacuisse@yahoo.fr.\n");
PRINT("Unable to determine bios type.\n");
PRINT("Please run the program 'dump_bios' as root and\n");
PRINT("email the file 'vbios.dmp' to gaeloulacuisse@yahoo.fr.\n");
return 0;
}
if ((*x != 0) && (*y != 0) && ( actual_x >= 640 )) {
printf("Mode %dx%d -> %dx%d ", actual_x, actual_y, *x, *y);
PRINT("Mode %dx%d -> %dx%d \n", actual_x, actual_y, *x, *y);
res->x2 = (res->x2 & 0x0f) | ((*x >> 4) & 0xf0);
res->x1 = (*x & 0xff);
if ((*x != 0) && (*y != 0) && ((res->modelines[0].x1 + 1) >= 640 )) {
printf("Mode %dx%d -> %dx%d ", res->modelines[0].x1 + 1, res->modelines[0].y1 + 1, *x, *y);
PRINT("Mode %dx%d -> %dx%d \n", res->modelines[0].x1 + 1, res->modelines[0].y1 + 1, *x, *y);
res->xchars = *x / 8;
res->ychars = *y / 16 - 1;
if ((*x != 0) && (*y != 0) && ((res->modelines[0].x1 + 1) >= 640 )) {
printf("Mode %dx%d -> %dx%d ", res->modelines[0].x1 + 1, res->modelines[0].y1 + 1, *x, *y);
PRINT("Mode %dx%d -> %dx%d \n", res->modelines[0].x1 + 1, res->modelines[0].y1 + 1, *x, *y);
xprev = res->modelines[0].x1;
yprev = res->modelines[0].y1;
branches/autoResolution/i386/boot0/Makefile
66
77
88
9
9
1010
1111
1212
INSTALLDIR = $(DSTROOT)/usr/standalone/i386
DIRS_NEEDED = $(SYMROOT)
all embedtheme: $(DIRS_NEEDED) boot0 boot0hfs chain0
all embedtheme autores_dbg: $(DIRS_NEEDED) boot0 boot0hfs chain0
boot0: boot0.s Makefile $(NASM)
$(NASM) boot0.s -o $(SYMROOT)/$@
branches/autoResolution/i386/boot1/Makefile
1717
1818
1919
20
20
2121
2222
2323
MKDIRS = /bin/mkdir -p
endif
all embedtheme: $(DIRS_NEEDED) $(VERSIONED_FILES)
all embedtheme autores_dbg: $(DIRS_NEEDED) $(VERSIONED_FILES)
boot1h: boot1.s Makefile
$(NASM) boot1.s -o $(SYMROOT)/boot1h
branches/autoResolution/i386/boot2/boot.c
361361
362362
363363
364
364
365365
366366
367367
patch_vbios(map, params[0], params[1], params[2], 0, 0);
relock_vbios(map);
#if DEBUG
#if AUTORES_DEBUG
printf("Press Any Key...\n");
getc();
#endif
branches/autoResolution/i386/boot2/gui.c
8080
8181
8282
83
84
85
86
87
88
89
90
91
92
83
84
85
86
87
88
89
90
91
92
9393
9494
9595
9696
97
98
97
98
9999
100100
101101
102
103
102
103
104104
105
106
107
105
106
107
108108
109
109
110110
111111
112112
113113
114114
115
116
115
116
117117
118118
119119
};
image_t images[] = {
{.name = "background",.image = NULL},
{.name = "logo",.image = NULL},
{.name = "device_generic",.image = NULL},
{.name = "device_hfsplus",.image = NULL},
{.name = "device_ext3",.image = NULL},
{.name = "device_fat16",.image = NULL},
{.name = "device_fat32",.image = NULL},
{.name = "device_ntfs",.image = NULL},
{.name = "device_cdrom",.image = NULL},
{.name = "background",.image = NULL},
{.name = "logo",.image = NULL},
{.name = "device_generic",.image = NULL},
{.name = "device_hfsplus",.image = NULL},
{.name = "device_ext3",.image = NULL},
{.name = "device_fat16",.image = NULL},
{.name = "device_fat32",.image = NULL},
{.name = "device_ntfs",.image = NULL},
{.name = "device_cdrom",.image = NULL},
{.name = "device_selection",.image = NULL},
{.name = "device_scroll_prev",.image = NULL},
{.name = "device_scroll_next",.image = NULL},
{.name = "menu_boot",.image = NULL},
{.name = "menu_verbose",.image = NULL},
{.name = "menu_boot",.image = NULL},
{.name = "menu_verbose",.image = NULL},
{.name = "menu_ignore_caches",.image = NULL},
{.name = "menu_single_user",.image = NULL},
{.name = "menu_memory_info",.image = NULL},
{.name = "menu_video_info",.image = NULL},
{.name = "menu_help",.image = NULL},
{.name = "menu_video_info",.image = NULL},
{.name = "menu_help",.image = NULL},
{.name = "menu_verbose_disabled",.image = NULL},
{.name = "menu_ignore_caches_disabled",.image = NULL},
{.name = "menu_single_user_disabled",.image = NULL},
{.name = "menu_selection",.image = NULL},
{.name = "menu_ignore_caches_disabled",.image = NULL},
{.name = "menu_single_user_disabled",.image = NULL},
{.name = "menu_selection",.image = NULL},
{.name = "progress_bar",.image = NULL},
{.name = "progress_bar",.image = NULL},
{.name = "progress_bar_background",.image = NULL},
{.name = "text_scroll_prev",.image = NULL},
{.name = "text_scroll_next",.image = NULL},
{.name = "font_console",.image = NULL},
{.name = "font_small",.image = NULL},
{.name = "font_console",.image = NULL},
{.name = "font_small",.image = NULL},
};
int imageCnt = 0;
branches/autoResolution/i386/boot2/Makefile
6161
6262
6363
64
65
66
6467
6568
6669
embedtheme: CFLAGS += -DEMBED_THEME
embedtheme: art.h all
autores_dbg: CFLAGS += -DAUTORES_DEBUG
autores_dbg: all
boot: machOconv embedded.h $(OBJS) $(LIBDEP)
$(LD) -static -Wl,-preload -Wl,-segaddr,__INIT,$(BOOT2ADDR) \
-nostdlib -arch i386 -Wl,-segalign,20 \
branches/autoResolution/i386/cdboot/Makefile
66
77
88
9
9
1010
1111
1212
INSTALLDIR = $(DSTROOT)/usr/standalone/i386
DIRS_NEEDED = $(SYMROOT)
all embedtheme: $(DIRS_NEEDED) cdboot
all embedtheme autores_dbg: $(DIRS_NEEDED) cdboot
cdboot: cdboot.s $(SYMROOT)/boot Makefile $(NASM)
$(NASM) cdboot.s -o $(SYMROOT)/cdboot
branches/autoResolution/i386/libsa/Makefile
4242
4343
4444
45
45
4646
4747
4848
LIBS = libsa.a
DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
all embedtheme: $(DIRS_NEEDED) $(LIBS)
all embedtheme autores_dbg: $(DIRS_NEEDED) $(LIBS)
libsa.a: $(SA_OBJS)
rm -f $(SYMROOT)/$(@F)
branches/autoResolution/i386/Makefile
2828
2929
3030
31
31
3232
3333
3434
# The order of building is important.
SUBDIRS = util libsa libsaio boot2 boot1 boot0 cdboot
all embedtheme tags debug install installhdrs:
all embedtheme autores_dbg tags debug install installhdrs:
@for i in ${SUBDIRS}; \
do \
echo ================= make $@ for $$i =================; \
branches/autoResolution/i386/util/Makefile
2424
2525
2626
27
27
2828
2929
3030
DIRS_NEEDED = $(OBJROOT) $(SYMROOT) $(LANGDIR)
all embedtheme: $(DIRS_NEEDED) $(PROGRAMS)
all embedtheme autores_dbg: $(DIRS_NEEDED) $(PROGRAMS)
machOconv: machOconv.o
$(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) machOconv.o

Archive Download the corresponding diff file

Revision: 137