From nobody Sat Nov 02 22:16:34 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 4XgsX22vPvz5crSC; Sat, 02 Nov 2024 22:16:34 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XgsX22LsXz4Ljp; Sat, 2 Nov 2024 22:16:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730585794; 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=XUJo7Holcw101p/BGU/F2tcCjAYXTVAGkxeoz3xHr50=; b=pXzZJqkNwniwy4y+qywBa9zujMRXSQ3wE9WCmTctd4rMvMydBesSVo6UnBffoD7ZegonnP fpf3McLGvkp1uN91FK1Wl9s7nrI2pveC2hfKHPFjbVffRih5AsoHc89I3xA3vVm3o8I8Ns sFOq1z5Et3ly4eqITSdexTIliCXXdRX6RxbdZgGm7hI6U7br59Hw8v8ZdxjNK/q0KUJ5NE sOVQMUxd9XohzYU/UovUbPDBe3nG1oAt/rz3SLrABkzw7roTfFlAtiG4ajrVtabYPeHcX5 RD6mxDAcfy2W4kAYLzPRItIhuB1NhWUrd3uC1LZlFNWpgl1sgarUpOJYM2PtTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730585794; 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=XUJo7Holcw101p/BGU/F2tcCjAYXTVAGkxeoz3xHr50=; b=G1WKyb4Yok7apIMfkm4DNIZL3/YSZEfF2VCM89na50Cp1eVWGpRfB2lnHCjQpeQLZ9yYyt 0zRpnU3Cim46QKWq/07LOibY8TOMnf4Y/qfaTnypEEqEdkgFbQDPnMRQrcQLltD2Ua25da GvvbSgRFb6K09nQJGPyUGafJ4h7IOIpf9oq2j/eb1BXGZHxxasSW9IHYk9CiUHrD6W5c+l WCf+P4I2+SoiHkUfm40g1iTgaDMv5CC9UhiE0rIXh9lgMRS1WIibgojO/KTmD3E1yrCW4u vtJhb/XL41APtQTIZW80LmVZHaA2u8SD24Ur/V8SmnRm63JSSKJHxHE23uTcEA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730585794; a=rsa-sha256; cv=none; b=ZSkWO18IlqhIZqgbEIYHxTn2wKPhu+s8qj0Dt8bb4NpbJhsdx4GX+E6iDKpVTf9xJIIwTs cuSVyS4leEJrL7dt1+hRnnAURAGd1XaV21fQ1zS7B9FcvL1sV+ctRCc491+OYNNTWlb16u e3YYymsn72ZYisPwk+doGkJqOw/x+Affnp8hqd9J25mksUUqrrHvkTPJrIfSlonoEBm2nV njlmJYJ8qMiZZ/AEZTivpkEkeOZytVSsLIF95UtSaeIGXfI8HxJ+Xc/y3PpU2y7Dq80VkA 8JpxWRQ+2gBH07eoYYbmuNjUqUNyRwZAFUdh/fIHEpuYx/GPGkfk5mQD6mgBew== 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 4XgsX21p99zMdr; Sat, 2 Nov 2024 22:16:34 +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 4A2MGYMh032010; Sat, 2 Nov 2024 22:16:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A2MGYPt032007; Sat, 2 Nov 2024 22:16:34 GMT (envelope-from git) Date: Sat, 2 Nov 2024 22:16:34 GMT Message-Id: <202411022216.4A2MGYPt032007@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: 47ef2a131091 - main - loader.efi: Fix LOADER_NET_SUPPORT=no builds 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: 47ef2a131091508e049ab10cad7f91a3c1342cd9 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=47ef2a131091508e049ab10cad7f91a3c1342cd9 commit 47ef2a131091508e049ab10cad7f91a3c1342cd9 Author: Tatiana AuthorDate: 2024-11-02 22:13:58 +0000 Commit: Warner Losh CommitDate: 2024-11-02 22:13:58 +0000 loader.efi: Fix LOADER_NET_SUPPORT=no builds We include too many references to networking things in the non-networking build for loader.efi. Ifdef out netserver command when we are disabling network support to resolve. PR: 277528 MFC After: 2 days Reviewed by: imp --- stand/efi/loader/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c index 0e2c580d1a8a..500fcba20938 100644 --- a/stand/efi/loader/main.c +++ b/stand/efi/loader/main.c @@ -1960,6 +1960,7 @@ command_chain(int argc, char *argv[]) COMMAND_SET(chain, "chain", "chain load file", command_chain); +#if defined(LOADER_NET_SUPPORT) extern struct in_addr servip; static int command_netserver(int argc, char *argv[]) @@ -1990,3 +1991,4 @@ command_netserver(int argc, char *argv[]) COMMAND_SET(netserver, "netserver", "change or display netserver URI", command_netserver); +#endif