svn commit: r294915 - head/sys/conf
Bryan Drewery
bdrewery at FreeBSD.org
Wed Jan 27 19:19:49 UTC 2016
On 1/27/2016 6:46 AM, Hans Petter Selasky wrote:
> ==============================================================================
> --- head/sys/conf/kern.post.mk Wed Jan 27 14:16:13 2016 (r294914)
> +++ head/sys/conf/kern.post.mk Wed Jan 27 14:46:30 2016 (r294915)
> @@ -186,12 +186,23 @@ genassym.o: $S/$M/$M/genassym.c
>
> ${SYSTEM_OBJS} genassym.o vers.o: opt_global.h
>
> +# Normal files first
> +CFILES_NORMAL= ${CFILES:N*/cddl/*:N*fs/nfsclient/nfs_clkdtrace*:N*/compat/linuxkpi/common/*:N*/ofed/*:N*/dev/mlx5/*}
> +SFILES_NORMAL= ${SFILES:N*/cddl/*}
> +
> # We have "special" -I include paths for zfs/dtrace files in 'depend'.
> -CFILES_NOCDDL= ${CFILES:N*/cddl/*:N*fs/nfsclient/nfs_clkdtrace*}
> -SFILES_NOCDDL= ${SFILES:N*/cddl/*}
> CFILES_CDDL= ${CFILES:M*/cddl/*}
> SFILES_CDDL= ${SFILES:M*/cddl/*}
>
> +# We have "special" -I include paths for LinuxKPI.
> +CFILES_LINUXKPI=${CFILES:M*/compat/linuxkpi/common/*}
> +
> +# We have "special" -I include paths for OFED.
> +CFILES_OFED=${CFILES:M*/ofed/*}
> +
> +# We have "special" -I include paths for MLX5.
> +CFILES_MLX5=${CFILES:M*/dev/mlx5/*}
> +
> kernel-depend: .depend
> # The argument list can be very long, so use make -V and xargs to
> # pass it to mkdep.
> @@ -220,12 +231,20 @@ DEPENDFILES_OBJS= ${DEPENDOBJS:O:u:C/^/.
> .depend: .PRECIOUS ${SRCS}
> .if ${MK_FAST_DEPEND} == "no"
> rm -f ${.TARGET}.tmp
> - ${MAKE} -V CFILES_NOCDDL -V SYSTEM_CFILES -V GEN_CFILES | \
> +# C files
> + ${MAKE} -V CFILES_NORMAL -V SYSTEM_CFILES -V GEN_CFILES | \
> CC="${_MKDEPCC}" xargs mkdep -a -f ${.TARGET}.tmp ${CFLAGS}
> ${MAKE} -V CFILES_CDDL | \
> CC="${_MKDEPCC}" xargs mkdep -a -f ${.TARGET}.tmp ${ZFS_CFLAGS} \
> ${FBT_CFLAGS} ${DTRACE_CFLAGS}
> - ${MAKE} -V SFILES_NOCDDL | \
> + ${MAKE} -V CFILES_LINUXKPI | \
> + CC="${_MKDEPCC}" xargs mkdep -a -f ${.TARGET}.tmp \
> + ${CFLAGS} ${LINUXKPI_INCLUDES}
> + ${MAKE} -V CFILES_OFED -V CFILES_MLX5 | \
> + CC="${_MKDEPCC}" xargs mkdep -a -f ${.TARGET}.tmp \
> + ${CFLAGS} ${OFEDINCLUDES}
> +# Assembly files
> + ${MAKE} -V SFILES_NORMAL | \
> CC="${_MKDEPCC}" xargs mkdep -a -f ${.TARGET}.tmp ${ASM_CFLAGS}
> ${MAKE} -V SFILES_CDDL | \
> CC="${_MKDEPCC}" xargs mkdep -a -f ${.TARGET}.tmp ${ZFS_ASM_CFLAGS}
>
I plan to nuke this code quite soon in favor of FAST_DEPEND. None of
this or related hacks will be needed anymore.
--
Regards,
Bryan Drewery
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20160127/cc86d4bd/attachment.sig>
More information about the svn-src-all
mailing list