From f9d4c165abcb579336ee991762c61dffaa04c1d1 Mon Sep 17 00:00:00 2001 From: imp Date: Thu, 30 Dec 2004 23:22:08 +0000 Subject: Remove special case from *devs2h loop for usb Move usb out of the loop since the other devs2h programs don't grok -h Add new rule for usbdevs_data.h --- sys/conf/kmod.mk | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk index ec45407..5c3ea01 100644 --- a/sys/conf/kmod.mk +++ b/sys/conf/kmod.mk @@ -340,13 +340,9 @@ vnode_if_typedef.h: ${AWK} -f @/tools/vnode_if.awk @/kern/vnode_if.src -q .endif -.for _i in mii pccard usb +.for _i in mii pccard .if ${SRCS:M${_i}devs.h} != "" CLEANFILES+= ${_i}devs.h -_i= ${_i:Musb} -.if !empty(_i) -CLEANFILES+= ${_i}devs_data.h -.endif .if !exists(@) ${_i}devs.h: @ .else @@ -356,6 +352,26 @@ ${_i}devs.h: @/tools/${_i}devs2h.awk @/dev/${_i}/${_i}devs .endif .endfor # _i +.if ${SRCS:Musbdevs.h} != "" +CLEANFILES+= usbdevs.h +.if !exists(@) +usbdevs.h: @ +.else +usbdevs.h: @/tools/usbdevs2h.awk @/dev/usb/usbdevs +.endif + ${AWK} -f @/tools/usbdevs2h.awk @/dev/usb/usbdevs -h +.endif + +.if ${SRCS:Musbdevs_data.h} != "" +CLEANFILES+= usbdevs_data.h +.if !exists(@) +usbdevs_data.h: @ +.else +usbdevs_data.h: @/tools/usbdevs2h.awk @/dev/usb/usbdevs +.endif + ${AWK} -f @/tools/usbdevs2h.awk @/dev/usb/usbdevs -d +.endif + .if ${SRCS:Macpi_quirks.h} != "" CLEANFILES+= acpi_quirks.h .if !exists(@) -- cgit v1.1