Chameleon

Chameleon Commit Details

Date:2011-09-29 15:18:50 (12 years 6 months ago)
Author:blackosx
Commit:1588
Parents: 1587
Message:Rename BootOptions folder to OptionalSettings. Update headers of settings files.
Changes:
R/branches/blackosx/package/BootOptions → /branches/blackosx/package/OptionalSettings
M/branches/blackosx/package/OptionalSettings/Video.txt
M/branches/blackosx/package/buildpkg.sh
M/branches/blackosx/package/OptionalSettings/PowerManagement.txt
M/branches/blackosx/package/OptionalSettings/General.txt
M/branches/blackosx/package/OptionalSettings/KernelFlags.txt
M/branches/blackosx/package/OptionalSettings/Control.txt
M/branches/blackosx/package/OptionalSettings/Resolution.txt

File differences

branches/blackosx/package/OptionalSettings/Resolution.txt
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
# ---------------------------------------------
# Chameleon Optional Settings List.
# Add boot options or kernel flags in to these files.
# The filename is used as the sub menu heading.
# ---------------------------------------------
# To add boot option: Structure is name:key=value
# example1: InstantMenu:Instant Menu=Yes
# example2: DropSSDT:DropSSDT=Yes
# ---------------------------------------------
# To add kernel flag: Structure is name:KFflag=kernelflag
# example1: Npci:KFflag=npci=0x2000
# example2: Verbose:KFflag=-v
# ---------------------------------------------
# Note: There must be a carriage return at end of last line
# ---------------------------------------------
Exclusive=True
# ---------------------------------------------
1024x600x32:Graphics Mode=1024x600x32
1024x768x32:Graphics Mode=1024x768x32
1280x768x32:Graphics Mode=1280x768x32
1280x800x32:Graphics Mode=1280x800x32
1280x960x32:Graphics Mode=1280x960x32
1280x1024x32:Graphics Mode=1280x1024x32
1440x900x32:Graphics Mode=1440x900x32
1600x900x32:Graphics Mode=1600x900x32
1680x1050x32:Graphics Mode=1680x1050x32
1920x1080x32:Graphics Mode=1920x1080x32
1920x1200x32:Graphics Mode=1920x1200x32
branches/blackosx/package/OptionalSettings/Video.txt
1
2
3
4
5
6
7
8
9
10
11
# ---------------------------------------------
# Chameleon boot options list.
# Structure is name:key=value
# Note: There must be a carriage return at end of last line
# ---------------------------------------------
Exclusive=False
# ---------------------------------------------
GraphicsEnabler:GraphicsEnabler=Yes
UseAtiROM:UseAtiROM=Yes
UseNvidiaROM:UseNvidiaROM=Yes
VBIOS:VBIOS=Yes
branches/blackosx/package/OptionalSettings/PowerManagement.txt
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
# ---------------------------------------------
# Chameleon Optional Settings List.
# Add boot options or kernel flags in to these files.
# The filename is used as the sub menu heading.
# ---------------------------------------------
# To add boot option: Structure is name:key=value
# example1: InstantMenu:Instant Menu=Yes
# example2: DropSSDT:DropSSDT=Yes
# ---------------------------------------------
# To add kernel flag: Structure is name:KFflag=kernelflag
# example1: Npci:KFflag=npci=0x2000
# example2: Verbose:KFflag=-v
# ---------------------------------------------
# Note: There must be a carriage return at end of last line
# ---------------------------------------------
Exclusive=False
# ---------------------------------------------
CSTUsingSystemIO:CSTUsingSystemIO=Yes
DropSSDT:DropSSDT=Yes
EnableC2State:EnableC2State=Yes
EnableC3State:EnableC3State=Yes
EnableC4State:EnableC4State=Yes
GenerateCStates:GenerateCStates=Yes
GeneratePStates:GeneratePStates=Yes
branches/blackosx/package/OptionalSettings/General.txt
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
# ---------------------------------------------
# Chameleon Optional Settings List.
# Add boot options or kernel flags in to these files.
# The filename is used as the sub menu heading.
# ---------------------------------------------
# To add boot option: Structure is name:key=value
# example1: InstantMenu:Instant Menu=Yes
# example2: DropSSDT:DropSSDT=Yes
# ---------------------------------------------
# To add kernel flag: Structure is name:KFflag=kernelflag
# example1: Npci:KFflag=npci=0x2000
# example2: Verbose:KFflag=-v
# ---------------------------------------------
# Note: There must be a carriage return at end of last line
# ---------------------------------------------
Exclusive=False
# ---------------------------------------------
arch:arch=i386
EHCIacquire:EHCIacquire=Yes
EthernetBuiltIn:EthernetBuiltIn=Yes
ForceHPET:ForceHPET=Yes
ForceWake:ForceWake=Yes
RestartFix:RestartFix=No
UHCIreset:UHCIreset=Yes
UseMemDetect:UseMemDetect=No
UseKernelCache:UseKernelCache=Yes
Wake:Wake=Yes
branches/blackosx/package/OptionalSettings/KernelFlags.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# ---------------------------------------------
# Chameleon Optional Settings List.
# Add boot options or kernel flags in to these files.
# The filename is used as the sub menu heading.
# ---------------------------------------------
# To add boot option: Structure is name:key=value
# example1: InstantMenu:Instant Menu=Yes
# example2: DropSSDT:DropSSDT=Yes
# ---------------------------------------------
# To add kernel flag: Structure is name:KFflag=kernelflag
# example1: Npci:KFflag=npci=0x2000
# example2: Verbose:KFflag=-v
# ---------------------------------------------
# Note: There must be a carriage return at end of last line
# ---------------------------------------------
Exclusive=False
# ---------------------------------------------
Verbose:KFflag=-v
Singleusermode:KFflag=-s
Ignorecaches:KFflag=-f
Npci:KFflag=npci=0x2000
branches/blackosx/package/OptionalSettings/Control.txt
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
# ---------------------------------------------
# Chameleon Optional Settings List.
# Add boot options or kernel flags in to these files.
# The filename is used as the sub menu heading.
# ---------------------------------------------
# To add boot option: Structure is name:key=value
# example1: InstantMenu:Instant Menu=Yes
# example2: DropSSDT:DropSSDT=Yes
# ---------------------------------------------
# To add kernel flag: Structure is name:KFflag=kernelflag
# example1: Npci:KFflag=npci=0x2000
# example2: Verbose:KFflag=-v
# ---------------------------------------------
# Note: There must be a carriage return at end of last line
# ---------------------------------------------
Exclusive=False
# ---------------------------------------------
BootBanner:Boot Banner=No
GUI:GUI=No
LegacyLogo:Legacy Logo=Yes
InstantMenu:Instant Menu=Yes
QuietBoot:QuietBoot=Yes
ShowInfo:ShowInfo=No
Wait:Wait=Yes
branches/blackosx/package/buildpkg.sh
189189
190190
191191
192
192
193193
194
195
194
195
196196
197
197
198198
199199
200200
201
201
202202
203203
204204
......
226226
227227
228228
229
230
229
230
231231
232232
233233
......
254254
255255
256256
257
257
258258
259259
260260
......
320320
321321
322322
323
323
324324
325325
326326
((xmlindent++))
# ------------------------------------------------------
# parse BootOptions folder to find files of boot options.
# parse OptionalSettings folder to find files of boot options.
# ------------------------------------------------------
bootOptionsFolder="${pkgroot}/BootOptions"
bootOptionFiles=($( find "${bootOptionsFolder}" -depth 1 -not -name '.svn' ))
OptionalSettingsFolder="${pkgroot}/OptionalSettings"
OptionalSettingsFiles=($( find "${OptionalSettingsFolder}" -depth 1 -not -name '.svn' ))
for (( i = 0 ; i < ${#bootOptionFiles[@]} ; i++ ))
for (( i = 0 ; i < ${#OptionalSettingsFiles[@]} ; i++ ))
do
# Take filename and Strip .txt from end and path from front
builtOptionsList=$( echo ${bootOptionFiles[$i]%.txt} )
builtOptionsList=$( echo ${OptionalSettingsFiles[$i]%.txt} )
builtOptionsList=$( echo ${builtOptionsList##*/} )
echo "================= $builtOptionsList ================="
outline[$((outlinecount++))]="${indent[$xmlindent]}\t<line choice=\"${builtOptionsList}\">"
((count++))
fi
fi
done < ${bootOptionFiles[$i]}
buildbootoptions "$1" "${exclusiveFlag}" "${exclusiveName}"
done < ${OptionalSettingsFiles[$i]}
buildoptionalsettings "$1" "${exclusiveFlag}" "${exclusiveName}"
((xmlindent--))
outline[$((outlinecount++))]="${indent[$xmlindent]}\t</line>"
done
# call buildbootoptions with 1 to indicate exclusive option wanted.
buildbootoptions "$1" "1" "keylayout"
buildoptionalsettings "$1" "1" "keylayout"
((xmlindent--))
outline[$((outlinecount++))]="${indent[$xmlindent]}\t</line>"
chown -R 0:0 "${1}"
}
buildbootoptions()
buildoptionalsettings()
{
# $1 Path to package to build containing Root and or Scripts
# $2 = exclusiveFlag

Archive Download the corresponding diff file

Revision: 1588