2002-05-01 21:52:34 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
2004-07-27 01:33:27 +00:00
|
|
|
file2c 'static char wakecode[] = {' '};' <acpi_wakecode.bin
|
2002-05-01 21:52:34 +00:00
|
|
|
|
2004-12-12 06:59:14 +00:00
|
|
|
nm -n --defined-only acpi_wakecode.o | while read offset dummy what
|
2002-05-01 21:52:34 +00:00
|
|
|
do
|
|
|
|
echo "#define ${what} 0x${offset}"
|
|
|
|
done
|
|
|
|
|
|
|
|
exit 0
|