From patchwork Wed Sep 20 17:27:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 113159 Delivered-To: patch@linaro.org Received: by 10.80.163.150 with SMTP id s22csp925840edb; Wed, 20 Sep 2017 10:28:03 -0700 (PDT) X-Received: by 10.84.132.66 with SMTP id 60mr2811017ple.158.1505928483038; Wed, 20 Sep 2017 10:28:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505928483; cv=none; d=google.com; s=arc-20160816; b=ZEC+RwsEJcp7kGMKb9T7Qc3HUtL9yQtIQL49d3wyQVaYWEpLbpzwZz5Wfnr4QbXzxC /iXY7ggWsZvdx/ZYaYrE98WWoEj0VCU+QbPg+KVANl6yIaPO2tIJCPuMT6FRqwmvI/A6 D9nw1z3Wv7E1P/83DHGGgp2+Siv04tgwE0m5vOUXu04Q+T4G8gRvPbOIhC8QjhscAqWE g6lfBOBFTR7IiJsAobfPpBqYnADEMAim2wyiuvFri4vARL96PFWZgMJIFZgcqvVyBeff Xb8pLKz338Iia316/MEz5IupfXLvUZ8K546iKYcKq5f9/JmobIrejVs9I5oFRN/m2tMd Yoww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=w94zUdLJg/8s3Vh1hlJK/KoTKOIs0/E0+du2pWkqlXY=; b=z4GtYUNy/5iQO7jRBiDFRP9Wpp7wjCEg64xWIIcBWCBj9/rEW1Q8MhdMcGrvXR7uLr fB3/trySpuY8QoG8j7MeKx5El3k0RzKRNlHSbcTrlQBdeCo4Z1VccXkLvAZRrKyVrb9+ AigCil9lxnP6gYncHJAe+bJbPnV7yulhGawIx1fUldM847Vdu0AALpomhQYb4OT31I+k sdIIgWtNnbmP496ylXI5cQNFHV4K1SvlRpWhMmiO3V3tNu6DM0eP9luP1QZivvuDq9X1 reA8+aTtYuJmkkvRi2q6rsrQcHgMN1UnLeJxYOGVtarPBimbxH67OnGT2yxRLQ/FdwqR 79pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CCvH0yP2; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id y66si3400253pgy.413.2017.09.20.10.28.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Sep 2017 10:28:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CCvH0yP2; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 2F9D120958BF8; Wed, 20 Sep 2017 10:24:56 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wr0-x22b.google.com (mail-wr0-x22b.google.com [IPv6:2a00:1450:400c:c0c::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 28E5520945C1C for ; Wed, 20 Sep 2017 10:24:55 -0700 (PDT) Received: by mail-wr0-x22b.google.com with SMTP id m18so2746708wrm.2 for ; Wed, 20 Sep 2017 10:28:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=b2H62UjQh5hPGwAivsn3bxh+SCyAeMFCdwy7c036gVA=; b=CCvH0yP21MYXidE2USh2rMnrFkGhttqNV7B3QCG4V6z052XqYFQIcju5D7AzFoBDUR X+JAYaXLhEPwyAyuy2OQIyl4ojNT7zZ13yRHHTiWV64RxghOjjTQK6tJhII/W3ScD6Ms AXJp2POIbXonJ4u05N8FBU0n+wj2RiGz3YCbU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=b2H62UjQh5hPGwAivsn3bxh+SCyAeMFCdwy7c036gVA=; b=ciUSIXFS23gFtc5qcIHFEydLOMG6BcLe0O9NrqN4IIm+iuUsh+83R/1u02tl9BDTzG 7p9FQ7/7E8kHjHPWx8TnPBP/SMf1rQXpUxEkW6PDgodmewiS+ogzhUpsjpvQWgzdDfX6 m0TSh9RPaLqrsfC3us0mCLEQ8nnS2jpz9uWT/ZFLyVUauI1IO2EzRLiJgTPGvMB2TJbi alzmg35VSI9D7By7q03FrTkPzd61Gau7Gc3kvx9LMVMiJ7p/zcLz4JXPSbERugJh8+zI e3PCwjtTVsGOs0TPkdI0Z9VerfDCSQFc4dmpFtj/QvIRMsOiHgvVJf1FXPoeu+Z8pQf/ eHOg== X-Gm-Message-State: AHPjjUjcVfNCJHPFBII+PaaKfTZa2oNkEl0UxEVCb0vNiCtjkauw0dF8 MJsHKPG68PqfOrmrlFfqu/JI8zDx4Bw= X-Google-Smtp-Source: AOwi7QAbwbCh+TD7KxOvC7ClhxsjEnaQ5B8mYCFqsUqeUfexIKyeqp4Oj7ObIfUfIBprPb7PJulnNw== X-Received: by 10.223.159.77 with SMTP id f13mr5494202wrg.154.1505928479491; Wed, 20 Sep 2017 10:27:59 -0700 (PDT) Received: from vanye.hemma.eciton.net (cpc92316-cmbg19-2-0-cust118.5-4.cable.virginm.net. [82.12.0.119]) by smtp.gmail.com with ESMTPSA id j65sm1920429wmj.3.2017.09.20.10.27.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Sep 2017 10:27:57 -0700 (PDT) From: Leif Lindholm To: edk2-devel@lists.01.org Date: Wed, 20 Sep 2017 18:27:50 +0100 Message-Id: <20170920172755.22767-2-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170920172755.22767-1-leif.lindholm@linaro.org> References: <20170920172755.22767-1-leif.lindholm@linaro.org> Subject: [edk2] [RFC 1/6] ConfigPkg: add new package for holding common config fragments X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael D Kinney , Jordan Justen , Laszlo Ersek , Andrew Fish , Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Start with common networking options. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leif Lindholm --- ConfigPkg/Network/Network.dsc.inc | 92 +++++++++++++++++++++++++++++++++++++++ ConfigPkg/Network/Network.fdf.inc | 47 ++++++++++++++++++++ 2 files changed, 139 insertions(+) create mode 100644 ConfigPkg/Network/Network.dsc.inc create mode 100644 ConfigPkg/Network/Network.fdf.inc -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/ConfigPkg/Network/Network.dsc.inc b/ConfigPkg/Network/Network.dsc.inc new file mode 100644 index 0000000000..8c53350deb --- /dev/null +++ b/ConfigPkg/Network/Network.dsc.inc @@ -0,0 +1,92 @@ +## @file +# +# Copyright (c) 2017, Linaro ltd. All rights reserved.
+# +# This program and the accompanying materials are licensed and made available +# under the terms and conditions of the BSD License which accompanies this +# distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# +## + + +################################################################################ +# +# Library Class section +# +################################################################################ +[LibraryClasses] + DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf + IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf + NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf + UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf + +!if $(CONFIG_HTTP_BOOT_ENABLE) == TRUE + HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf +!endif + +!if $(CONFIG_NETWORK_IP6_ENABLE) == TRUE + BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf + IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf + TcpIoLib|MdeModulePkg/Library/DxeTcpIoLib/DxeTcpIoLib.inf +!endif + +!if $(CONFIG_TLS_ENABLE) == TRUE + OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf + TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf +!else + OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf +!endif + + +################################################################################# +# Pcd Section +# +################################################################################ +[PcdsFixedAtBuild] +!if $(CONFIG_HTTP_BOOT_ENABLE) == TRUE + gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections|TRUE +!endif + + +################################################################################ +# +# Components Section +# +################################################################################ +[Components] + MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf + MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf + MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf + MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf + MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf + MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf + MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf + MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf + MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf +!if $(CONFIG_NETWORK_IP6_ENABLE) == TRUE + NetworkPkg/Dhcp6Dxe/Dhcp6Dxe.inf + NetworkPkg/Ip6Dxe/Ip6Dxe.inf + NetworkPkg/IScsiDxe/IScsiDxe.inf + NetworkPkg/Mtftp6Dxe/Mtftp6Dxe.inf + NetworkPkg/TcpDxe/TcpDxe.inf + NetworkPkg/Udp6Dxe/Udp6Dxe.inf + NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf +!else + MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf + MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf + MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf +!endif +!if $(CONFIG_HTTP_BOOT_ENABLE) == TRUE + NetworkPkg/DnsDxe/DnsDxe.inf + NetworkPkg/HttpBootDxe/HttpBootDxe.inf + NetworkPkg/HttpDxe/HttpDxe.inf + NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf +!endif +!if $(CONFIG_TLS_ENABLE) == TRUE + NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf + NetworkPkg/TlsDxe/TlsDxe.inf +!endif diff --git a/ConfigPkg/Network/Network.fdf.inc b/ConfigPkg/Network/Network.fdf.inc new file mode 100644 index 0000000000..614fd18a9a --- /dev/null +++ b/ConfigPkg/Network/Network.fdf.inc @@ -0,0 +1,47 @@ +## @file +# +# Copyright (c) 2017, Linaro ltd. All rights reserved.
+# +# This program and the accompanying materials are licensed and made available +# under the terms and conditions of the BSD License which accompanies this +# distribution. The full text of the license may be found at +# http://opensource.org/licenses/bsd-license.php +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# +## + + + INF MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf + INF MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf + INF MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf + INF MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf + INF MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf + INF MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf + INF MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf + INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf + INF MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf +!if $(CONFIG_NETWORK_IP6_ENABLE) == TRUE + INF NetworkPkg/Dhcp6Dxe/Dhcp6Dxe.inf + INF NetworkPkg/Ip6Dxe/Ip6Dxe.inf + INF NetworkPkg/IScsiDxe/IScsiDxe.inf + INF NetworkPkg/Mtftp6Dxe/Mtftp6Dxe.inf + INF NetworkPkg/TcpDxe/TcpDxe.inf + INF NetworkPkg/Udp6Dxe/Udp6Dxe.inf + INF NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf +!else + INF MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf + INF MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf + INF MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf +!endif +!if $(CONFIG_HTTP_BOOT_ENABLE) == TRUE + INF NetworkPkg/DnsDxe/DnsDxe.inf + INF NetworkPkg/HttpBootDxe/HttpBootDxe.inf + INF NetworkPkg/HttpDxe/HttpDxe.inf + INF NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf +!endif +!if $(CONFIG_TLS_ENABLE) == TRUE + INF NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf + INF NetworkPkg/TlsDxe/TlsDxe.inf +!endif