Chameleon

Chameleon Commit Details

Date:2014-08-03 23:33:27 (9 years 7 months ago)
Author:MacMan
Commit:2392
Parents: 2391
Message:Adding missing files from trunk merge
Changes:
M/branches/Chimera/i386/libsaio/bootstruct.c
M/branches/Chimera/i386/modules/AcpiCodec/acpi_codec.c
M/branches/Chimera/package/buildpkg.sh
M/branches/Chimera/i386/libsaio/pci.c
M/branches/Chimera/i386/libsaio/nvidia.h
M/branches/Chimera/package/Resources/templates/Localizable.strings
M/branches/Chimera/i386/libsaio/acpi.h
M/branches/Chimera/i386/libsaio/msdos.c
M/branches/Chimera/package/Scripts.templates/Pre/preinstall
M/branches/Chimera/i386/libsaio/Makefile
M/branches/Chimera/i386/libsaio/xml.c
M/branches/Chimera/i386/libsaio/console.c
M/branches/Chimera/i386/boot2/graphics.c
M/branches/Chimera/i386/libsaio/xml.h
M/branches/Chimera/i386/libsaio/fdisk.h
M/branches/Chimera/Make.rules
M/branches/Chimera/i386/modules/Cconfig
M/branches/Chimera/package/OptionalSettings/KernelFlags.txt
M/branches/Chimera/i386/modules/Makefile
M/branches/Chimera/i386/libsaio/ati.h
M/branches/Chimera/package/Scripts.templates/Post/postinstall
M/branches/Chimera/i386/boot2/prompt.c
M/branches/Chimera/i386/libsaio/memvendors.h
M/branches/Chimera/package/OptionalSettings/Resolution.txt
M/branches/Chimera/version
M/branches/Chimera/i386/libsaio/pci_setup.c
M/branches/Chimera/i386/util/bdmesg.c
M/branches/Chimera/package/bin/po4a/lib/Locale/Po4a/Xml.pm
M/branches/Chimera/i386/libsaio/smbios_getters.h
M/branches/Chimera/package/OptionalSettings/General.txt
M/branches/Chimera/i386/boot2/boot.c
M/branches/Chimera/i386/modules/klibc/Makefile

File differences

