freebsd-skq/sys/i386/acpica/genwakecode.sh

12 lines
193 B
Bash
Raw Normal View History

#!/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