aboutsummaryrefslogtreecommitdiff
path: root/sys/conf/kern.post.mk
diff options
context:
space:
mode:
authorMatt Macy <mmacy@FreeBSD.org>2018-07-03 18:39:43 +0000
committerMatt Macy <mmacy@FreeBSD.org>2018-07-03 18:39:43 +0000
commit018617b8ba53ab437e8e006f6218a3d7af219d09 (patch)
tree4e8216d2a75dbe555b5b5e6bc0db6f01f3b44be2 /sys/conf/kern.post.mk
parent87c259d4362ace0504183c33ae3ece6134771482 (diff)
downloadsrc-018617b8ba53ab437e8e006f6218a3d7af219d09.tar.gz
src-018617b8ba53ab437e8e006f6218a3d7af219d09.zip
explain the purpose of genoffset_test
Notes
Notes: svn path=/head/; revision=335903
Diffstat (limited to 'sys/conf/kern.post.mk')
-rw-r--r--sys/conf/kern.post.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk
index 8fb4d925ce8b..7c48642b7fdf 100644
--- a/sys/conf/kern.post.mk
+++ b/sys/conf/kern.post.mk
@@ -194,6 +194,9 @@ genoffset.o: $S/kern/genoffset.c
genoffset_test.c: $S/kern/genoffset.c
cp $S/kern/genoffset.c genoffset_test.c
+# genoffset_test.o is not actually used for anything - the point of compiling it
+# is to exercise the CTASSERT that checks that the offsets in the offset.inc
+# _lite struct(s) match those in the original(s).
genoffset_test.o: genoffset_test.c offset.inc
${CC} -c ${CFLAGS:N-flto:N-fno-common} -DOFFSET_TEST genoffset_test.c