blob: 69d5e33f12681277a5d6a55e22b616a63a54320c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
# $FreeBSD: src/sys/i386/acpica/genwakecode.sh,v 1.3.22.1.6.1 2010/12/21 17:09:25 kensmith Exp $
#
file2c 'static char wakecode[] = {' '};' <acpi_wakecode.bin
nm -n --defined-only acpi_wakecode.o | while read offset dummy what
do
echo "#define ${what} 0x${offset}"
done
exit 0
|