From owner-svn-src-all@freebsd.org Wed Mar 20 15:34:44 2019 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6FB5015571B5; Wed, 20 Mar 2019 15:34:44 +0000 (UTC) (envelope-from mmacy@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1266D6C2E7; Wed, 20 Mar 2019 15:34:44 +0000 (UTC) (envelope-from mmacy@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 03A2622B78; Wed, 20 Mar 2019 15:34:44 +0000 (UTC) (envelope-from mmacy@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x2KFYhNY058230; Wed, 20 Mar 2019 15:34:43 GMT (envelope-from mmacy@FreeBSD.org) Received: (from mmacy@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x2KFYefP058216; Wed, 20 Mar 2019 15:34:40 GMT (envelope-from mmacy@FreeBSD.org) Message-Id: <201903201534.x2KFYefP058216@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mmacy set sender to mmacy@FreeBSD.org using -f From: Matt Macy Date: Wed, 20 Mar 2019 15:34:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r345327 - in stable/12: . share/mk stand/efi/boot1 stand/efi/libefi stand/efi/loader stand/i386 stand/i386/loader stand/libsa stand/sparc64 stand/sparc64/loader stand/userboot/userboot ... X-SVN-Group: stable-12 X-SVN-Commit-Author: mmacy X-SVN-Commit-Paths: in stable/12: . share/mk stand/efi/boot1 stand/efi/libefi stand/efi/loader stand/i386 stand/i386/loader stand/libsa stand/sparc64 stand/sparc64/loader stand/userboot/userboot sys/sys tools/build/optio... X-SVN-Commit-Revision: 345327 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 1266D6C2E7 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.94 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_SHORT(-0.94)[-0.945,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Mar 2019 15:34:44 -0000 Author: mmacy Date: Wed Mar 20 15:34:40 2019 New Revision: 345327 URL: https://svnweb.freebsd.org/changeset/base/345327 Log: MFC r342793 - selectively disable ZFS without disabling loader Sponsored by: iX Systems Added: stable/12/tools/build/options/WITHOUT_LOADER_ZFS - copied unchanged from r342793, head/tools/build/options/WITHOUT_LOADER_ZFS Modified: stable/12/.gitattributes stable/12/share/mk/src.opts.mk stable/12/stand/efi/boot1/Makefile stable/12/stand/efi/libefi/Makefile stable/12/stand/efi/loader/Makefile stable/12/stand/i386/Makefile stable/12/stand/i386/loader/Makefile stable/12/stand/libsa/Makefile stable/12/stand/sparc64/Makefile stable/12/stand/sparc64/loader/Makefile stable/12/stand/userboot/userboot/Makefile stable/12/sys/sys/param.h stable/12/tools/build/options/WITHOUT_ZFS Directory Properties: stable/12/ (props changed) Modified: stable/12/.gitattributes ============================================================================== --- stable/12/.gitattributes Wed Mar 20 13:13:50 2019 (r345326) +++ stable/12/.gitattributes Wed Mar 20 15:34:40 2019 (r345327) @@ -3,3 +3,4 @@ *.cpp diff=cpp *.hpp diff=cpp *.py diff=python +. svn-properties=svn:keywords=tools/build/options/WITHOUT_LOADER_ZFS Modified: stable/12/share/mk/src.opts.mk ============================================================================== --- stable/12/share/mk/src.opts.mk Wed Mar 20 13:13:50 2019 (r345326) +++ stable/12/share/mk/src.opts.mk Wed Mar 20 15:34:40 2019 (r345327) @@ -187,6 +187,7 @@ __DEFAULT_YES_OPTIONS = \ WIRELESS \ WPA_SUPPLICANT_EAPOL \ ZFS \ + LOADER_ZFS \ ZONEINFO __DEFAULT_NO_OPTIONS = \ @@ -451,6 +452,7 @@ MK_SOURCELESS_UCODE:= no .if ${MK_CDDL} == "no" MK_ZFS:= no +MK_LOADER_ZFS:= no MK_CTF:= no .endif Modified: stable/12/stand/efi/boot1/Makefile ============================================================================== --- stable/12/stand/efi/boot1/Makefile Wed Mar 20 13:13:50 2019 (r345326) +++ stable/12/stand/efi/boot1/Makefile Wed Mar 20 15:34:40 2019 (r345327) @@ -25,7 +25,7 @@ CWARNFLAGS.zfs_module.c += -Wno-unused-function # architecture-specific loader code SRCS= boot1.c self_reloc.c start.S ufs_module.c -.if ${MK_ZFS} != "no" +.if ${MK_LOADER_ZFS} != "no" SRCS+= zfs_module.c CFLAGS.zfs_module.c+= -I${ZFSSRC} CFLAGS.zfs_module.c+= -I${SYSDIR}/cddl/boot/zfs Modified: stable/12/stand/efi/libefi/Makefile ============================================================================== --- stable/12/stand/efi/libefi/Makefile Wed Mar 20 13:13:50 2019 (r345326) +++ stable/12/stand/efi/libefi/Makefile Wed Mar 20 15:34:40 2019 (r345327) @@ -44,7 +44,7 @@ CFLAGS+= -fPIC -mno-red-zone .endif CFLAGS+= -I${EFIINC} CFLAGS+= -I${EFIINCMD} -.if ${MK_ZFS} != "no" +.if ${MK_LOADER_ZFS} != "no" CFLAGS+= -I${ZFSSRC} CFLAGS+= -DEFI_ZFS_BOOT .endif Modified: stable/12/stand/efi/loader/Makefile ============================================================================== --- stable/12/stand/efi/loader/Makefile Wed Mar 20 13:13:50 2019 (r345326) +++ stable/12/stand/efi/loader/Makefile Wed Mar 20 15:34:40 2019 (r345327) @@ -26,7 +26,7 @@ SRCS= autoload.c \ vers.c CFLAGS+= -I${.CURDIR}/../loader -.if ${MK_ZFS} != "no" +.if ${MK_LOADER_ZFS} != "no" CFLAGS+= -I${ZFSSRC} CFLAGS+= -DEFI_ZFS_BOOT HAVE_ZFS= yes Modified: stable/12/stand/i386/Makefile ============================================================================== --- stable/12/stand/i386/Makefile Wed Mar 20 13:13:50 2019 (r345326) +++ stable/12/stand/i386/Makefile Wed Mar 20 15:34:40 2019 (r345327) @@ -20,6 +20,6 @@ SUBDIR.yes+= pxeldr SUBDIR.yes+= kgzldr .endif -SUBDIR.${MK_ZFS}+= zfsboot gptzfsboot +SUBDIR.${MK_LOADER_ZFS}+= zfsboot gptzfsboot .include Modified: stable/12/stand/i386/loader/Makefile ============================================================================== --- stable/12/stand/i386/loader/Makefile Wed Mar 20 13:13:50 2019 (r345326) +++ stable/12/stand/i386/loader/Makefile Wed Mar 20 15:34:40 2019 (r345327) @@ -1,6 +1,6 @@ # $FreeBSD$ -HAVE_ZFS= ${MK_ZFS} +HAVE_ZFS= ${MK_LOADER_ZFS} LOADER_NET_SUPPORT?= yes LOADER_NFS_SUPPORT?= yes @@ -64,7 +64,7 @@ ${LOADER}: ${LOADER}.bin ${BTXLDR} ${BTXKERN} ${LOADER}.bin: ${LOADER}.sym strip -R .comment -R .note -o ${.TARGET} ${.ALLSRC} -.if ${MK_ZFS} == "yes" && ${LOADER_INTERP} == ${LOADER_DEFAULT_INTERP} +.if ${MK_LOADER_ZFS} == "yes" && ${LOADER_INTERP} == ${LOADER_DEFAULT_INTERP} LINKS+= ${BINDIR}/${LOADER} ${BINDIR}/zfsloader .endif .if ${LOADER_INTERP} == ${LOADER_DEFAULT_INTERP} Modified: stable/12/stand/libsa/Makefile ============================================================================== --- stable/12/stand/libsa/Makefile Wed Mar 20 13:13:50 2019 (r345326) +++ stable/12/stand/libsa/Makefile Wed Mar 20 15:34:40 2019 (r345327) @@ -165,7 +165,7 @@ SRCS+= explicit_bzero.c .endif # Maybe ZFS -.if ${MK_ZFS} == "yes" +.if ${MK_LOADER_ZFS} == "yes" .include "${SASRC}/zfs/Makefile.inc" .endif Modified: stable/12/stand/sparc64/Makefile ============================================================================== --- stable/12/stand/sparc64/Makefile Wed Mar 20 13:13:50 2019 (r345326) +++ stable/12/stand/sparc64/Makefile Wed Mar 20 15:34:40 2019 (r345327) @@ -5,6 +5,6 @@ NO_OBJ=t .include SUBDIR.yes= boot1 loader -SUBDIR.${MK_ZFS}+=zfsboot +SUBDIR.${MK_LOADER_ZFS}+=zfsboot .include Modified: stable/12/stand/sparc64/loader/Makefile ============================================================================== --- stable/12/stand/sparc64/loader/Makefile Wed Mar 20 13:13:50 2019 (r345326) +++ stable/12/stand/sparc64/loader/Makefile Wed Mar 20 15:34:40 2019 (r345327) @@ -1,6 +1,6 @@ # $FreeBSD$ -HAVE_ZFS= ${MK_ZFS} +HAVE_ZFS= ${MK_LOADER_ZFS} LOADER_DISK_SUPPORT?= yes LOADER_UFS_SUPPORT?= yes @@ -21,7 +21,7 @@ NEWVERSWHAT?= "bootstrap loader" sparc64 VERSION_FILE= ${.CURDIR}/../loader/version INSTALLFLAGS= -b -.if ${MK_ZFS} != "no" +.if ${MK_LOADER_ZFS} != "no" HAVE_ZFS= yes .endif @@ -42,7 +42,7 @@ HELP_FILES= ${.CURDIR}/help.sparc64 LDFLAGS+= -static -.if ${MK_ZFS} == "yes" +.if ${MK_LOADER_ZFS} == "yes" LINKS= ${BINDIR}/loader ${BINDIR}/zfsloader .endif Modified: stable/12/stand/userboot/userboot/Makefile ============================================================================== --- stable/12/stand/userboot/userboot/Makefile Wed Mar 20 13:13:50 2019 (r345326) +++ stable/12/stand/userboot/userboot/Makefile Wed Mar 20 15:34:40 2019 (r345327) @@ -45,7 +45,7 @@ VERSION_FILE= ${.CURDIR}/../userboot/version LINKS+= ${BINDIR}/${SHLIB_NAME} ${BINDIR}/userboot.so .endif -.if ${MK_ZFS} != "no" +.if ${MK_LOADER_ZFS} != "no" CFLAGS+= -DUSERBOOT_ZFS_SUPPORT HAVE_ZFS=yes .endif Modified: stable/12/sys/sys/param.h ============================================================================== --- stable/12/sys/sys/param.h Wed Mar 20 13:13:50 2019 (r345326) +++ stable/12/sys/sys/param.h Wed Mar 20 15:34:40 2019 (r345327) @@ -60,7 +60,7 @@ * in the range 5 to 9. */ #undef __FreeBSD_version -#define __FreeBSD_version 1200504 /* Master, propagated to newvers */ +#define __FreeBSD_version 1200505 /* Master, propagated to newvers */ /* * __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD, Copied: stable/12/tools/build/options/WITHOUT_LOADER_ZFS (from r342793, head/tools/build/options/WITHOUT_LOADER_ZFS) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ stable/12/tools/build/options/WITHOUT_LOADER_ZFS Wed Mar 20 15:34:40 2019 (r345327, copy of r342793, head/tools/build/options/WITHOUT_LOADER_ZFS) @@ -0,0 +1,2 @@ +.\" $FreeBSD$ +Set to not build ZFS file system boot loader support. Modified: stable/12/tools/build/options/WITHOUT_ZFS ============================================================================== --- stable/12/tools/build/options/WITHOUT_ZFS Wed Mar 20 13:13:50 2019 (r345326) +++ stable/12/tools/build/options/WITHOUT_ZFS Wed Mar 20 15:34:40 2019 (r345327) @@ -1,2 +1,2 @@ .\" $FreeBSD$ -Set to not build ZFS file system. +Set to not build ZFS file system kernel module, libraries, and user commands.