summaryrefslogtreecommitdiffstats
path: root/sys/conf/kmod.mk
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-05-10 03:34:20 +0000
committerjhb <jhb@FreeBSD.org>2016-05-10 03:34:20 +0000
commit408d2a9352a4b8c5ccf26de91c4bc2ccf42ebb9d (patch)
treea00db9d9a415d1c0a4c95a587e1945dd432e886b /sys/conf/kmod.mk
parenta6fa930ada9f9e298a69d970d8eccba5fa059742 (diff)
downloadFreeBSD-src-408d2a9352a4b8c5ccf26de91c4bc2ccf42ebb9d.zip
FreeBSD-src-408d2a9352a4b8c5ccf26de91c4bc2ccf42ebb9d.tar.gz
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. Reviewed by: bdrewery MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D6285
Diffstat (limited to 'sys/conf/kmod.mk')
-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 2264ece..67f1646 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -157,7 +157,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} \
@@ -169,7 +169,7 @@ ${_firmw:C/\:.*$/.fwo/}: ${_firmw:C/\:.*$//}
rm ${_firmw:C/\:.*$//}; \
fi
-OBJS+= ${_firmw:C/\:.*$/.fwo/}
+OBJS+= ${_firmw:C/\:.*$/.fwo/:T}
.endfor
.endif
OpenPOWER on IntegriCloud