AUTO_OBJ: Fix 'old style' kernel builds using wrong .OBJDIR.
There's no way currently to automatically prevent the bad .OBJDIR from being created but it can at least be prevented from being used. Passing WITHOUT_AUTO_OBJ=yes or MK_AUTO_OBJ=no or -DNO_OBJ in will prevent it. Reported by: jeffr Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D12989
This commit is contained in:
parent
066b9ae54e
commit
6c2f618666
@ -24,6 +24,9 @@ _srcconf_included_:
|
||||
.MAKE.MODE+= curdirOk=yes
|
||||
.endif
|
||||
|
||||
# The kernel build always expects .OBJDIR=.CURDIR.
|
||||
.OBJDIR: ${.CURDIR}
|
||||
|
||||
.if defined(NO_OBJWALK) || ${MK_AUTO_OBJ} == "yes"
|
||||
NO_OBJWALK= t
|
||||
NO_MODULES_OBJ= t
|
||||
|
Loading…
Reference in New Issue
Block a user