summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-05-24 23:04:16 +0000
committerjhb <jhb@FreeBSD.org>2016-05-24 23:04:16 +0000
commit3eaedb459fa4a46395f115c7941533c3fee23131 (patch)
treea358a864d4665683c69f69be97980140c7626310 /sys/conf
parent052b0aa91c8b5609f559e93d76f17529dd941846 (diff)
downloadFreeBSD-src-3eaedb459fa4a46395f115c7941533c3fee23131.zip
FreeBSD-src-3eaedb459fa4a46395f115c7941533c3fee23131.tar.gz
MFC 299310:
Don't store generated firmware object files in the source directory. Trim the leading directory of a firmware source file from the resulting target object file name so the object file is stored in the object directory. Previously, using 'FIRMWS= /path/to/fw.bin:fw.bin' would store the generated 'fw.bin.fwo' file in the /path/to directory. Now it stores it in the object directory of the kernel module being built.
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/kmod.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index 6b81ec0..8b363d4 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -164,7 +164,7 @@ SRCS+= ${KMOD:S/$/.c/}
CLEANFILES+= ${KMOD:S/$/.c/}
.for _firmw in ${FIRMWS}
-${_firmw:C/\:.*$/.fwo/}: ${_firmw:C/\:.*$//}
+${_firmw:C/\:.*$/.fwo/:T}: ${_firmw:C/\:.*$//}
@${ECHO} ${_firmw:C/\:.*$//} ${.ALLSRC:M*${_firmw:C/\:.*$//}}
@if [ -e ${_firmw:C/\:.*$//} ]; then \
${LD} -b binary --no-warn-mismatch ${LDFLAGS} \
@@ -176,7 +176,7 @@ ${_firmw:C/\:.*$/.fwo/}: ${_firmw:C/\:.*$//}
rm ${_firmw:C/\:.*$//}; \
fi
-OBJS+= ${_firmw:C/\:.*$/.fwo/}
+OBJS+= ${_firmw:C/\:.*$/.fwo/:T}
.endfor
.endif
OpenPOWER on IntegriCloud