143f8d89ab
(e.g. LCD white-out after resume) on some machine cased by re-initialize video BIOS code in acpi_wakecode.
30 lines
596 B
Makefile
30 lines
596 B
Makefile
# $FreeBSD$
|
|
|
|
# Correct path for kernel builds
|
|
# Don't rely on the kernel's .depend file
|
|
.ifdef MAKESRCPATH
|
|
.PATH: ${MAKESRCPATH}
|
|
DEPENDFILE=
|
|
.else
|
|
MAKESRCPATH= ${.CURDIR}
|
|
CLEANFILES= acpi_wakecode.h acpi_wakecode.bin acpi_wakecode.o
|
|
.endif
|
|
CFLAGS+= -I.
|
|
|
|
.ifdef ACPI_NO_RESET_VIDEO
|
|
CFLAGS+= -DACPI_NO_RESET_VIDEO
|
|
.endif
|
|
|
|
all: acpi_wakecode.h
|
|
|
|
acpi_wakecode.o: acpi_wakecode.S
|
|
|
|
acpi_wakecode.bin: acpi_wakecode.o
|
|
objcopy -S -O binary acpi_wakecode.o acpi_wakecode.bin
|
|
|
|
acpi_wakecode.h: acpi_wakecode.bin acpi_wakecode.o
|
|
sh ${MAKESRCPATH}/genwakecode.sh > acpi_wakecode.h
|
|
|
|
.include <bsd.prog.mk>
|
|
|