public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Gao, Liming" <liming.gao@intel.com>
To: "Fu, Siyuan" <siyuan.fu@intel.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Cc: "Ni, Ruiyu" <ruiyu.ni@intel.com>, "Ye, Ting" <ting.ye@intel.com>,
	"Justen, Jordan L" <jordan.l.justen@intel.com>,
	"Wu, Hao A" <hao.a.wu@intel.com>,
	"Wu, Jiaxin" <jiaxin.wu@intel.com>,
	Anthony Perard <anthony.perard@citrix.com>,
	Laszlo Ersek <lersek@redhat.com>,
	"Wei, David" <david.wei@intel.com>
Subject: Re: [PATCH v2 0/6] Add DSC/FDF include segment files for network stack
Date: Thu, 22 Nov 2018 06:14:41 +0000	[thread overview]
Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E36FFDD@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <20181122052153.89464-1-siyuan.fu@intel.com>

Siyuan:
  Thanks for your contribution. I really like this idea to share the common DSC/FDF between all platform DSC/FDFs.  Now, FixedAtBuild PCD can also be used in the conditional statement. Its value can be specified by build command with --pcd option. So, I suggest to use FixedAtBuild PCD for network feature instead of MACRO. I would like to recommend to use PCD both for the build and firmware configuration. For this case, one UINT16 FixedAtBuildPcd can be introduced in NetworkPkg.dec.  Its different bit will be for the different network features. Below is the example. Besides, I think *.dsc.inc files need to include section header. If so, *.dsc.inc is the standalone dsc file. It can easily be included in platform DSC file. Especially for library instance, the different library instance may be for the different module type. Without section header, they can be placed into one *Libs.dsc.inc file. 

[Defines]
   DEFINE NETWORK_ENABLE                 = 0x1
   DEFINE NETWORK_SNP_ENABLE             = 0x2
   DEFINE NETWORK_IP4_ENABLE             = 0x4
   DEFINE NETWORK_IP6_ENABLE             = 0x8
   DEFINE NETWORK_TLS_ENABLE             = 0x10
   DEFINE NETWORK_HTTP_BOOT_ENABLE       = 0x20
   DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = 0x40
   DEFINE NETWORK_IPSEC_ENABLE           = 0x80
   DEFINE NETWORK_ISCSI_ENABLE           = 0x100
   DEFINE NETWORK_VLAN_ENABLE            = 0x200

[PcdsFixedAtBuild]
   gEfiNetworkPkgTokenSpaceGuid.PcdNetworkFeatureMask|0xFFFF

[PcdsFixedAtBuild]
!if gEfiNetworkPkgTokenSpaceGuid.PcdNetworkFeatureMask & NETWORK_ALLOW_HTTP_CONNECTIONS == NETWORK_ALLOW_HTTP_CONNECTIONS
  gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections|TRUE
!endif

