mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Use file2c instead of a combination of hexdump, sed and shell script to
generate the wakecode[] array from acpi_wakecode.bin. The old method was not safe in multibyte locales.
This commit is contained in:
parent
03c439e6e0
commit
7ee771aa57
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132680
@ -1,17 +1,7 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
#
|
||||
echo 'static char wakecode[] = {';
|
||||
hexdump -Cv acpi_wakecode.bin | \
|
||||
sed -e 's/^[0-9a-f][0-9a-f]*//' -e 's/\|.*$//' | \
|
||||
while read line
|
||||
do
|
||||
for code in ${line}
|
||||
do
|
||||
echo -n "0x${code},";
|
||||
done
|
||||
done
|
||||
echo '};'
|
||||
file2c 'static char wakecode[] = {' '};' <acpi_wakecode.bin
|
||||
|
||||
nm -n acpi_wakecode.o | while read offset dummy what
|
||||
do
|
||||
|
Loading…
Reference in New Issue
Block a user