Explicitly use -I$S/external/bsd/dwc2/dist for dwc2 instead of possibly

getting that include path via DRM.  Fixes evbmips cavium kernel build.
This commit is contained in:
simonb 2021-12-20 11:54:32 +00:00
parent de6a49e804
commit 224d7a563d
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: files.dwc2,v 1.3 2016/02/24 22:17:54 skrll Exp $
# $NetBSD: files.dwc2,v 1.4 2021/12/20 11:54:32 simonb Exp $
# DesignWare HS OTG Controller
#
@ -6,7 +6,9 @@
device dwctwo: usbus, usbroothub, usb_dma, linux
file external/bsd/dwc2/dwc2.c dwctwo needs-flag
makeoptions dwctwo CPPFLAGS+="-I$S/external/bsd -I$S/external/bsd/dwc2/dist"
makeoptions dwctwo CPPFLAGS+="-I$S/external/bsd"
makeoptions dwctwo CPPFLAGS+="-I$S/external/bsd/common/include"
makeoptions dwctwo CPPFLAGS+="-I$S/external/bsd/dwc2/dist"
file external/bsd/dwc2/dist/dwc2_core.c dwctwo
file external/bsd/dwc2/dist/dwc2_coreintr.c dwctwo