From nobody Fri Oct 25 03:12:07 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XZSWD10jTz5b9vl; Fri, 25 Oct 2024 03:12:08 +0000 (UTC) (envelope-from git@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XZSWC6QBBz4XkD; Fri, 25 Oct 2024 03:12:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729825927; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=szSXApe3vKYzoqzogB5bbGEzDGiB92MivGKXchgaomg=; b=bxWLFiCzxdLdfTJCPLPTgL2JZp8FTjKEUs9RbKAeyloY3xbGe1ziUsuJ3Xcz4Bzx4TnhP+ bPv+8s9nbNZfONAerqI4WvoBcfvZRktSlRTXduVo/DQ8nn7cq6hgmiUn2tj1Niy7zFimxu Ju3gEBDN33W01rwj8FQ9tJ/wXc7GX2/R/TFWUJj47jd5ukBl2EUzlVVU4+McpN9OKlxWKI gumeH/6JZwg1toNlhAoMMlS2GouQ0KJLSRg09+rJZZ8564FmogCMK/MYgugUYmQAYgBqmu l0WW38MyoSjfwxWlUFl/w7VMHJy5QGaazpQSzQFisOYmFdP8O3zCqXs8tQ7psA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729825927; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=szSXApe3vKYzoqzogB5bbGEzDGiB92MivGKXchgaomg=; b=FOqzXD6MSYW9uSuwzfzNyUJ2BnBo+vWbdbPHDY7hkNYH2x7ZwHEoYj9e5dViluwWG/70PF BfHfN8HZXLnDWW3SMmdUq8RZid17UKyyX/x3ZKCH/jJV7n/+wD2PEJ6YGfF7atOFr6fE8w 3sUVLv2YcaMZ4zyhcalzdU1yiPqd7Eyk9sMVdPjG+BwRCoNkAvT+rCeLxWmZUmG3gb002b zJbpWsPxMiCYaNpodx+mUiZFLkg0Z9ux7kfiCQd7tYEx172TG2We6Fx6iPdVPWTIKbjV6a +I5jPtuk2Xr1uCEQooFYybTMeIHXV6QQqN5M8L+q5Lbm0o6vyiVa9JZmOWOVFw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729825927; a=rsa-sha256; cv=none; b=JDocapT5QMO0pmpN90eCmSPOk5iXX6rgqUcI5vmae9cIbJODhdSpKja1eq5FTxlJI9POEL 6YbLYlEioz6VDq1/uK4RFVJ9g+gikdhQ0eWv0SnlAs1IH4eOVzZy0PkCanQ4vUzo25PhZ7 aqeKrIVge0e4TutAwoTnyrjsx/udPaRDd59WOoL8DDVC40caLNO27NrrHHIGzz9cSlQgTb 0RJ7hIidZ3uU7k/txr+0FbHheBQ3wb0ukiRw2K3WlDIY2106N6xAgabVaLtu0Ifuw9OYrP 3vHE8YjRKoBbSGiKqPh6KSASpeK5Ihr8WID+TNPFA6l4z1PMpWbTIzN84kyvZQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XZSWC5kqFz18D3; Fri, 25 Oct 2024 03:12:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49P3C70o005049; Fri, 25 Oct 2024 03:12:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49P3C73n005046; Fri, 25 Oct 2024 03:12:07 GMT (envelope-from git) Date: Fri, 25 Oct 2024 03:12:07 GMT Message-Id: <202410250312.49P3C73n005046@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 358752abdf1c - main - loader/loader.mk: add docs for LOADER_*_SUPPORT variables List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 358752abdf1c44d15e99bc2709b0256a358fd2a9 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=358752abdf1c44d15e99bc2709b0256a358fd2a9 commit 358752abdf1c44d15e99bc2709b0256a358fd2a9 Author: Warner Losh AuthorDate: 2024-10-25 02:22:51 +0000 Commit: Warner Losh CommitDate: 2024-10-25 02:26:26 +0000 loader/loader.mk: add docs for LOADER_*_SUPPORT variables These are internal to the loader and generally can only be set in a makefile that's compiling some variation of loader. Add caveats since these aren't really user-serviceable parts, though some downstreams will tweak individual makefiles for their own purposes. Sponsored by: Netflix --- stand/loader.mk | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/stand/loader.mk b/stand/loader.mk index de717ce7b18b..0f2ff31a5343 100644 --- a/stand/loader.mk +++ b/stand/loader.mk @@ -1,4 +1,3 @@ - .PATH: ${LDRSRC} ${BOOTSRC}/libsa CFLAGS+=-I${LDRSRC} @@ -30,6 +29,33 @@ SRCS+= load_elf64.c reloc_elf64.c SRCS+= metadata.c .endif +# +# LOADER_*_SUPPORT variables are used to subset the boot loader in the various +# configurations each platform supports. These are typically used to omit broken +# options, or to size optimize for space constrained instances. These are set in +# loader Makefiles (which include loader.mk) to control which subset of features +# are enabled. These cannot generally be set in src.conf since that would affect +# all loaders, but also not all loaders are setup for overrides like that and +# not all combinations of the following have been tested or even work. Sometimes +# non-default values won't work due to buggy support for that component being +# optional. +# +# LOADER_BZIP2_SUPPORT Add support for bzip2 compressed files +# LOADER_CD9660_SUPPORT Add support for iso9660 filesystems +# LOADER_DISK_SUPPORT Adds support for disks and mounting filesystems on it +# LOADER_EXT2FS_SUPPORT Add support for ext2 Linux filesystems +# LOADER_GPT_SUPPORT Add support for GPT partitions +# LOADER_GZIP_SUPPORT Add support for gzip compressed files +# LOADER_INSTALL_SUPPORT Add support for booting off of installl ISOs +# LOADER_MBR_SUPPORT Add support for MBR partitions +# LOADER_MSDOS_SUPPORT Add support for FAT filesystems +# LOADER_NET_SUPPORT Adds networking support (useless w/o net drivers sometimes) +# LOADER_NFS_SUPPORT Add NFS support +# LOADER_TFTP_SUPPORT Add TFTP support +# LOADER_UFS_SUPPORT Add support for UFS filesystems +# LOADER_ZFS_SUPPORT Add support for ZFS filesystems +# + .if ${LOADER_DISK_SUPPORT:Uyes} == "yes" CFLAGS.part.c+= -DHAVE_MEMCPY -I${SRCTOP}/sys/contrib/zlib SRCS+= disk.c part.c vdisk.c