From 684c1c1ddbab110dc5afa8f150cf942eb771f48c Mon Sep 17 00:00:00 2001 From: Nate Lawson Date: Thu, 24 Jun 2004 06:29:22 +0000 Subject: [PATCH] Hook acpi_quirks up to the build for kernel and modules. --- sys/conf/files | 5 +++++ sys/conf/kmod.mk | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/sys/conf/files b/sys/conf/files index 8c1a1364a596..9d36868d0715 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -4,6 +4,11 @@ # limitations in config: backslash-newline doesn't work in strings, and # dependency lines other than the first are silently ignored. # +acpi_quirks.h standard \ + dependency "$S/tools/acpi_quirks2h.awk $S/dev/acpica/acpi_quirks" \ + compile-with "${AWK} -f $S/tools/acpi_quirks2h.awk $S/dev/acpica/acpi_quirks" \ + no-obj no-implicit-rule \ + clean "acpi_quirks.h" aicasm optional ahc \ dependency "$S/dev/aic7xxx/aicasm/*.[chyl]" \ compile-with "CC=${CC} ${MAKE} -f $S/dev/aic7xxx/aicasm/Makefile MAKESRCPATH=$S/dev/aic7xxx/aicasm" \ diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index 90c839e1fe16..69538753a0ba 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -343,6 +343,17 @@ ${_i}devs.h: @/tools/${_i}devs2h.awk @/dev/${_i}/${_i}devs .endif .endfor # _i +.if ${SRCS:Macpi_quirks.h} != "" +CLEANFILES+= acpi_quirks.h +.if !exists(@) +acpi_quirks.h: @ +.endif +.if exists(@) +acpi_quirks.h: @/tools/acpi_quirks2h.awk @/dev/acpica/acpi_quirks +.endif + ${AWK} -f @/tools/acpi_quirks2h.awk @/dev/acpica/acpi_quirks +.endif + regress: lint: ${SRCS}