kernel: Really fix DEV_SUPPORT for sys/dev/virtual.
authorSascha Wildner <saw@online.de>
Sat, 17 Mar 2012 16:00:46 +0000 (17:00 +0100)
committerSascha Wildner <saw@online.de>
Sat, 17 Mar 2012 16:00:46 +0000 (17:00 +0100)
Reported-by: aggelos
sys/dev/virtual/Makefile

index 60cd7ee..3514db7 100644 (file)
@@ -1,3 +1,12 @@
+.include "${.CURDIR}/../../platform/${MACHINE_PLATFORM}/Makefile.inc"
+
 SUBDIR=        vkernel
 
+.for dir in ${SUBDIR}
+.if empty(DEV_SUPPORT:Mvirtual) && \
+       empty(DEV_SUPPORT:Mvirtual/${dir}) && empty(DEV_SUPPORT:Mvirtual/${dir}/*)
+SUBDIR:= ${SUBDIR:N${dir}}
+.endif
+.endfor
+
 .include <bsd.subdir.mk>