mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
92781c3567
(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>
|
|
|