libsysdecode use MKTABLES_INCLUDEDIR

We do not conflate SYSROOT with STAGE_ROOT/DESTDIR during
DIRDEPS_BUILD

Make sure mktables looks in the right place.

Reviewed by:	stevek
Sponsored by:	Juniper Networks, Inc.
Differential Revision:	https://reviews.freebsd.org/D44415
This commit is contained in:
Simon J. Gerraty 2024-03-21 11:55:56 -07:00
parent 3f72f36cf2
commit 139d114acc

View file

@ -127,8 +127,13 @@ CFLAGS.gcc.ioctl.c+= -Wno-redundant-decls
CFLAGS.gcc+= ${CFLAGS.gcc.${.IMPSRC}}
DEPENDOBJS+= tables.h tables_linux.h
.if ${MK_DIRDEPS_BUILD} == "yes"
MKTABLES_INCLUDEDIR= ${STAGE_INCLUDEDIR}
.else
MKTABLES_INCLUDEDIR= ${SYSROOT:U${DESTDIR}}${INCLUDEDIR}
.endif
tables.h: mktables
sh ${.CURDIR}/mktables ${SYSROOT:U${DESTDIR}}${INCLUDEDIR} ${.TARGET}
sh ${.CURDIR}/mktables ${MKTABLES_INCLUDEDIR} ${.TARGET}
tables_linux.h: mklinuxtables
sh ${.CURDIR}/mklinuxtables ${SRCTOP}/sys ${.TARGET}