7ee771aa57
generate the wakecode[] array from acpi_wakecode.bin. The old method was not safe in multibyte locales.
12 lines
193 B
Bash
12 lines
193 B
Bash
#!/bin/sh
|
|
# $FreeBSD$
|
|
#
|
|
file2c 'static char wakecode[] = {' '};' <acpi_wakecode.bin
|
|
|
|
nm -n acpi_wakecode.o | while read offset dummy what
|
|
do
|
|
echo "#define ${what} 0x${offset}"
|
|
done
|
|
|
|
exit 0
|