-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 89455 b: refs/heads/master c: b64f34c h: refs/heads/master i: 89453: bdfdf5f 89451: 8bec9cc 89447: 8c140e5 89439: 8983de0 v: v3
- Loading branch information
Hidetoshi Seto
authored and
Tony Luck
committed
Feb 20, 2008
1 parent
fea2c10
commit f042478
Showing
2,287 changed files
with
30,880 additions
and
49,457 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 2a467d5f7d6bdc90c365db167a10022dd8351894 | ||
refs/heads/master: b64f34cdfe5bef9dfed1304c513220b0f2862eca |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,5 +53,3 @@ cscope.* | |
|
||
*.orig | ||
*.rej | ||
*~ | ||
\#*# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
Linux supports a method of overriding the BIOS DSDT: | ||
Linux supports two methods of overriding the BIOS DSDT: | ||
|
||
CONFIG_ACPI_CUSTOM_DSDT builds the image into the kernel. | ||
|
||
When to use this method is described in detail on the | ||
CONFIG_ACPI_CUSTOM_DSDT_INITRD adds the image to the initrd. | ||
|
||
When to use these methods is described in detail on the | ||
Linux/ACPI home page: | ||
http://www.lesswatts.org/projects/acpi/overridingDSDT.php | ||
|
||
Note that if both options are used, the DSDT supplied | ||
by the INITRD method takes precedence. | ||
|
||
Documentation/initramfs-add-dsdt.sh is provided for convenience | ||
for use with the CONFIG_ACPI_CUSTOM_DSDT_INITRD method. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash | ||
# Adds a DSDT file to the initrd (if it's an initramfs) | ||
# first argument is the name of archive | ||
# second argument is the name of the file to add | ||
# The file will be copied as /DSDT.aml | ||
|
||
# 20060126: fix "Premature end of file" with some old cpio (Roland Robic) | ||
# 20060205: this time it should really work | ||
|
||
# check the arguments | ||
if [ $# -ne 2 ]; then | ||
program_name=$(basename $0) | ||
echo "\ | ||
$program_name: too few arguments | ||
Usage: $program_name initrd-name.img DSDT-to-add.aml | ||
Adds a DSDT file to an initrd (in initramfs format) | ||
initrd-name.img: filename of the initrd in initramfs format | ||
DSDT-to-add.aml: filename of the DSDT file to add | ||
" 1>&2 | ||
exit 1 | ||
fi | ||
|
||
# we should check it's an initramfs | ||
|
||
tempcpio=$(mktemp -d) | ||
# cleanup on exit, hangup, interrupt, quit, termination | ||
trap 'rm -rf $tempcpio' 0 1 2 3 15 | ||
|
||
# extract the archive | ||
gunzip -c "$1" > "$tempcpio"/initramfs.cpio || exit 1 | ||
|
||
# copy the DSDT file at the root of the directory so that we can call it "/DSDT.aml" | ||
cp -f "$2" "$tempcpio"/DSDT.aml | ||
|
||
# add the file | ||
cd "$tempcpio" | ||
(echo DSDT.aml | cpio --quiet -H newc -o -A -O "$tempcpio"/initramfs.cpio) || exit 1 | ||
cd "$OLDPWD" | ||
|
||
# re-compress the archive | ||
gzip -c "$tempcpio"/initramfs.cpio > "$1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.