--- tools/build/options/WITH_VIMAGE.orig 2013-11-23 01:35:41.000000000 +0700 +++ tools/build/options/WITH_VIMAGE 2013-11-23 01:35:14.000000000 +0700 @@ -0,0 +1,2 @@ +.\" $FreeBSD$ +Set to build with the VIMAGE support. --- share/mk/bsd.own.mk.orig 2013-10-21 21:02:06.000000000 +0700 +++ share/mk/bsd.own.mk 2013-11-23 02:08:02.000000000 +0700 @@ -450,7 +450,8 @@ NMTREE \ OFED \ OPENSSH_NONE_CIPHER \ - SHARED_TOOLCHAIN + SHARED_TOOLCHAIN \ + VIMAGE # # Default behaviour of some options depends on the architecture. Unfortunately --- sys/modules/netgraph/ether/Makefile.orig 2013-11-23 01:22:58.000000000 +0700 +++ sys/modules/netgraph/ether/Makefile 2013-11-23 02:18:37.000000000 +0700 @@ -4,3 +4,9 @@ SRCS= ng_ether.c .include + +.if !defined(KERNBUILDDIR) +.if ${MK_VIMAGE} != "no" +CFLAGS+= -DVIMAGE +.endif +.endif --- modules/netgraph/gif/Makefile.orig 2013-04-07 01:07:05.000000000 +0700 +++ modules/netgraph/gif/Makefile 2013-11-23 02:30:26.000000000 +0700 @@ -12,3 +12,9 @@ .endif .include + +.if !defined(KERNBUILDDIR) +.if ${MK_VIMAGE} != "no" +CFLAGS+= -DVIMAGE +.endif +.endif