branches/Chimera/version
1
1
2.2.0
2.2svn
branches/Chimera/i386/libsaio/smbios_getters.h
3535
3636
3737
38
3839
3940
4041
extern bool getSMBOemProcessorBusSpeed(returnType *value);
extern bool getSMBOemProcessorType(returnType *value);
extern bool getSMBMemoryDeviceMemoryType(returnType *value);
extern bool getSMBMemoryDeviceMemoryErrorHandle(returnType *value);
extern bool getSMBMemoryDeviceMemorySpeed(returnType *value);
extern bool getSMBMemoryDeviceManufacturer(returnType *value);
extern bool getSMBMemoryDeviceSerialNumber(returnType *value);
branches/Chimera/i386/libsaio/xml.c
4646
4747
4848
49
49
5050
5151
5252
......
788788
789789
790790
791
792
791
792
793793
794794
795795
......
11761176
11771177
11781178
1179
11791180
11801181
11811182
}
tmp = tmp->next;
}
string_ref* new_ref = malloc(sizeof(string_ref));
new_ref->string = malloc(strlen(string)+1);
sprintf(new_ref->string, "%s", string);
//printf("ParseTagData unimplimented\n");
//printf("Data: %s\n", buffer);
//getchar();
char* string = BASE64Decode(buffer, strlen(buffer), &actuallen);
char* string = BASE64Decode(buffer, strlen(buffer), &actuallen);
tmpTag->type = kTagTypeData;
tmpTag->string = string;
tmpTag->tag = 0;
return NULL;
}
long XMLCastStringOffset(TagPtr dict)
{
if(dict && ((dict->type == kTagTypeString) || (dict->type == kTagTypeKey))) {
branches/Chimera/i386/libsaio/console.c
9191
9292
9393
94
94
9595
9696
9797
msgbuf = malloc(BOOTER_LOG_SIZE);
bzero(msgbuf, BOOTER_LOG_SIZE);
cursor = msgbuf;
msglog("%s\n", "Chimera " I386BOOT_CHAMELEONVERSION " (svn-r" I386BOOT_CHAMELEONREVISION ")" " [" I386BOOT_BUILDDATE "]");
msglog("%s\n", "Chameleon " I386BOOT_CHAMELEONVERSION " (svn-r" I386BOOT_CHAMELEONREVISION ")" " [" I386BOOT_BUILDDATE "]");
}
void msglog(const char * fmt, ...)
branches/Chimera/i386/libsaio/xml.h
107107
108108
109109
110
110111
111112
112113
bool XMLIsArray (TagPtr entry);
bool XMLIsData (TagPtr entry);
bool XMLAddTagToDictionary(TagPtr dict, char* key, TagPtr value);
long XMLParseNextTag(char *buffer, TagPtr *tag);
branches/Chimera/i386/libsaio/bootstruct.c
185185
186186
187187
188
188
189189
190190
191191
DT__FlattenDeviceTree((void **)&addr, &size);
bootArgs->deviceTreeP = (uint32_t)addr;
bootArgs->deviceTreeLength = size;
// Copy BootArgs values to older structure
memcpy(&bootArgsPreLion->CommandLine, &bootArgs->CommandLine, BOOT_LINE_LENGTH);
branches/Chimera/i386/libsaio/Makefile
3737
3838
3939
40
40
4141
4242
4343
smbios.o smbios_getters.o smbios_decode.o \
fake_efi.o ext2fs.o \
hpet.o dram_controllers.o spd.o usb.o pci_setup.o \
device_inject.o nvidia_helper.o nvidia.o ati.o gma.o pci_root.o \
device_inject.o nvidia_helper.o nvidia.o ati.o gma.o hda.o pci_root.o \
convert.o aml_generator.o console.o exfat.o base64-decode.o
SAIO_OBJS := $(addprefix $(OBJROOT)/, $(SAIO_OBJS))
branches/Chimera/i386/libsaio/memvendors.h
11
22
33
4
4
55
66
77
88
99
10
11
12
13
10
11
12
13
14
1415
1516
1617
/*
* Memory module vendors as published by JEDEC 106AA
*
* Special thanks to indi, memtest and theking for the table
* Special thanks to iNDi, memtest and THeKiNG for the table
*
*/
#ifndef __MEMVEN_H
#define __MEMVEN_H
typedef struct _vidTag {
uint8_t bank;
uint8_t code;
const char* name;
typedef struct _vidTag
{
uint8_tbank;
uint8_tcode;
const char*name;
} VenIdName;
VenIdName vendorMap[] = {
branches/Chimera/i386/libsaio/fdisk.h
5353
5454
5555
56
56
5757
5858
5959
#define FDISK_LINUX0x83 /* Linux native */
#define FDISK_OPENBSD0xa6 /* OpenBSD FFS partition */
#define FDISK_FREEBSD0xa5 /* FreeBSD UFS2 partition */
#define FDISK_BEFS 0xeb /* Haiku BeFS partition */
#define FDISK_BEFS0xeb /* Haiku BeFS partition */
#define FDISK_UFS0xa8/* Apple UFS partition */
#define FDISK_HFS0xaf/* Apple HFS partition */
#define FDISK_BOOTER0xab/* Apple booter partition */
branches/Chimera/i386/libsaio/nvidia.h
5252
5353
5454
55
5556
5657
57
58
5859
5960
61
6062
6163
6264
bool setup_nvidia_devprop(pci_dt_t *nvda_dev);
struct nvidia_pci_info_t;
typedef struct {
uint32_t device; // VendorID + DeviceID
char *name;
char *name;
} nvidia_pci_info_t;
struct nvidia_card_info_t;
typedef struct {
uint32_t device; // VendorID + DeviceID
uint32_t subdev; // SubdeviceID + SubvendorID
branches/Chimera/i386/libsaio/acpi.h
2020
2121
2222
23
24
25
26
27
28
29
30
31
32
23
24
25
26
27
28
29
30
31
32
33
3334
3435
3536
36
37
38
39
40
41
42
43
44
45
37
38
39
40
41
42
43
44
45
46
47
4648
4749
4850
49
50
51
52
53
54
55
56
57
58
51
52
53
54
55
56
57
58
59
60
61
5962
6063
6164
62
63
64
65
66
67
68
69
70
71
65
66
67
68
69
70
71
72
73
74
75
7276
7377
7478
75
76
77
78
79
80
81
82
83
84
79
80
81
82
83
84
85
86
87
88
89
8590
8691
8792
88
89
90
91
92
93
94
95
96
97
98
99
100
101
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
102108
103109
104110
/* Per ACPI 3.0a spec */
// TODO Migrate
struct acpi_2_rsdp {
char Signature[8];
uint8_t Checksum;
char OEMID[6];
uint8_t Revision;
uint32_t RsdtAddress;
uint32_t Length;
uint64_t XsdtAddress;
uint8_t ExtendedChecksum;
char Reserved[3];
struct acpi_2_rsdp
{
charSignature[8];
uint8_tChecksum;
charOEMID[6];
uint8_tRevision;
uint32_tRsdtAddress;
uint32_tLength;
uint64_tXsdtAddress;
uint8_tExtendedChecksum;
charReserved[3];
} __attribute__((packed));
// TODO Migrate
struct acpi_2_rsdt {
char Signature[4];
uint32_t Length;
uint8_t Revision;
uint8_t Checksum;
char OEMID[6];
char OEMTableId[8];
uint32_t OEMRevision;
uint32_t CreatorId;
uint32_t CreatorRevision;
struct acpi_2_rsdt
{
charSignature[4];
uint32_tLength;
uint8_tRevision;
uint8_tChecksum;
charOEMID[6];
charOEMTableId[8];
uint32_tOEMRevision;
uint32_tCreatorId;
uint32_tCreatorRevision;
} __attribute__((packed));
// TODO Migrate
struct acpi_2_xsdt {
char Signature[4];
uint32_t Length;
uint8_t Revision;
uint8_t Checksum;
char OEMID[6];
char OEMTableId[8];
uint32_t OEMRevision;
uint32_t CreatorId;
uint32_t CreatorRevision;
struct acpi_2_xsdt
{
charSignature[4];
uint32_tLength;
uint8_tRevision;
uint8_tChecksum;
charOEMID[6];
charOEMTableId[8];
uint32_tOEMRevision;
uint32_tCreatorId;
uint32_tCreatorRevision;
} __attribute__((packed));
// TODO Migrate
struct acpi_2_ssdt {
char Signature[4];
uint32_t Length;
uint8_t Revision;
uint8_t Checksum;
char OEMID[6];
char OEMTableId[8];
uint32_t OEMRevision;
uint32_t CreatorId;
uint32_t CreatorRevision;
struct acpi_2_ssdt
{
charSignature[4];
uint32_tLength;
uint8_tRevision;
uint8_tChecksum;
charOEMID[6];
charOEMTableId[8];
uint32_tOEMRevision;
uint32_tCreatorId;
uint32_tCreatorRevision;
} __attribute__((packed));
// TODO Migrate
struct acpi_2_dsdt {
char Signature[4];
uint32_t Length;
uint8_t Revision;
uint8_t Checksum;
char OEMID[6];
char OEMTableId[8];
uint32_t OEMRevision;
uint32_t CreatorId;
uint32_t CreatorRevision;
struct acpi_2_dsdt
{
charSignature[4];
uint32_tLength;
uint8_tRevision;
uint8_tChecksum;
charOEMID[6];
charOEMTableId[8];
uint32_tOEMRevision;
uint32_tCreatorId;
uint32_tCreatorRevision;
} __attribute__((packed));
// TODO Migrate
struct acpi_2_fadt {
char Signature[4];
uint32_t Length;
uint8_t Revision;
uint8_t Checksum;
char OEMID[6];
char OEMTableId[8];
uint32_t OEMRevision;
uint32_t CreatorId;
uint32_t CreatorRevision;
uint32_t FIRMWARE_CTRL;
uint32_t DSDT;
uint8_t Model;// JrCs
uint8_t PM_Profile;// JrCs
struct acpi_2_fadt
{
charSignature[4];
uint32_tLength;
uint8_tRevision;
uint8_tChecksum;
charOEMID[6];
charOEMTableId[8];
uint32_tOEMRevision;
uint32_tCreatorId;
uint32_tCreatorRevision;
uint32_tFIRMWARE_CTRL;
uint32_tDSDT;
uint8_tModel;// JrCs
uint8_tPM_Profile;// JrCs
uint16_tSCI_Interrupt;
uint32_tSMI_Command_Port;
uint8_tACPI_Enable;
branches/Chimera/i386/libsaio/ati.h
9696
9797
9898
99
100
101
99
100
101
102102
103
104
105
106
107
103108
104109
105110
......
193198
194199
195200
196
197
201
202
198203
199
204
200205
201206
202207
......
210215
211216
212217
213
218
214219
215
216
217
218
219
220
221
222
223
224
225
220
221
222
223
224
225
226
227
228
229
230
226231
227232
228233
/* Southern Islands */
CHIP_FAMILY_TAHITI,
CHIP_FAMILY_PITCAIRN,
CHIP_FAMILY_VERDE,
CHIP_FAMILY_THAMES,
CHIP_FAMILY_LOMBOK,
CHIP_FAMILY_VERDE,
CHIP_FAMILY_THAMES,
CHIP_FAMILY_LOMBOK,
//CHIP_FAMILY_NEWZEALAND,
CHIP_FAMILY_SUMO,
CHIP_FAMILY_MANHATTAN,
CHIP_FAMILY_VANCOUVER,
CHIP_FAMILY_WRESTLER,
CHIP_FAMILY_TRINITY,
CHIP_FAMILY_LAST
} ati_chip_family_t;
//radeon card (includes teh AtiConfig)
typedef struct {
uint16_tdevice_id;
uint32_tsubsys_id;
uint16_tdevice_id;
uint32_tsubsys_id;
ati_chip_family_tchip_family;
const char*model_name;
const char*model_name;
ati_config_name_tcfg_name;
} radeon_card_info_t;
} dev_prop_t;
typedef struct {
struct DevPropDevice*device;
struct DevPropDevice*device;
radeon_card_info_t*info;
pci_dt_t*pci_dev;
uint8_t*fb;
uint8_t*mmio;
uint8_t*io;
uint8_t*rom;
uint64_trom_size;
uint64_tvram_size;
const char*cfg_name;
uint8_tports;
uint32_tflags;
boolposted;
pci_dt_t*pci_dev;
uint8_t*fb;
uint8_t*mmio;
uint8_t*io;
uint8_t*rom;
uint64_trom_size;
uint64_tvram_size;
const char*cfg_name;
uint8_tports;
uint32_tflags;
boolposted;
} card_t;
branches/Chimera/i386/libsaio/pci_setup.c
44
55
66
7
78
89
910
1011
12
13
14
1115
1216
1317
......
1721
1822
1923
20
24
2125
2226
23
27
2428
2529
2630
27
31
2832
2933
3034
......
3438
3539
3640
37
38
41
42
43
44
3945
4046
4147
4248
49
4350
51
4452
45
53
4654
47
55
56
4857
4958
5059
51
60
61
62
63
64
65
66
67
5268
53
69
5470
55
71
72
73
74
75
76
77
78
5679
57
58
59
80
81
82
83
84
85
86
87
88
89
6090
91
6192
93
94
95
96
97
98
99
62100
63
64
65
66
67101
68102
69103
......
71105
72106
73107
108
74109
110
75111
76112
77113
#include "pci.h"
#include "gma.h"
#include "nvidia.h"
#include "hda.h"
#include "modules.h"
extern bool setup_ati_devprop(pci_dt_t *ati_dev);
extern bool setup_nvidia_devprop(pci_dt_t *nvda_dev);
extern bool setup_gma_devprop(pci_dt_t *gma_dev);
extern bool setup_hda_devprop(pci_dt_t *hda_dev);
extern void set_eth_builtin(pci_dt_t *eth_dev);
extern void notify_usb_dev(pci_dt_t *pci_dev);
extern void force_enable_hpet(pci_dt_t *lpc_dev);
void setup_pci_devs(pci_dt_t *pci_dt)
{
char *devicepath;
bool do_eth_devprop, do_gfx_devprop, do_enable_hpet, do_igp_devprop;
bool doit, do_eth_devprop, do_gfx_devprop, do_enable_hpet, do_hda_devprop;
pci_dt_t *current = pci_dt;
do_eth_devprop = do_gfx_devprop = do_enable_hpet = false;
do_eth_devprop = do_gfx_devprop = do_enable_hpet = do_hda_devprop = false;
getBoolForKey(kEthernetBuiltIn, &do_eth_devprop, &bootInfo->chameleonConfig);
getBoolForKey(kGraphicsEnabler, &do_gfx_devprop, &bootInfo->chameleonConfig);
getBoolForKey(kIGPEnabler, &do_igp_devprop, &bootInfo->chameleonConfig);
getBoolForKey(kHDAEnabler, &do_hda_devprop, &bootInfo->chameleonConfig);
getBoolForKey(kForceHPET, &do_enable_hpet, &bootInfo->chameleonConfig);
while (current)
switch (current->class_id)
{
case PCI_CLASS_BRIDGE_HOST:
if (current->dev.addr == PCIADDR(0, 0, 0))
dram_controller_dev = current;
if (current->dev.addr == PCIADDR(0, 0, 0))
{
dram_controller_dev = current;
}
break;
case PCI_CLASS_NETWORK_ETHERNET:
if (do_eth_devprop)
{
set_eth_builtin(current);
}
break;
case PCI_CLASS_DISPLAY_VGA:
if (do_gfx_devprop){
if (do_gfx_devprop)
{
switch (current->vendor_id)
{
case PCI_VENDOR_ID_ATI:
setup_ati_devprop(current);
if (getBoolForKey(kSkipAtiGfx, &doit, &bootInfo->chameleonConfig) && doit)
{
verbose("Skip ATi/AMD gfx device!\n");
}
else
{
setup_ati_devprop(current);
}
break;
case PCI_VENDOR_ID_INTEL:
setup_gma_devprop(current);
if (getBoolForKey(kSkipIntelGfx, &doit, &bootInfo->chameleonConfig) && doit)
{
verbose("Skip Intel gfx device!\n");
}
else
{
setup_gma_devprop(current);
}
break;
case PCI_VENDOR_ID_NVIDIA:
setup_nvidia_devprop(current);
case PCI_VENDOR_ID_NVIDIA:
if (getBoolForKey(kSkipNvidiaGfx, &doit, &bootInfo->chameleonConfig) && doit)
{
verbose("Skip Nvidia gfx device!\n");
}
else
{
setup_nvidia_devprop(current);
}
break;
}
}
break;
case PCI_CLASS_MULTIMEDIA_AUDIO_DEV:
if (do_hda_devprop)
{
setup_hda_devprop(current);
}
break;
} else if (do_igp_devprop){
setup_gma_devprop(current);
break;
}
case PCI_CLASS_SERIAL_USB:
notify_usb_dev(current);
case PCI_CLASS_BRIDGE_ISA:
if (do_enable_hpet)
{
force_enable_hpet(current);
}
break;
}
branches/Chimera/i386/libsaio/pci.c
9191
9292
9393
94
94
9595
96
96
9797
9898
9999
......
128128
129129
130130
131
131132
133
132134
133135
134136
new->dev.addr= pci_addr;
new->vendor_id= id & 0xffff;
new->device_id= (id >> 16) & 0xffff;
new->progif = pci_config_read8(pci_addr, PCI_CLASS_PROG);
new->progif= pci_config_read8(pci_addr, PCI_CLASS_PROG);
new->revision_id= pci_config_read8(pci_addr, PCI_CLASS_REVISION);
new->subsys_id.subsys_id= pci_config_read32(pci_addr, PCI_SUBSYSTEM_VENDOR_ID);
new->subsys_id.subsys_id= pci_config_read32(pci_addr, PCI_SUBSYSTEM_VENDOR_ID);
new->class_id= pci_config_read16(pci_addr, PCI_CLASS_DEVICE);
//new->subclass_id= pci_config_read16(pci_addr, PCI_SUBCLASS_DEVICE);
new->parent= start;
id = pci_config_read16(PCIADDR(0, 0x00, 0), 0x00);
/* make sure we're on Intel chipset */
if (id != 0x8086)
{
return;
}
rcba = pci_config_read32(PCIADDR(0, 0x1f, 0), 0xf0) & ~1; //this is LPC host
fd = (uint32_t *)(rcba + 0x3418);
/* set SMBus Disable (SD) to 0 */
branches/Chimera/i386/libsaio/msdos.c
754754
755755
756756
757
757
758758
759759
760760
......
815815
816816
817817
818
818
819819
820820
821821
......
881881
882882
883883
884
884
885885
886886
887887
*flags = kFileTypeFlat;
// Calculate a fake timestamp using modification date and time values.
*time = (dirp->deMDate & 0x7FFF) << 16 + dirp->deMTime;
*time = ((dirp->deMDate & 0x7FFF) << 16) + dirp->deMTime;
if (infoValid)
*infoValid = 1;
toread-=msdosclustersize;
}
getDeviceDescription(ih, devStr);
getDeviceDescription(ih, devStr);
verbose("Read FAT%d file: [%s/%s] %d bytes.\n",
msdosfatbits, devStr, filePath, (uint32_t)( toread<0 ) ? wastoread : wastoread-toread);
free (buf);
long MSDOSLoadFile(CICell ih, char * filePath)
{
return MSDOSReadFile(ih, filePath, (void *)gFSLoadAddress, 0, 0);
return MSDOSReadFile(ih, filePath, (void *)gFSLoadAddress, 0, 0);
}
/* Fix up volume label. */
branches/Chimera/i386/boot2/graphics.c
4242
4343
4444
45
45
4646
4747
4848
uint8_t *previewSaveunder = 0;
#define VIDEO(x) (bootArgs->Video.v_ ## x)
//==========================================================================
// getVBEVideoRam
branches/Chimera/i386/boot2/prompt.c
2828
2929
3030
31
31
3232
3333
3434
#include <vers.h>
char bootBanner[] = "\nDarwin/x86 boot v" I386BOOT_VERSION " - Chimera v" I386BOOT_CHAMELEONVERSION " r" I386BOOT_CHAMELEONREVISION "\n"
char bootBanner[] = "\nDarwin/x86 boot v" I386BOOT_VERSION " - Chameleon v" I386BOOT_CHAMELEONVERSION " r" I386BOOT_CHAMELEONREVISION "\n"
"Build date: " I386BOOT_BUILDDATE "\n"
"%dMB memory\n";
branches/Chimera/i386/boot2/boot.c
198198
199199
200200
201
202
201
202
203203
204204
205205
......
237237
238238
239239
240
240
241241
242
242
243243
244
245
244
245
246246
247
247
248248
249249
250250
// Jump to kernel's entry point. There's no going back now.
if ((checkOSVersion("10.7")) || (checkOSVersion("10.8")) || (checkOSVersion("10.9")))
{
{
// Notify modules that the kernel is about to be started
execute_hook("Kernel Start", (void*)kernelEntry, (void*)bootArgs, NULL, NULL);
// Use specify kernel cache file if not empty
if (cacheFile[0] != 0)
{
{
strlcpy(kernelCacheFile, cacheFile, sizeof(kernelCacheFile));
}
}
else
{
// Lion, Mountain Lion and Mavericks prelink kernel cache file
{
// Lion, Mountain Lion and Mavericks prelink kernel cache file
if ((checkOSVersion("10.7")) || (checkOSVersion("10.8")) || (checkOSVersion("10.9")))
{
{
snprintf(kernelCacheFile, sizeof(kernelCacheFile), "%skernelcache", kDefaultCachePathSnow);
}
// Snow Leopard prelink kernel cache file
branches/Chimera/i386/modules/klibc/Makefile
11
2
2
33
44
55
MODULE_NAME = klibc
MODULE_DESCRIPTION = Provides a standard c library to link to if the library provided by Chameleon is insufficient.
MODULE_DESCRIPTION = This module provides a standard c library for modules to link to if the library provided by chameleon is insufficient. This is currently only used by the uClibc++ library.
MODULE_AUTHOR =
MODULE_VERSION = "1.5.20"
MODULE_COMPAT_VERSION = "1.5.20"
branches/Chimera/i386/modules/Cconfig
1010
1111
1212
13
14
15
16
1317
source "i386/modules/Sata/Cconfig"
source "i386/modules/Keylayout/Cconfig"
source "i386/modules/AcpiCodec/Cconfig"
source "i386/modules/KernelPatcher/Cconfig"
#source "i386/modules/KextPatcher/Cconfig"
source "i386/modules/FileNVRAM/Cconfig"
#source "i386/modules/HDAEnabler/Cconfig"
endmenu
branches/Chimera/i386/modules/AcpiCodec/acpi_codec.c
17691769
17701770
17711771
1772
1773
1772
1773
17741774
17751775
17761776
1777
1777
17781778
17791779
17801780
{
{
TagPtr CstateTag = NULL;
U32 entry_count = 0;
TagPtr CstateTag = NULL;
U32 entry_count = 0;
if (bootInfo->chameleonConfig.dictionary)
{
CstateTag = XMLCastDict(XMLGetProperty(bootInfo->chameleonConfig.dictionary, (const char*)"C-States"));
CstateTag = XMLCastDict(XMLGetProperty(bootInfo->chameleonConfig.dictionary, (const char*)"C-States"));
}
if (CstateTag)
branches/Chimera/i386/modules/Makefile
1111
1212
1313
14
1415
1516
1617
......
4041
4142
4243
44
45
46
47
48
49
50
51
52
53
54
55
4356
4457
4558
4659
4760
4861
62
4963
5064
5165
include ${SRCROOT}/Make.rules
# The order of building modules is important.
SUBDIRS = KernelPatcher
ifdef CONFIG_KLIBC_MODULE
SUBDIRS += klibc
SUBDIRS += AcpiCodec
endif
ifdef CONFIG_FILENVRAM_MODULE
SUBDIRS += FileNVRAM
endif
#ifdef CONFIG_KEXTPATCHER_MODULE
#SUBDIRS += KextPatcher
#endif
#ifdef CONFIG_HDAENABLER_MODULE
#SUBDIRS += HDAEnabler
#endif
CFLAGS= -O3 $(MORECPP) -arch i386 -g -static
DEFINES=
CONFIG = hd
LIBSAIODIR = $(SRCROOT)/i386/libsaio
INC = -I$(LIBSAIODIR)
ifeq (${CONFIG_MODULES}, y)
all: $(SYMROOT) $(OBJROOT) objroot_dirs $(SYMROOT)/boot_modules.c $(SYMROOT)/boot_modules.h all-recursive
@# Finish up boot_modules.c
branches/Chimera/i386/util/bdmesg.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* BooterLog Dump Tool, part of the Chameleon Boot Loader Project
*
* Copyright 2010 by Islam M. Ahmed Zaid. All rights reserved.
*
*/
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "IOKit/IOKitLib.h"
int main(int argc, char *argv[])
{
io_registry_entry_t root = IORegistryEntryFromPath(kIOMasterPortDefault, "IOService:/");
if (!root)
{
printf("IORegistryEntry \"IOIOService:/\" not found.\n");
return 0;
}
CFTypeRef bootLog = IORegistryEntryCreateCFProperty(root, CFSTR("boot-log"), kCFAllocatorDefault, 0);
if (!bootLog)
{
printf("\"boot-log\" property not found.\n");
return 0;
}
//CFShow(bootLog);
const UInt8 *msglog = CFDataGetBytePtr((CFDataRef)bootLog);
if (msglog)
printf("%s\n", msglog);
return 0;
}
/*
* BooterLog Dump Tool, part of the Chameleon Boot Loader Project
*
* Copyright 2010 by Islam M. Ahmed Zaid. All rights reserved.
*
*/
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "IOKit/IOKitLib.h"
int main(int argc, char *argv[])
{
io_registry_entry_t root;
CFTypeRef bootLog = NULL;
root = IORegistryEntryFromPath(kIOMasterPortDefault, "IOService:/");
if (root)
bootLog = IORegistryEntryCreateCFProperty(root, CFSTR("boot-log"), kCFAllocatorDefault, 0);
if (!bootLog)
{
// Check for Clover boot log
root = IORegistryEntryFromPath(kIOMasterPortDefault, "IODeviceTree:/efi/platform");
if (root)
bootLog = IORegistryEntryCreateCFProperty(root, CFSTR("boot-log"), kCFAllocatorDefault, 0);
}
if (!bootLog)
{
printf("\"boot-log\" property not found.\n");
return 0;
}
const UInt8 *msglog = CFDataGetBytePtr((CFDataRef)bootLog);
if (msglog)
printf("%s\n", msglog);
return 0;
}
branches/Chimera/package/Scripts.templates/Post/postinstall
1111
1212
1313
14
14
1515
1616
1717
exit 1
fi
# If target volume root of current system then replace
# If target volume is root of current system then replace
# / with volume name.
if [ "$3" == "/" ]; then
dest_vol="/Volumes/"$( ls -1F /Volumes | sed -n 's:@$::p' )
branches/Chimera/package/Scripts.templates/Pre/preinstall
4141
4242
4343
44
44
4545
4646
4747
......
5757
5858
5959
60
60
6161
62
62
6363
6464
65
65
6666
6767
6868
backupRootDir="${targetVolume}/Chameleon.Backups"
backupDir="${backupRootDir}/"$( date -j "+%F-%Hh%M" )
# Create the backup dirextory
# Create the backup directory
mkdir -p "$backupDir"
[[ -f "$logFile" ]] && mv "$logFile" "${backupDir}/${logName}" # Backup old log file
echo "======================================================" >>"${logFile}"
# ---------------------------------------------
# Backing up Chameleon files
# Backup Chameleon files
# ---------------------------------------------
echo "Backing up Chameleon files" >>"${logFile}"
echo "Backup Chameleon files" >>"${logFile}"
# Backup stage2
if [[ -f "${targetVolume}/boot" ]];then
echo "Backing up stage2 file ${targetVolume}/boot to ${backupDir}/boot" >>"${logFile}"
echo "Backup stage2 file ${targetVolume}/boot to ${backupDir}/boot" >>"${logFile}"
cp -p "${targetVolume}/boot" "${backupDir}/boot"
fi
# Backup /Extra directory
branches/Chimera/package/OptionalSettings/Resolution.txt
3131
3232
3333
34
3435
3536
3637
Text@1280x800x32:Graphics Mode=1280x800x32
Text@1280x960x32:Graphics Mode=1280x960x32
Text@1280x1024x32:Graphics Mode=1280x1024x32
Text@1366x768x32:Graphics Mode=1366x768x32
Text@1440x900x32:Graphics Mode=1440x900x32
Text@1600x900x32:Graphics Mode=1600x900x32
Text@1600x1200x32:Graphics Mode=1600x1200x32
branches/Chimera/package/OptionalSettings/General.txt
2828
2929
3030
31
3132
3233
3334
Text@arch:arch=i386
Bool@EHCIacquire:EHCIacquire=Yes
Bool@EthernetBuiltIn:EthernetBuiltIn=Yes
#Bool@EnableWifi:EnableWifi=Yes
Bool@ForceHPET:ForceHPET=Yes
Bool@ForceWake:ForceWake=Yes
Bool@ForceFullMemInfo:ForceFullMemInfo=Yes
branches/Chimera/package/OptionalSettings/KernelFlags.txt
3030
3131
3232
33
3334
35
36
List@Ignorecaches:Kernel Flags=-f
List@Npci:Kernel Flags=npci=0x2000
List@Npci3:Kernel Flags=npci=0x3000
List@WaitingRootDevice:Kernel Flags=ahcidisk=1 debug=8
List@Darkwake:Kernel Flags=darkwake=0
List@NvdaDrv1:Kernel Flags=nvda_drv=1
List@Dart0:Kernel Flags=dart=0
branches/Chimera/package/bin/po4a/lib/Locale/Po4a/Xml.pm
339339
340340
341341
342
342
343343
344344
345345
......
428428
429429
430430
431
431
432432
433
433
434434
435435
436436
form E<lt>aaaE<gt>, but you can join some (E<lt>bbbE<gt>E<lt>aaaE<gt>) to say that the content of
the tag E<lt>aaaE<gt> will only be translated when it's into a E<lt>bbbE<gt> tag.
You can also specify some tag options putting some characters in front of
You can also specify some tag options by putting some characters in front of
the tag hierarchy. For example, you can put 'w' (wrap) or 'W' (don't wrap)
to override the default behavior specified by the global "wrap" option.
(<bbb><aaa>), if a tag (<aaa>) should only be considered
when it's into another tag (<bbb>).
You can also specify some tag options putting some characters in front of
You can also specify some tag options by putting some characters in front of
the tag hierarchy. For example, you can put 'w' (wrap) or 'W' (don't wrap)
to overide the default behavior specified by the global "wrap" option.
to override the default behavior specified by the global "wrap" option.
Example: WE<lt>chapterE<gt>E<lt>titleE<gt>
branches/Chimera/package/Resources/templates/Localizable.strings
4444
4545
4646
47
48
49
50
51
52
53
54
4755
4856
4957
......
6068
6169
6270
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
6395
6496
6597
6698
99
67100
68101
69102
......
99132
100133
101134
135
136
137
102138
103139
104140
......
131167
132168
133169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
134185
135186
136187
......
140191
141192
142193
194
195
196
143197
144198
145199
146200
147201
148202
203
204
205
149206
150207
151208
......
166223
167224
168225
226
227
228
169229
170230
171231
......
186246
187247
188248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
189553
190
554
191555
192556
193557
......
201565
202566
203567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
204583
205584
206585
586
207587
208588
209589
......
219599
220600
221601
602
603
604
605
606
222607
223608
224609
610
611
612
613
614
225615
616
617
618
619
226620
227621
228622
623
229624
230625
231626
......
248643
249644
250645
646
251647
252648
253649
......
265661
266662
267663
664
665
666
667
668
268669
269670
270671
......
285686
286687
287688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
288709
289710
290711
"ACPICodec_description" = "This module provides a substitute for the internal acpi patcher.
Dependencies: none";
"HDAEnabler_title" = "HDAEnabler";
"HDAEnabler_description" = "HDAEnabler module, this module provides a substitute for the Hight Definition Audio DSDT Edits.
Dependencies: none";
"FileNVRAM_title" = "FileNVRAM";
"FileNVRAM_description" = "FileNVRAM module for preloading NVRAM values.
Dependencies: none";
"Sata_title" = "Sata";
"Sata_description" = "Sata module, known as YellowIconFixer in cparm's branch.
Useful to fix yellow icon issue (can also fix an issue with the Apple's dvd player application in Mountain lion).
Source: http://cxx.uclibc.org/
Dependencies: klibc";
"KernelPatcher_title" = "Kernel Patcher";
"KernelPatcher_description" = "The KernelPatcher module provides patches for the following:
*Enables the use of the kernelcache with /Extra/Extensions and /Extra/Extensions.mkext
*Removed the CPUID check
*Removes an LAPIC panic
*Removes a panic in commpage_stuff_routine
Dependencies: none";
"KextPatcher_title" = "Kext Patcher";
"KextPatcher_description" = "The KextPatcher module provides patches for the following:
Dependencies: none";
"NVIDIAGraphicsEnabler_title" = "NVIDIAGraphicsEnabler";
"NVIDIAGraphicsEnabler_description" = "The GraphicsEnabler nVidia code ported to a module.
Dependencies: none";
"AMDGraphicsEnabler_title" = "AMDGraphicsEnabler";
"AMDGraphicsEnabler_description" = "The GraphicsEnabler AMD/ATi code ported to a module.
Dependencies: none";
"IntelGraphicsEnabler_title" = "IntelGraphicsEnabler";
"IntelGraphicsEnabler_description" = "The GraphicsEnabler gma(Intel) code ported to a module.
Dependencies: none";
// ============================================================================
// Boot Options - The follow options are split to match the layout OptionalSettings text files.
// but they can be changed to suit however anyone wants to do it.
// ----------------------------------------------------------------------------
"Options_title" = "Settings";
"Options_description" = "Create an /Extra/org.chameleon.Boot.plist by selecting any of these boot options and kernel flags.";
"EthernetBuiltIn_title" = "EthernetBuiltIn=Yes";
"EthernetBuiltIn_description" = "Enables the option of adding 'built-in' to your ethernet devices.";
"EnableWifi_title" = "EnableWifi=Yes";
"EnableWifi_description" = "Enables the option of adding AirPort values to your wireless device.";
"ForceHPET_title" = "ForceHPET=Yes";
"ForceHPET_description" = "Enables HPET on intel chipsets, for bioses that dont include the option.";
"DropSSDT_title" = "DropSSDT=Yes";
"DropSSDT_description" = "Discard the motherboard's built-in SSDT tables.";
"DropHPET_title" = "DropHPET=Yes";
"DropHPET_description" = "Discard the motherboard's built-in HPET table.";
"DropSBST_title" = "DropSBST=Yes";
"DropSBST_description" = "Discard the motherboard's built-in SBST table.";
"DropECDT_title" = "DropECDT=Yes";
"DropECDT_description" = "Discard the motherboard's built-in ECDT table.";
"DropASFT_title" = "DropASFT=Yes";
"DropASFT_description" = "Discard the motherboard's built-in ASF! table.";
"DropDMAR_title" = "DropDMAR=Yes";
"DropDMAR_description" = "Discard the motherboard's built-in DMAR table, this key action resolve the problem with VT-d panics.";
"EnableC2State_title" = "EnableC2State=Yes";
"EnableC2State_description" = "Enable specific Processor power state, C2.";
"EnableC4State_title" = "EnableC4State=Yes";
"EnableC4State_description" = "Enable specific Processor power state, C4.";
"EnableC6State_title" = "EnableC6State=Yes";
"EnableC6State_description" = "Enable specific Processor power state, C6.";
"GenerateCStates_title" = "GenerateCStates=Yes";
"GenerateCStates_description" = "Enable auto generation of processor idle sleep states (C-States).";
"GeneratePStates_title" = "GeneratePStates=Yes";
"GeneratePStates_description" = "Enable auto generation of processor power performance states (P-States).";
"GenerateTStates_title" = "GenerateTStates=Yes";
"GenerateTStates_description" = "Enable auto generation of processor power performance states (T-States).";
// ----------------------------------------------------------------------------
"1024x600x32_title" = "1024x600x32";
"1280x960x32_title" = "1280x960x32";
"1280x960x32_description" = "Set Graphics Mode to 1280x960x32";
"1366x768x32_title" = "1366x768x32";
"1366x768x32_description" = "Set Graphics Mode to 1366x768x32";
"1440x900x32_title" = "1440x900x32";
"1440x900x32_description" = "Set Graphics Mode to 1440x900x32";
// ----------------------------------------------------------------------------
"HDEFLayoutIDx01_title" = "LayoutID=1";
"HDEFLayoutIDx01_description" = "Set HDEF layout-it to 1:
001 (0x01, 0x00, 0x00, 0x00).";
"HDEFLayoutIDx02_title" = "LayoutID=2";
"HDEFLayoutIDx02_description" = "Set HDEF layout-it to 2:
002 (0x02, 0x00, 0x00, 0x00).";
"HDEFLayoutIDx03_title" = "LayoutID=3";
"HDEFLayoutIDx03_description" = "Set HDEF layout-it to 3:
003 (0x03, 0x00, 0x00, 0x00).";
"HDEFLayoutIDx12_title" = "LayoutID=12";
"HDEFLayoutIDx12_description" = "Set HDEF layout-it to 12:
00C (0x0C, 0x00, 0x00, 0x00).";
"HDEFLayoutIDx32_title" = "LayoutID=32";
"HDEFLayoutIDx32_description" = "Set HDEF layout-it to 32:
020 (0x20, 0x00, 0x00, 0x00).";
"HDEFLayoutIDx40_title" = "LayoutID=40";
"HDEFLayoutIDx40_description" = "Set HDEF layout-it to 40:
028 (0x28, 0x00, 0x00, 0x00).";
"HDEFLayoutIDx65_title" = "LayoutID=65";
"HDEFLayoutIDx65_description" = "Set HDEF layout-it to 65:
041 (0x41, 0x00, 0x00, 0x00).";
"HDEFLayoutIDx99_title" = "LayoutID=99";
"HDEFLayoutIDx99_description" = "Set HDEF layout-it to 99:
063 (0x63, 0x00, 0x00, 0x00).";
"HDEFLayoutIDx269_title" = "LayoutID=269";
"HDEFLayoutIDx269_description" = "Set HDEF layout-it to 269:
10D (0x0D, 0x01, 0x00, 0x00).";
"HDEFLayoutIDx387_title" = "LayoutID=387";
"HDEFLayoutIDx387_description" = "Set HDEF layout-it to 387:
183 (0x83, 0x01, 0x00, 0x00).";
"HDEFLayoutIDx388_title" = "LayoutID=388";
"HDEFLayoutIDx388_description" = "Set HDEF layout-it to 388:
184 (0x84, 0x01, 0x00, 0x00).";
"HDEFLayoutIDx389_title" = "LayoutID=389";
"HDEFLayoutIDx389_description" = "Set HDEF layout-it to 389:
185 (0x85, 0x01, 0x00, 0x00).";
"HDEFLayoutIDx392_title" = "LayoutID=392";
"HDEFLayoutIDx392_description" = "Set HDEF layout-it to 392:
188 (0x88, 0x01, 0x00, 0x00).";
"HDEFLayoutIDx398_title" = "LayoutID=398";
"HDEFLayoutIDx398_description" = "Set HDEF layout-it to 398:
18E (0x8E, 0x01, 0x00, 0x00).";
"HDEFLayoutIDx662_title" = "LayoutID=662";
"HDEFLayoutIDx662_description" = "Set HDEF layout-it to 662:
296 (0x96, 0x02, 0x00, 0x00).";
"HDEFLayoutIDx663_title" = "LayoutID=663";
"HDEFLayoutIDx663_description" = "Set HDEF layout-it to 663:
297 (0x97, 0x02, 0x00, 0x00).";
"HDEFLayoutIDx664_title" = "LayoutID=664";
"HDEFLayoutIDx664_description" = "Set HDEF layout-it to 664:
298 (0x98, 0x02, 0x00, 0x00).";
"HDEFLayoutIDx885_title" = "LayoutID=885";
"HDEFLayoutIDx885_description" = "Set HDEF layout-it to 885:
375 (0x75, 0x03, 0x00, 0x00).";
"HDEFLayoutIDx887_title" = "LayoutID=887";
"HDEFLayoutIDx887_description" = "Set HDEF layout-it to 887:
377 (0x77, 0x03, 0x00, 0x00).";
"HDEFLayoutIDx888_title" = "LayoutID=888";
"HDEFLayoutIDx888_description" = "Set HDEF layout-it to 888:
378 (0x78, 0x03, 0x00, 0x00).";
"HDEFLayoutIDx889_title" = "LayoutID=889";
"HDEFLayoutIDx889_description" = "Set HDEF layout-it to 889:
379 (0x79, 0x03, 0x00, 0x00).";
"HDEFLayoutIDx892_title" = "LayoutID=892";
"HDEFLayoutIDx892_description" = "Set HDEF layout-it to 892:
37C (0x7C, 0x03, 0x00, 0x00).";
"HDEFLayoutIDx898_title" = "LayoutID=898";
"HDEFLayoutIDx898_description" = "Set HDEF layout-it to 898:
382 (0x82, 0x03, 0x00, 0x00).";
"HDEFLayoutIDxBD7_title" = "LayoutID=1981";
"HDEFLayoutIDxBD7_description" = "Set HDEF layout-it to 1981:
7BD (0xBD, 0x07, 0x00, 0x00).";
// ----------------------------------------------------------------------------
"HDAULayoutIDx01_title" = "LayoutID=1";
"HDAULayoutIDx01_description" = "Set HDAU layout-it to 1:
001 (0x01, 0x00, 0x00, 0x00).";
"HDAULayoutIDx02_title" = "LayoutID=2";
"HDAULayoutIDx02_description" = "Set HDAU layout-it to 2:
002 (0x02, 0x00, 0x00, 0x00).";
"HDAULayoutIDx03_title" = "LayoutID=3";
"HDAULayoutIDx03_description" = "Set HDAU layout-it to 3:
003 (0x03, 0x00, 0x00, 0x00).";
"HDAULayoutIDx12_title" = "LayoutID=12";
"HDAULayoutIDx12_description" = "Set HDAU layout-it to 12:
00C (0x0C, 0x00, 0x00, 0x00).";
"HDAULayoutIDx32_title" = "LayoutID=32";
"HDAULayoutIDx32_description" = "Set HDAU layout-it to 32:
020 (0x20, 0x00, 0x00, 0x00).";
"HDAULayoutIDx40_title" = "LayoutID=40";
"HDAULayoutIDx40_description" = "Set HDAU layout-it to 40:
028 (0x28, 0x00, 0x00, 0x00).";
"HDAULayoutIDx65_title" = "LayoutID=65";
"HDAULayoutIDx65_description" = "Set HDAU layout-it to 65:
041 (0x41, 0x00, 0x00, 0x00).";
"HDAULayoutIDx99_title" = "LayoutID=99";
"HDAULayoutIDx99_description" = "Set HDAU layout-it to 99:
063 (0x63, 0x00, 0x00, 0x00).";
"HDAULayoutIDx269_title" = "LayoutID=269";
"HDAULayoutIDx269_description" = "Set HDAU layout-it to 269:
10D (0x0D, 0x01, 0x00, 0x00).";
"HDAULayoutIDx387_title" = "LayoutID=387";
"HDAULayoutIDx387_description" = "Set HDAU layout-it to 387:
183 (0x83, 0x01, 0x00, 0x00).";
"HDAULayoutIDx388_title" = "LayoutID=388";
"HDAULayoutIDx388_description" = "Set HDAU layout-it to 388:
184 (0x84, 0x01, 0x00, 0x00).";
"HDAULayoutIDx389_title" = "LayoutID=389";
"HDAULayoutIDx389_description" = "Set HDAU layout-it to 389:
185 (0x85, 0x01, 0x00, 0x00).";
"HDAULayoutIDx392_title" = "LayoutID=392";
"HDAULayoutIDx392_description" = "Set HDAU layout-it to 392:
188 (0x88, 0x01, 0x00, 0x00).";
"HDAULayoutIDx398_title" = "LayoutID=398";
"HDAULayoutIDx398_description" = "Set HDAU layout-it to 398:
18E (0x8E, 0x01, 0x00, 0x00).";
"HDAULayoutIDx662_title" = "LayoutID=662";
"HDAULayoutIDx662_description" = "Set HDAU layout-it to 662:
296 (0x96, 0x02, 0x00, 0x00).";
"HDAULayoutIDx663_title" = "LayoutID=663";
"HDAULayoutIDx663_description" = "Set HDAU layout-it to 663:
297 (0x97, 0x02, 0x00, 0x00).";
"HDAULayoutIDx664_title" = "LayoutID=664";
"HDAULayoutIDx664_description" = "Set HDAU layout-it to 664:
298 (0x98, 0x02, 0x00, 0x00).";
"HDAULayoutIDx885_title" = "LayoutID=885";
"HDAULayoutIDx885_description" = "Set HDAU layout-it to 885:
375 (0x75, 0x03, 0x00, 0x00).";
"HDAULayoutIDx887_title" = "LayoutID=887";
"HDAULayoutIDx887_description" = "Set HDAU layout-it to 887:
377 (0x77, 0x03, 0x00, 0x00).";
"HDAULayoutIDx888_title" = "LayoutID=888";
"HDAULayoutIDx888_description" = "Set HDAU layout-it to 888:
378 (0x78, 0x03, 0x00, 0x00).";
"HDAULayoutIDx889_title" = "LayoutID=889";
"HDAULayoutIDx889_description" = "Set HDAU layout-it to 889:
379 (0x79, 0x03, 0x00, 0x00).";
"HDAULayoutIDx892_title" = "LayoutID=892";
"HDAULayoutIDx892_description" = "Set HDAU layout-it to 892:
37C (0x7C, 0x03, 0x00, 0x00).";
"HDAULayoutIDx898_title" = "LayoutID=898";
"HDAULayoutIDx898_description" = "Set HDAU layout-it to 898:
382 (0x82, 0x03, 0x00, 0x00).";
"HDAULayoutIDxBD7_title" = "LayoutID=1981";
"HDAULayoutIDxBD7_description" = "Set HDAU layout-it to 1981:
7BD (0xBD, 0x07, 0x00, 0x00).";
// ----------------------------------------------------------------------------
"IntelCaprix00_title" = "01660000";
"IntelCaprix00_description" = "Set 01660000 for Intel HD4000 (Mobile) AAPL,ig-platform-id .";
"IntelCaprix01_title" = "01660001";
"IntelCaprix01_description" = "Set 01660001 for Intel HD4000 (Mobile) AAPL,ig-platform-id .";
"IntelCaprix02_title" = "01660002";
"IntelCaprix02_description" = "Set 01660002 for Intel HD4000 (Mobile) AAPL,ig-platform-id .";
"IntelCaprix03_title" = "01660003";
"IntelCaprix03_description" = "Set 01660003 for Intel HD4000 (Mobile) AAPL,ig-platform-id .";
"IntelCaprix04_title" = "01660004";
"IntelCaprix04_description" = "Set 01660004 for Intel HD4000 (Mobile) AAPL,ig-platform-id .";
"IntelCaprix05_title" = "01620005";
"IntelCaprix05_description" = "Set 01620005 for Intel HD4000 (Desktop) AAPL,ig-platform-id .";
"IntelCaprix06_title" = "01620006";
"IntelCaprix06_description" = "Set 01620006 for Intel HD4000 (Desktop) AAPL,ig-platform-id .";
"IntelCaprix07_title" = "01620007";
"IntelCaprix07_description" = "Set 01620007 for Intel HD4000 (Desktop) AAPL,ig-platform-id .";
"IntelCaprix08_title" = "01660008";
"IntelCaprix08_description" = "Set 01660008 for Intel HD4000 (Mobile) AAPL,ig-platform-id .";
"IntelCaprix09_title" = "01660009";
"IntelCaprix09_description" = "Set 01660009 for Intel HD4000 (Mobile) AAPL,ig-platform-id .";
"IntelCaprix10_title" = "0166000a";
"IntelCaprix10_description" = "Set 0166000a for Intel HD4000 (Mobile) AAPL,ig-platform-id .";
"IntelCaprix11_title" = "0166000b";
"IntelCaprix11_description" = "Set 0166000b for Intel HD4000 (Mobile) AAPL,ig-platform-id .";
// ----------------------------------------------------------------------------
"IntelAzulx00_title" = "00000604";
"IntelAzulx00_description" = "Set 00000604 for Intel HD5000 (Mobile) AAPL,ig-platform-id.";
"IntelAzulx01_title" = "0000060c";
"IntelAzulx01_description" = "Set 0000060c for Intel HD5000 (Mobile) AAPL,ig-platform-id.";
"IntelAzulx02_title" = "00001604";
"IntelAzulx02_description" = "Set 00001604 for Intel HD5000 (Mobile) AAPL,ig-platform-id.";
"IntelAzulx03_title" = "0000160a";
"IntelAzulx03_description" = "Set 0000160a for Intel HD5000 (Mobile) AAPL,ig-platform-id.";
"IntelAzulx04_title" = "0000160c";
"IntelAzulx04_description" = "Set 0000160c for Intel HD5000 (Mobile) AAPL,ig-platform-id.";
"IntelAzulx05_title" = "00002604";
"IntelAzulx05_description" = "Set 00002604 for Intel HD5000 (Mobile) AAPL,ig-platform-id.";
"IntelAzulx06_title" = "0000260a";
"IntelAzulx06_description" = "Set 0000260a for Intel HD5000 (Mobile) AAPL,ig-platform-id.";
"IntelAzulx07_title" = "0000260c";
"IntelAzulx07_description" = "Set 0600260c for Intel HD5000 (Mobile) AAPL,ig-platform-id.";
"IntelAzulx08_title" = "0000260d";
"IntelAzulx08_description" = "Set 0000260d for Intel HD5000 (Mobile) AAPL,ig-platform-id.";
"IntelAzulx09_title" = "02001604";
"IntelAzulx09_description" = "Set 02001604 for Intel HD5000 (Mobile) AAPL,ig-platform-id.";
"IntelAzulx10_title" = "0300220d";
"IntelAzulx10_description" = "Set 0300220d for Intel HD5000 (Desktop) AAPL,ig-platform-id.";
"IntelAzulx11_title" = "0500260a";
"IntelAzulx11_description" = "Set 0500260a for Intel HD5000 (Mobile) AAPL,ig-platform-id.";
"IntelAzulx12_title" = "0600260a";
"IntelAzulx12_description" = "Set 0600260a for Intel HD5000 (Mobile) AAPL,ig-platform-id.";
"IntelAzulx13_title" = "0700260d";
"IntelAzulx13_description" = "Set 0700260d for Intel HD5000 (Mobile) AAPL,ig-platform-id.";
"IntelAzulx14_title" = "0800260a";
"IntelAzulx14_description" = "Set 0800260a for Intel HD5000 (Mobile) AAPL,ig-platform-id.";
"IntelAzulx15_title" = "08002e0a";
"IntelAzulx15_description" = "Set 08002e0a for Intel HD5000 (Mobile) AAPL,ig-platform-id.";
// ----------------------------------------------------------------------------
"AD2000B_PinConf_title" = "AD2000b";
"AD2000B_PinConf_description" = "Set HDEF PinConfiguration for Analog Devices AD2000b.";
"AD1981HD_PinConf_title" = "AD1981HD";
"AD1981HD_PinConf_description" = "Set HDEF PinConfiguration for Analog Devices AD1981HD.";
"AD1988B_PinConf_title" = "AD1988b";
"AD1988B_PinConf_description" = "Set HDEF PinConfiguration for Analog Devices AD1988b.";
"ALC888_PinConf_title" = "ALC888";
"ALC888_PinConf_description" = "Set HDEF PinConfiguration for Realtek ALC888.";
"ALC1200_PinConf_title" = "ALC1200";
"ALC1200_PinConf_description" = "Set HDEF PinConfiguration for Realtek ALC1200.";
"00_PinConf_title" = "00";
"00_PinConf_description" = "Set HDEF PinConfiguration for ???.";
// ----------------------------------------------------------------------------
"GraphicsEnabler_title" = "GraphicsEnabler=Yes";
"GraphicsEnabler_description" = "Enables the option to autodetect NVIDIA based GPUs and inject the correct info.";
"GraphicsEnabler_description" = "Enables the option to autodetect NVIDIA, AMD/ATI or Intel based GPUs and inject the correct info.";
"EnableHDMIAudio_title" = "EnableHDMIAudio=Yes";
"EnableHDMIAudio_description" = "Inject HDMi audio for NVIDIA or AMD/ATI.";
"VBIOS_title" = "VBIOS=Yes";
"VBIOS_description" = "Enables VBIOS option";
"SkipIntelGfx_title" = "SkipIntelGfx=Yes";
"SkipIntelGfx_description" = "Skip the GraphicsEnbaler autodetect for Intel based GPUs.";
"SkipNvidiaGfx_title" = "SkipNvidiaGfx=Yes";
"SkipNvidiaGfx_description" = "Skip the GraphicsEnbaler autodetect for NVIDIA based GPUs.";
"SkipAtiGfx_title" = "SkipAtiGfx=Yes";
"SkipAtiGfx_description" = "Skip the GraphicsEnbaler autodetect for AMD/ATI based GPUs.";
"EnableBacklight_title" = "EnableBacklight=Yes";
"EnableBacklight_description" = "Enables Backlight options for laptop with nVidia cards.";
"EnableDualLink_title" = "EnableDualLink=Yes";
"EnableDualLink_description" = "Enables DualLink options for nVidia and ATi cards.";
// ----------------------------------------------------------------------------
// Boot options - KERNEL FLAGS
// ----------------------------------------------------------------------------
"Verbose_title" = "Verbose Mode";
"Verbose_description" = "Turns on verbose logging and allows you to see messages from both Chameleon and the OS X kernel at boot time. Essential for troubleshooting.";
"Npci3_title" = "npci=0x3000";
"Npci3_description" = "For overcoming a hang at 'PCI configuration begin' on some systems. 0x3000 is the kIOPCIConfiguratorPFM64 flag, as seen in the IOPCIFamily source code.";
"WaitingRootDevice_title" = "ahcidisk=1 debug=8";
"WaitingRootDevice_description" = "Info here: Waiting for root device when kernel cache used only with some disks +FIX
http://www.insanelymac.com/forum/topic/280062-waiting-for-root-device-when-kernel-cache-used-only-with-some-disks-fix/
Findings credits to bcc9.";
"Darkwake_title" = "darkwake=0";
"Darkwake_description" = "Lion only. Disables the 'low power wake' feature which can sometimes leave the screen black after wake from sleep.";
"NvdaDrv1_title" = "nvda_drv=1";
"NvdaDrv1_description" = "It introduces a new Preference Pane under System Preferences that allows you to enable the Nvidia Web Driver.
Info here: New Nvidia Retail Driver Install Solution
http://www.insanelymac.com/forum/topic/288582-new-nvidia-retail-driver-install-solution/
Findings credits to meklort and Rampage Dev.";
"Dart0_title" = "dart=0";
"Dart0_description" = "Avoiding the DMAR processing causing by VT-d function in Osx (Virtualization).
More information by bcc9 here: http://www.insanelymac.com/forum/topic/282989-vtd0-fault-after-1082-google-hasnt-heard-of-it-any-help/#entry1867000";
// ----------------------------------------------------------------------------
// Boot options - KEYMAPS
// ----------------------------------------------------------------------------
"mac-de_title" = "German Mac Keyboard";
"mac-de_description" = "Use the keyboard layout for a German Mac keyboard";
// ----------------------------------------------------------------------------
// Boot options - THEMES
// ----------------------------------------------------------------------------
"Embed_title" = "Embed";
"Embed_description" = "A smaller simple version of the new default theme used when building a version of Chameleon which requires an embedded theme.";
// The filenames from OptionalSettings text files' become sub menu headings.
// These sub menu headings need titles and descriptions.
// ----------------------------------------------------------------------------
// Audio
"Audio_title" = "Audio";
"Audio_description" = "A selection of options that deal with audio.";
// Control
"Control_title" = "Control Options";
"Control_description" = "Settings to control how Chameleon works.";
"Resolution_title" = "Resolution";
"Resolution_description" = "Set one resolution to use.";
// HDEF Layout
"HDEFLayout_title" = "HDEF Layout";
"HDEFLayout_description" = "Set one HDEF Layout ID to use for your HDA controller.";
// HDAU Layout
"HDAULayout_title" = "HDAU Layout";
"HDAULayout_description" = "Set one HDAU Layout ID to use for your HDMi controller.";
// HD4000 Layout
"IntelCapri_title" = "Intel Capri AAPL,ig-platform-id";
"IntelCapri_description" = "Set one AAPL,ig-platform-id to use for your Intel HD4000.";
// HD5000 Layout
"IntelAzul_title" = "Intel Azul AAPL,ig-platform-id";
"IntelAzul_description" = "Set one AAPL,ig-platform-id to use for your Intel HD5000.";
// PinConfiguration
"HDEFPinConfiguration_title" = "HDEF PinConfiguration";
"HDEFPinConfiguration_description" = "Set one HDEF PinConfiguration to use.";
// Video
"Video_title" = "Video";
"Video_description" = "A selection of options that deal with video.";
branches/Chimera/package/buildpkg.sh
2323
2424
2525
26
27
28
29
30
2631
2732
33
34
35
36
37
38
39
2840
41
42
43
44
2945
30
31
32
33
3446
3547
3648
......
521533
522534
523535
536
537
538
539
540
541
542
543
544
545
524546
547
525548
549
526550
527
528
529
530551
531552
532553
533554
534555
535556
536
557
537558
538
539
540
559
560
561
541562
542563
543564
......
548569
549570
550571
551
572
552573
553574
575
576
577
578
579
580
581
582
583
584
585
586
554587
588
589
590
591
592
593
555594
556
595
557596
558
559
560
597
598
599
561600
562
601
563602
564603
565604
......
568607
569608
570609
571
610
572611
573612
574
575613
576
577
614
578615
579
580
581
582
583
584
585
616
617
618
586619
587620
588621
......
592625
593626
594627
595
596
597
628
629
598630
599631
600632
601
633
602634
603
604
605
635
636
637
606638
607639
608640
......
613645
614646
615647
616
648
617649
618650
619
620651
621
652
622653
623
624
625
654
655
656
626657
627658
628659
......
633664
634665
635666
636
667
637668
638669
639
640
670
671
641672
642673
643674
......
671702
672703
673704
705
706
707
708
709
710
711
712
713
714
715
716
674717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
675826
676827
677828
......
10571208
10581209
10591210
1060
1211
1212
1213
1214
1215
10611216
10621217
10631218
set -u # Abort with unset variables
#set -e # Abort with any error can be suppressed locally using EITHER cmd||true OR set -e;cmd;set +e
# ====== LANGUAGE SETUP ======
export LANG='en_US.UTF-8'
export LC_COLLATE='C'
export LC_CTYPE='C'
# ====== CONFIGURATION ======
CONFIG_MODULES=""
CONFIG_ACPICODEC_MODULE=""
CONFIG_AMDGE_MODULE=""
CONFIG_GMAGE_MODULE=""
CONFIG_NVIDIAGE_MODULE=""
CONFIG_KERNELPATCHER_MODULE=""
CONFIG_KEXTPATCHER_MODULE=""
CONFIG_KEYLAYOUT_MODULE=""
CONFIG_KLIBC_MODULE=""
CONFIG_RESOLUTION_MODULE=""
CONFIG_HDAENABLER_MODULE=""
CONFIG_FILENVRAM_MODULE=""
CONFIG_SATA_MODULE=""
CONFIG_UCLIBCXX_MODULE=""
CONFIG_SATA_MODULE=""
CONFIG_ACPICODEC_MODULE=""
CONFIG_RESOLUTION_MODULE=""
CONFIG_KEYLAYOUT_MODULE=""
source "${SRCROOT}/auto.conf"
# ====== COLORS ======
###############################
# Supported Modules #
###############################
# ACPICodec.dylib #
# AMDGraphicsEnabler.dylib #
# ATiGraphicsEnabler.dylib #
# FileNVRAM.dylib #
# HDAEnabler.dylib #
# HelloWorld.dylib #
# IntelGraphicsEnabler.dylib #
# KernelPatcher.dylib #
# KextPatcher.dylib #
# Keylayout.dylib #
# klibc.dylib #
# NVDIAGraphicEnabler.dylib #
# Resolution.dylib #
# Sata.dylib #
# uClibcxx.dylib #
# Sata.dylib #
# ACPICodec.dylib #
# Keylayout.dylib #
###############################
if [ "$(ls -A "${SYMROOT}/i386/modules")" ]; then
{
addGroupChoices "Module"
# -
if [[ "${CONFIG_RESOLUTION_MODULE}" == 'm' && -f "${SYMROOT}/i386/modules/Resolution.dylib" ]]; then
if [[ "${CONFIG_ACPICODEC_MODULE}" == 'm' && -f "${SYMROOT}/i386/modules/ACPICodec.dylib" ]]; then
{
# Start build Resolution package module
choiceId="AutoReso"
moduleFile="Resolution.dylib"
# Start build ACPICodec package module
choiceId="ACPICodec"
moduleFile="ACPICodec.dylib"
mkdir -p "${PKG_BUILD_DIR}/${choiceId}/Root"
ditto --noextattr --noqtn "${SYMROOT}/i386/modules/$moduleFile" "${PKG_BUILD_DIR}/${choiceId}/Root"
addTemplateScripts --pkg-rootdir="${PKG_BUILD_DIR}/${choiceId}" \
packageRefId=$(getPackageRefId "${modules_packages_identity}" "${choiceId}")
buildpackage "$packageRefId" "${choiceId}" "${PKG_BUILD_DIR}/${choiceId}" "/Extra/modules"
addChoice --group="Module" --start-selected="false" --pkg-refs="$packageRefId" "${choiceId}"
# End build Resolution package module
# End build ACPICodec package module
}
fi
# -
if [[ "${CONFIG_NVIDIAGE_MODULE}" == 'y' && -f "${SYMROOT}/i386/modules/NVIDIAGraphicEnabler.dylib" ]]; then
{
# Start build NvidiaGraphicsEnabler package module
choiceId="NVIDIAGraphicsEnabler"
moduleFile="NVIDIAGraphicEnabler.dylib"
mkdir -p "${PKG_BUILD_DIR}/${choiceId}/Root"
ditto --noextattr --noqtn "${SYMROOT}/i386/modules/$moduleFile" "${PKG_BUILD_DIR}/${choiceId}/Root"
addTemplateScripts --pkg-rootdir="${PKG_BUILD_DIR}/${choiceId}" \
--subst="moduleName=$choiceId" \
--subst="moduleFile=$moduleFile" \
InstallModule
packageRefId=$(getPackageRefId "${modules_packages_identity}" "${choiceId}")
buildpackage "$packageRefId" "${choiceId}" "${PKG_BUILD_DIR}/${choiceId}" "/Extra/modules"
addChoice --group="Module" --start-selected="false" --pkg-refs="$packageRefId" "${choiceId}"
# End build NvidiaGraphicsEnabler package module
}
fi
# -
if [[ "${CONFIG_KLIBC_MODULE}" == 'm' && -f "${SYMROOT}/i386/modules/klibc.dylib" ]]; then
if [[ "${CONFIG_AMDGE_MODULE}" == 'y' && -f "${SYMROOT}/i386/modules/AMDGraphicsEnabler.dylib" ]]; then
{
# Start build klibc package module
choiceId="klibc"
moduleFile="${choiceId}.dylib"
# Start build AMDGraphicsEnabler package module
choiceId="AMDGraphicsEnabler"
moduleFile="AMDGraphicsEnabler_title.dylib"
mkdir -p "${PKG_BUILD_DIR}/${choiceId}/Root"
ditto --noextattr --noqtn "${SYMROOT}/i386/modules/$moduleFile" ${PKG_BUILD_DIR}/${choiceId}/Root
ditto --noextattr --noqtn "${SYMROOT}/i386/modules/$moduleFile" "${PKG_BUILD_DIR}/${choiceId}/Root"
addTemplateScripts --pkg-rootdir="${PKG_BUILD_DIR}/${choiceId}" \
--subst="moduleName=$choiceId" \
--subst="moduleFile=$moduleFile" \
packageRefId=$(getPackageRefId "${modules_packages_identity}" "${choiceId}")
buildpackage "$packageRefId" "${choiceId}" "${PKG_BUILD_DIR}/${choiceId}" "/Extra/modules"
addChoice --group="Module" --start-selected="false" --pkg-refs="$packageRefId" "${choiceId}"
# End build klibc package module
# End build AMDGraphicsEnabler package module
}
fi
# -
if [[ "${CONFIG_UCLIBCXX_MODULE}" = 'm' && -n "${CONFIG_KLIBC_MODULE}" && \
-f "${SYMROOT}/i386/modules/uClibcxx.dylib" ]]; then
if [[ "${CONFIG_GMAGE_MODULE}" == 'y' && -f "${SYMROOT}/i386/modules/IntelGraphicsEnabler.dylib" ]]; then
{
klibcPackageRefId=""
if [[ "${CONFIG_KLIBC_MODULE}" == 'm' ]];then
klibcPackageRefId=$(getPackageRefId "${modules_packages_identity}" "klibc")
fi
# Start build uClibc package module
choiceId="uClibc"
moduleFile="uClibcxx.dylib"
# Start build IntelGraphicsEnabler package module
choiceId="IntelGraphicsEnabler"
moduleFile="IntelGraphicsEnabler_title.dylib"
mkdir -p "${PKG_BUILD_DIR}/${choiceId}/Root"
ditto --noextattr --noqtn "${SYMROOT}/i386/modules/$moduleFile" "${PKG_BUILD_DIR}/${choiceId}/Root"
addTemplateScripts --pkg-rootdir="${PKG_BUILD_DIR}/${choiceId}" \
packageRefId=$(getPackageRefId "${modules_packages_identity}" "${choiceId}")
buildpackage "$packageRefId" "${choiceId}" "${PKG_BUILD_DIR}/${choiceId}" "/Extra/modules"
# Add the klibc package because the uClibc module is dependent of klibc module
addChoice --group="Module" --start-selected="false" --pkg-refs="$packageRefId $klibcPackageRefId" "${choiceId}"
# End build uClibc package module
addChoice --group="Module" --start-selected="false" --pkg-refs="$packageRefId" "${choiceId}"
# End build IntelGraphicsEnabler package module
}
fi
# -
if [[ "${CONFIG_SATA_MODULE}" == 'm' && -f "${SYMROOT}/i386/modules/Sata.dylib" ]]; then
if [[ "${CONFIG_KERNELPATCHER_MODULE}" == 'y' && -f "${SYMROOT}/i386/modules/KernelPatcher.dylib" ]]; then
{
# Start build Sata package module
choiceId="Sata"
moduleFile="Sata.dylib"
# Start build KernelPatcher package module
choiceId="KernelPatcher"
moduleFile="KernelPatcher.dylib"
mkdir -p "${PKG_BUILD_DIR}/${choiceId}/Root"
ditto --noextattr --noqtn "${SYMROOT}/i386/modules/$moduleFile" "${PKG_BUILD_DIR}/${choiceId}/Root"
addTemplateScripts --pkg-rootdir="${PKG_BUILD_DIR}/${choiceId}" \
packageRefId=$(getPackageRefId "${modules_packages_identity}" "${choiceId}")
buildpackage "$packageRefId" "${choiceId}" "${PKG_BUILD_DIR}/${choiceId}" "/Extra/modules"
addChoice --group="Module" --start-selected="false" --pkg-refs="$packageRefId" "${choiceId}"
# End build Sata package module
# End build KernelPatcher package module
}
fi
# -
if [[ "${CONFIG_ACPICODEC_MODULE}" == 'm' && -f "${SYMROOT}/i386/modules/ACPICodec.dylib" ]]; then
if [[ "${CONFIG_KEXTPATCHER_MODULE}" == 'y' && -f "${SYMROOT}/i386/modules/KextPatcher.dylib" ]]; then
{
# Start build ACPICodec package module
choiceId="ACPICodec"
moduleFile="ACPICodec.dylib"
# Start build KextPatcher package module
choiceId="KextPatcher"
moduleFile="KextPatcher.dylib"
mkdir -p "${PKG_BUILD_DIR}/${choiceId}/Root"
ditto --noextattr --noqtn "${SYMROOT}/i386/modules/$moduleFile" "${PKG_BUILD_DIR}/${choiceId}/Root"
addTemplateScripts --pkg-rootdir="${PKG_BUILD_DIR}/${choiceId}" \
packageRefId=$(getPackageRefId "${modules_packages_identity}" "${choiceId}")
buildpackage "$packageRefId" "${choiceId}" "${PKG_BUILD_DIR}/${choiceId}" "/Extra/modules"
addChoice --group="Module" --start-selected="false" --pkg-refs="$packageRefId" "${choiceId}"
# End build ACPICodec package module
# End build KextPatcher package module
}
fi
# - # Warning Keylayout module need additional files
# -
# Warning Keylayout module need additional files
if [[ "${CONFIG_KEYLAYOUT_MODULE}" = 'm' && -f "${SYMROOT}/i386/modules/Keylayout.dylib" ]]; then
{
# Start build Keylayout package module
# End build Keylayout package module
}
fi
# -
if [[ "${CONFIG_KLIBC_MODULE}" == 'm' && -f "${SYMROOT}/i386/modules/klibc.dylib" ]]; then
{
# Start build klibc package module
choiceId="klibc"
moduleFile="${choiceId}.dylib"
mkdir -p "${PKG_BUILD_DIR}/${choiceId}/Root"
ditto --noextattr --noqtn "${SYMROOT}/i386/modules/$moduleFile" ${PKG_BUILD_DIR}/${choiceId}/Root
addTemplateScripts --pkg-rootdir="${PKG_BUILD_DIR}/${choiceId}" \
--subst="moduleName=$choiceId" \
--subst="moduleFile=$moduleFile" \
InstallModule
packageRefId=$(getPackageRefId "${modules_packages_identity}" "${choiceId}")
buildpackage "$packageRefId" "${choiceId}" "${PKG_BUILD_DIR}/${choiceId}" "/Extra/modules"
addChoice --group="Module" --start-selected="false" --pkg-refs="$packageRefId" "${choiceId}"
# End build klibc package module
}
fi
# -
if [[ "${CONFIG_RESOLUTION_MODULE}" == 'm' && -f "${SYMROOT}/i386/modules/Resolution.dylib" ]]; then
{
# Start build Resolution package module
choiceId="AutoReso"
moduleFile="Resolution.dylib"
mkdir -p "${PKG_BUILD_DIR}/${choiceId}/Root"
ditto --noextattr --noqtn "${SYMROOT}/i386/modules/$moduleFile" "${PKG_BUILD_DIR}/${choiceId}/Root"
addTemplateScripts --pkg-rootdir="${PKG_BUILD_DIR}/${choiceId}" \
--subst="moduleName=$choiceId" \
--subst="moduleFile=$moduleFile" \
InstallModule
packageRefId=$(getPackageRefId "${modules_packages_identity}" "${choiceId}")
buildpackage "$packageRefId" "${choiceId}" "${PKG_BUILD_DIR}/${choiceId}" "/Extra/modules"
addChoice --group="Module" --start-selected="false" --pkg-refs="$packageRefId" "${choiceId}"
# End build Resolution package module
}
fi
# -
if [[ "${CONFIG_HDAENABLER_MODULE}" == 'y' && -f "${SYMROOT}/i386/modules/HDAEnabler.dylib" ]]; then
{
# Start build HDAEnabler package module
choiceId="HDAEnabler"
moduleFile="HDAEnabler.dylib"
mkdir -p "${PKG_BUILD_DIR}/${choiceId}/Root"
ditto --noextattr --noqtn "${SYMROOT}/i386/modules/$moduleFile" "${PKG_BUILD_DIR}/${choiceId}/Root"
addTemplateScripts --pkg-rootdir="${PKG_BUILD_DIR}/${choiceId}" \
--subst="moduleName=$choiceId" \
--subst="moduleFile=$moduleFile" \
InstallModule
packageRefId=$(getPackageRefId "${modules_packages_identity}" "${choiceId}")
buildpackage "$packageRefId" "${choiceId}" "${PKG_BUILD_DIR}/${choiceId}" "/Extra/modules"
addChoice --group="Module" --start-selected="false" --pkg-refs="$packageRefId" "${choiceId}"
# End build HDAEnabler package module
}
fi
# -
if [[ "${CONFIG_FILENVRAM_MODULE}" == 'y' && -f "${SYMROOT}/i386/modules/FileNVRAM.dylib" ]]; then
{
# Start build FileNVRAM package module
choiceId="FileNVRAM"
moduleFile="FileNVRAM.dylib"
mkdir -p "${PKG_BUILD_DIR}/${choiceId}/Root"
ditto --noextattr --noqtn "${SYMROOT}/i386/modules/$moduleFile" "${PKG_BUILD_DIR}/${choiceId}/Root"
addTemplateScripts --pkg-rootdir="${PKG_BUILD_DIR}/${choiceId}" \
--subst="moduleName=$choiceId" \
--subst="moduleFile=$moduleFile" \
InstallModule
packageRefId=$(getPackageRefId "${modules_packages_identity}" "${choiceId}")
buildpackage "$packageRefId" "${choiceId}" "${PKG_BUILD_DIR}/${choiceId}" "/Extra/modules"
addChoice --group="Module" --start-selected="false" --pkg-refs="$packageRefId" "${choiceId}"
# End build FileNVRAM package module
}
fi
# -
if [[ "${CONFIG_SATA_MODULE}" == 'm' && -f "${SYMROOT}/i386/modules/Sata.dylib" ]]; then
{
# Start build Sata package module
choiceId="Sata"
moduleFile="Sata.dylib"
mkdir -p "${PKG_BUILD_DIR}/${choiceId}/Root"
ditto --noextattr --noqtn "${SYMROOT}/i386/modules/$moduleFile" "${PKG_BUILD_DIR}/${choiceId}/Root"
addTemplateScripts --pkg-rootdir="${PKG_BUILD_DIR}/${choiceId}" \
--subst="moduleName=$choiceId" \
--subst="moduleFile=$moduleFile" \
InstallModule
packageRefId=$(getPackageRefId "${modules_packages_identity}" "${choiceId}")
buildpackage "$packageRefId" "${choiceId}" "${PKG_BUILD_DIR}/${choiceId}" "/Extra/modules"
addChoice --group="Module" --start-selected="false" --pkg-refs="$packageRefId" "${choiceId}"
# End build Sata package module
}
fi
# -
if [[ "${CONFIG_UCLIBCXX_MODULE}" = 'm' && -n "${CONFIG_KLIBC_MODULE}" && \
-f "${SYMROOT}/i386/modules/uClibcxx.dylib" ]]; then
{
klibcPackageRefId=""
if [[ "${CONFIG_KLIBC_MODULE}" == 'm' ]];then
klibcPackageRefId=$(getPackageRefId "${modules_packages_identity}" "klibc")
fi
# Start build uClibc package module
choiceId="uClibc"
moduleFile="uClibcxx.dylib"
mkdir -p "${PKG_BUILD_DIR}/${choiceId}/Root"
ditto --noextattr --noqtn "${SYMROOT}/i386/modules/$moduleFile" "${PKG_BUILD_DIR}/${choiceId}/Root"
addTemplateScripts --pkg-rootdir="${PKG_BUILD_DIR}/${choiceId}" \
--subst="moduleName=$choiceId" \
--subst="moduleFile=$moduleFile" \
InstallModule
packageRefId=$(getPackageRefId "${modules_packages_identity}" "${choiceId}")
buildpackage "$packageRefId" "${choiceId}" "${PKG_BUILD_DIR}/${choiceId}" "/Extra/modules"
# Add the klibc package because the uClibc module is dependent of klibc module
addChoice --group="Module" --start-selected="false" --pkg-refs="$packageRefId $klibcPackageRefId" "${choiceId}"
# End build uClibc package module
}
fi
# -
}
else
{
# Create the final package
pkgutil --flatten "${PKG_BUILD_DIR}/${packagename}" "${distributionFilePath}"
# Here is the place to assign an icon to the pkg
##################################################################
# Here is the place to assign an icon to the pkg #
# command used to generate the file: #
# ditto -c -k --sequesterRsrc --keepParent Icon.icns Icon.zip #
##################################################################
ditto -xk "${PKGROOT}/Icons/pkg.zip" "${PKG_BUILD_DIR}/Icons/"
DeRez -only icns "${PKG_BUILD_DIR}/Icons/Icons/pkg.icns" > "${PKG_BUILD_DIR}/Icons/tempicns.rsrc"
Rez -append "${PKG_BUILD_DIR}/Icons/tempicns.rsrc" -o "${distributionFilePath}"
branches/Chimera/Make.rules
8383
8484
8585
86
87
86
8887
8988
9089
......
123122
124123
125124
126
127
128
129
130
125
126
127
128
129
131130
132131
133132
......
150149
151150
152151
153
152
154153
155154
156155
@echo "#define I386BOOT_VERSION \"5.0.132\"" > $@
@echo "#define I386BOOT_BUILDDATE \"`date \"+%Y-%m-%d %H:%M:%S\"`\"" >> $@
@echo "#define I386BOOT_CHAMELEONVERSION \"`cat $(SRCROOT)/version`\"" >> $@
@echo "#define I386BOOT_CHAMELEONREVISION \"`cat $(SRCROOT)/revision`\"" >> $@
#@echo "#define I386BOOT_CHAMELEONREVISION \"`svnversion -n | tr -d [:alpha:]`\"" >> $@
@echo "#define I386BOOT_CHAMELEONREVISION \"`svnversion -n | tr -d [:alpha:]`\"" >> $@
CONFIG_HEADERS=$(CONFIG_FILES) $(HEADER_VERSION)
target=`echo $@ | sed s/-recursive//`; \
for subdir in $$rev; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
local_target="$$target-local"; \
else \
local_target="$$target"; \
fi; \
if test "$$subdir" = "."; then \
local_target="$$target-local"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $$local_target) \
|| eval $$failcom; \
done
fi
@rm -rf $(OBJROOT) $(SYMROOT) $(DSTROOT) \
$(SRCROOT)/i386/modules/module_includes
distclean: distclean-recursive clean-local clean-dep
@find . $(FIND_IGNORE) \
\( -name '*.orig' -o -name '*.rej' -o -name '*~' \

Archive Download the corresponding diff file

Revision: 2392