aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Thompson <thompsa@FreeBSD.org>2009-02-26 20:54:43 +0000
committerAndrew Thompson <thompsa@FreeBSD.org>2009-02-26 20:54:43 +0000
commit1c3b75434324743faf25e3874c6ca4a57c918d6e (patch)
tree137deb47ba0adf3e70acc363d86777ea332193ec
parente0e0f30f42a026cacc7c79ebf176043fc8b17c3f (diff)
downloadsrc-1c3b75434324743faf25e3874c6ca4a57c918d6e.tar.gz
src-1c3b75434324743faf25e3874c6ca4a57c918d6e.zip
Allow the old usb stack to compile by adding the appropriate -I foo, this must
go before the standard -I$S to have the search happen before /sys/. Make this conditional on 'makeoptions WITH_LEGACY=1' in the kernel config. Prodded by: sam
Notes
Notes: svn path=/head/; revision=189089
-rw-r--r--sys/conf/kern.pre.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk
index ee74a9e82837..30ba6a8c1c8d 100644
--- a/sys/conf/kern.pre.mk
+++ b/sys/conf/kern.pre.mk
@@ -53,7 +53,11 @@ C_DIALECT= -std=c99
NOSTDINC= -nostdinc
.endif
-INCLUDES= ${NOSTDINC} ${INCLMAGIC} -I. -I$S
+.if defined(WITH_LEGACY)
+LEGACY_INC= -I$S/legacy
+.endif
+
+INCLUDES= ${NOSTDINC} ${INCLMAGIC} -I. ${LEGACY_INC} -I$S
# This hack lets us use the OpenBSD altq code without spamming a new
# include path into contrib'ed source files.