Thanks
Liming
>-----Original Message-----
>From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Fu
>Siyuan
>Sent: Thursday, November 22, 2018 1:22 PM
>To: edk2-devel@lists.01.org
>Cc: Ni, Ruiyu <ruiyu.ni@intel.com>; Ye, Ting <ting.ye@intel.com>; Justen,
>Jordan L <jordan.l.justen@intel.com>; Wu, Hao A <hao.a.wu@intel.com>; Wu,
>Jiaxin <jiaxin.wu@intel.com>; Anthony Perard <anthony.perard@citrix.com>;
>Laszlo Ersek <lersek@redhat.com>; Wei, David <david.wei@intel.com>
>Subject: [edk2] [PATCH v2 0/6] Add DSC/FDF include segment files for
>network stack
>
>There is a patch to remove the redudant IP4 only iSCSI/PXE/TCP drivers
>from MdeModulePkg, which has been reviewed before edk2-stable201811
>tag.
>And we also have plan to move all network related libraries/modules to
>NetworkPkg. In order to make these change more smoothly, a set of
>fragment
>files (2 for DSC and 1 for FDF) are provided for platform to enable the
>network stack support, without directly reference the INF module path.
>
>Patch 1/6 adds centralized dsc/fdf include files to NetworkPkg, with
>a set of flags for feature set enable/disable.
>Patch 2~6 updates edk2 platform dsc/fdf files to use the new include
>files, instead of reference the module INF.
>
>v2:
>  1. Split the "Network.dsc.inc" in to 4 files for different sections in DSC
>  file. This could provide more flexibility to platform owner to use the
>  include files.
>  2. Clarify the OpenSSL dependency of TLS, iSCSI and IPsec enable flag.
>  3. Use "!error" statement for incorrect flag value check.
>  4. Update platform DSC/FDF to use the new include files.
>  5. Other decoration work according to Laszlo's comments.
>
>
>
>Fu Siyuan (6):
>  NetworkPkg: Add DSC/FDF include segment files to NetworkPkg.
>  Nt32Pkg: Update DSC/FDF to use NetworkPkg's include fragment file.
>  ArmVirtPkg: Update DSC/FDF to use NetworkPkg's include fragment file.
>  EmulatorPkg: Update DSC/FDF to use NetworkPkg's include fragment file.
>  OvmfPkg: Update DSC/FDF to use NetworkPkg's include fragment file.
>  Vlv2TbltDevicePkg: Update DSC/FDF to use NetworkPkg's include fragment
>    file.
>
> ArmVirtPkg/ArmVirt.dsc.inc              |  11 +-
> ArmVirtPkg/ArmVirtQemu.dsc              |  46 ++-----
> ArmVirtPkg/ArmVirtQemuFvMain.fdf.inc    |  28 +---
> ArmVirtPkg/ArmVirtQemuKernel.dsc        |  46 ++-----
> EmulatorPkg/EmulatorPkg.dsc             |  39 ++++--
> EmulatorPkg/EmulatorPkg.fdf             |  10 +-
> NetworkPkg/Network.fdf.inc              |  69 ++++++++++
> NetworkPkg/NetworkComponents.dsc.inc    |  71 ++++++++++
> NetworkPkg/NetworkDefines.dsc.inc       | 138 ++++++++++++++++++++
> NetworkPkg/NetworkLibs.dsc.inc          |  25 ++++
> NetworkPkg/NetworkPcds.dsc.inc          |  22 ++++
> NetworkPkg/NetworkPkg.dsc               |  28 +---
> Nt32Pkg/Nt32Pkg.dsc                     | 104 ++++-----------
> Nt32Pkg/Nt32Pkg.fdf                     |  27 +---
> OvmfPkg/OvmfPkgIa32.dsc                 |  75 +++++------
> OvmfPkg/OvmfPkgIa32.fdf                 |  27 +---
> OvmfPkg/OvmfPkgIa32X64.dsc              |  76 +++++------
> OvmfPkg/OvmfPkgIa32X64.fdf              |  27 +---
> OvmfPkg/OvmfPkgX64.dsc                  |  75 +++++------
> OvmfPkg/OvmfPkgX64.fdf                  |  27 +---
> Vlv2TbltDevicePkg/PlatformPkg.fdf       |  25 +---
> Vlv2TbltDevicePkg/PlatformPkgConfig.dsc |  11 +-
> Vlv2TbltDevicePkg/PlatformPkgGcc.fdf    |  25 +---
> Vlv2TbltDevicePkg/PlatformPkgGccX64.dsc |  52 +++-----
> Vlv2TbltDevicePkg/PlatformPkgIA32.dsc   |  52 +++-----
> Vlv2TbltDevicePkg/PlatformPkgX64.dsc    |  52 +++-----
> 26 files changed, 573 insertions(+), 615 deletions(-)
> create mode 100644 NetworkPkg/Network.fdf.inc
> create mode 100644 NetworkPkg/NetworkComponents.dsc.inc
> create mode 100644 NetworkPkg/NetworkDefines.dsc.inc
> create mode 100644 NetworkPkg/NetworkLibs.dsc.inc
> create mode 100644 NetworkPkg/NetworkPcds.dsc.inc
>
>Cc: Jiaxin Wu <jiaxin.wu@intel.com>
>Cc: Ting Ye <ting.ye@intel.com>
>Cc: Ruiyu Ni <ruiyu.ni@intel.com>
>Cc: Hao Wu <hao.a.wu@intel.com>
>Cc: Laszlo Ersek <lersek@redhat.com>
>Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
>Cc: Julien Grall <julien.grall@linaro.org>
>Cc: Jordan Justen <jordan.l.justen@intel.com>
>Cc: Andrew Fish <afish@apple.com>
>Cc: Ruiyu Ni <ruiyu.ni@intel.com>
>Cc: Anthony Perard <anthony.perard@citrix.com>
>Cc: David Wei <david.wei@intel.com>
>Cc: Mang Guo <mang.guo@intel.com>
>
>--
>2.19.1.windows.1
>
>_______________________________________________
>edk2-devel mailing list
>edk2-devel@lists.01.org
>https://lists.01.org/mailman/listinfo/edk2-devel


  parent reply	other threads:[~2018-11-22  6:14 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-22  5:21 [PATCH v2 0/6] Add DSC/FDF include segment files for network stack Fu Siyuan
2018-11-22  5:21 ` [PATCH v2 1/6] NetworkPkg: Add DSC/FDF include segment files to NetworkPkg Fu Siyuan
2018-11-22  9:56   ` Ni, Ruiyu
2018-11-22 10:52     ` Fu, Siyuan
2018-11-23 10:56   ` Laszlo Ersek
2018-12-10  8:36     ` Ard Biesheuvel
2018-12-10 14:40       ` Laszlo Ersek
2018-12-10 16:39         ` Ard Biesheuvel
2018-11-22  5:21 ` [PATCH v2 2/6] Nt32Pkg: Update DSC/FDF to use NetworkPkg's include fragment file Fu Siyuan
2018-11-22  5:21 ` [PATCH v2 3/6] ArmVirtPkg: " Fu Siyuan
2018-11-23 12:29   ` Laszlo Ersek
2018-11-23 12:30     ` Laszlo Ersek
2018-11-23 16:50   ` Laszlo Ersek
2018-11-22  5:21 ` [PATCH v2 4/6] EmulatorPkg: " Fu Siyuan
2018-11-22  5:21 ` [PATCH v2 5/6] OvmfPkg: " Fu Siyuan
2018-11-23 12:00   ` Laszlo Ersek
2018-11-23 12:10   ` Laszlo Ersek
2018-11-23 12:19   ` Laszlo Ersek
2018-11-22  5:21 ` [PATCH v2 6/6] Vlv2TbltDevicePkg: " Fu Siyuan
2018-11-22  6:14 ` Gao, Liming [this message]
2018-11-22 15:48   ` [PATCH v2 0/6] Add DSC/FDF include segment files for network stack Laszlo Ersek
2018-11-23 16:02     ` Gao, Liming
2018-11-23 18:35       ` Laszlo Ersek
2018-11-26  3:31         ` Gao, Liming
2018-11-26 11:34           ` Laszlo Ersek
2018-11-22 16:12 ` Laszlo Ersek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A89E2EF3DFEDB4C8BFDE51014F606A14E36FFDD@SHSMSX104.ccr.corp.intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox