From: "Ni, Ray" <ray.ni@intel.com>
To: "Luo, Heng" <heng.luo@intel.com>,
"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Bi, Dandan" <dandan.bi@intel.com>,
"Gao, Liming" <liming.gao@intel.com>,
"Dong, Eric" <eric.dong@intel.com>
Subject: Re: [PATCH] Fix build error of OpenBoard caused by change of AdvancedFeaturePkg
Date: Mon, 30 Mar 2020 04:38:11 +0000 [thread overview]
Message-ID: <734D49CCEBEEF84792F5B80ED585239D5C4C9168@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <20200330042957.2031-1-heng.luo@intel.com>
Heng,
Can you please separate the patch to 3 so each patch fixes one issue specifically?
I am fine with one Bugzilla to cover the 3 issues.
Thanks,
Ray
> -----Original Message-----
> From: Luo, Heng <heng.luo@intel.com>
> Sent: Monday, March 30, 2020 12:30 PM
> To: devel@edk2.groups.io
> Cc: Bi, Dandan <dandan.bi@intel.com>; Gao, Liming <liming.gao@intel.com>;
> Dong, Eric <eric.dong@intel.com>; Ni, Ray <ray.ni@intel.com>
> Subject: [PATCH] Fix build error of OpenBoard caused by change of
> AdvancedFeaturePkg
>
> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2644
>
> 1. Add all pathes of feature domains to package path.
> 2. Add LogoFeaturePkg to TemporaryBuildWorkaround.
> 3. Correct wrong codes and remove unnecessary codes in LogoFeaturePkg
>
> Cc: Dandan Bi <dandan.bi@intel.com>
> Cc: Liming Gao <liming.gao@intel.com>
> Cc: Eric Dong <eric.dong@intel.com>
> Cc: Ray Ni <ray.ni@intel.com>
> Signed-off-by: Heng Luo <heng.luo@intel.com>
> ---
>
> Features/Intel/AdvancedFeaturePkg/TemporaryBuildWorkaround/TemporaryB
> uildWorkaround.dsc | 4 +++-
>
> Features/Intel/AdvancedFeaturePkg/TemporaryBuildWorkaround/TemporaryB
> uildWorkaround.inf | 5 ++++-
> Features/Intel/UserInterface/LogoFeaturePkg/Include/LogoFeature.dsc
> | 9 ---------
> Features/Intel/UserInterface/LogoFeaturePkg/Include/PostMemory.fdf
> | 2 +-
> Platform/Intel/build_bios.py | 7 ++++++-
> 5 files changed, 14 insertions(+), 13 deletions(-)
>
> diff --git
> a/Features/Intel/AdvancedFeaturePkg/TemporaryBuildWorkaround/Temporary
> BuildWorkaround.dsc
> b/Features/Intel/AdvancedFeaturePkg/TemporaryBuildWorkaround/Temporary
> BuildWorkaround.dsc
> index 227ae00908..c62f9ecc6e 100644
> ---
> a/Features/Intel/AdvancedFeaturePkg/TemporaryBuildWorkaround/Temporary
> BuildWorkaround.dsc
> +++
> b/Features/Intel/AdvancedFeaturePkg/TemporaryBuildWorkaround/Temporary
> BuildWorkaround.dsc
> @@ -13,7 +13,7 @@
> # When the BaseTools update is complete, this file can entirely be removed
>
> # from this package.
>
> #
>
> -# Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
>
> +# Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.<BR>
>
> #
>
> # SPDX-License-Identifier: BSD-2-Clause-Patent
>
> #
>
> @@ -49,6 +49,8 @@
> gSmbiosFeaturePkgTokenSpaceGuid.PcdSmbiosFeatureEnable
> |FALSE
>
> gUsb3DebugFeaturePkgTokenSpaceGuid.PcdUsb3DebugFeatureEnable
> |FALSE
>
> gUserAuthFeaturePkgTokenSpaceGuid.PcdUserAuthenticationFeatureEnable
> |FALSE
>
> + gLogoFeaturePkgTokenSpaceGuid.PcdLogoFeatureEnable
> |FALSE
>
> + gLogoFeaturePkgTokenSpaceGuid.PcdJpgEnable |FALSE
>
> !endif
>
>
>
> #
>
> diff --git
> a/Features/Intel/AdvancedFeaturePkg/TemporaryBuildWorkaround/Temporary
> BuildWorkaround.inf
> b/Features/Intel/AdvancedFeaturePkg/TemporaryBuildWorkaround/Temporary
> BuildWorkaround.inf
> index 74176d1989..00818fbe0a 100644
> ---
> a/Features/Intel/AdvancedFeaturePkg/TemporaryBuildWorkaround/Temporary
> BuildWorkaround.inf
> +++
> b/Features/Intel/AdvancedFeaturePkg/TemporaryBuildWorkaround/Temporary
> BuildWorkaround.inf
> @@ -13,7 +13,7 @@
> # When the BaseTools update is complete, this file can entirely be removed
>
> # from this package.
>
> #
>
> -# Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
>
> +# Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.<BR>
>
> #
>
> # SPDX-License-Identifier: BSD-2-Clause-Patent
>
> #
>
> @@ -40,6 +40,7 @@
> PowerManagement/S3FeaturePkg/S3FeaturePkg.dec
>
> SystemInformation/SmbiosFeaturePkg/SmbiosFeaturePkg.dec
>
> UserInterface/UserAuthFeaturePkg/UserAuthFeaturePkg.dec
>
> + UserInterface/LogoFeaturePkg/LogoFeaturePkg.dec
>
>
>
> [FeaturePcd]
>
> gAcpiDebugFeaturePkgTokenSpaceGuid.PcdAcpiDebugFeatureEnable
>
> @@ -49,6 +50,8 @@
> gSmbiosFeaturePkgTokenSpaceGuid.PcdSmbiosFeatureEnable
>
> gUsb3DebugFeaturePkgTokenSpaceGuid.PcdUsb3DebugFeatureEnable
>
> gUserAuthFeaturePkgTokenSpaceGuid.PcdUserAuthenticationFeatureEnable
>
> + gLogoFeaturePkgTokenSpaceGuid.PcdLogoFeatureEnable
>
> + gLogoFeaturePkgTokenSpaceGuid.PcdJpgEnable
>
>
>
> [Sources]
>
> TemporaryBuildWorkaround.c
>
> diff --git
> a/Features/Intel/UserInterface/LogoFeaturePkg/Include/LogoFeature.dsc
> b/Features/Intel/UserInterface/LogoFeaturePkg/Include/LogoFeature.dsc
> index fca0bfd540..d2dcdeb36a 100644
> --- a/Features/Intel/UserInterface/LogoFeaturePkg/Include/LogoFeature.dsc
> +++ b/Features/Intel/UserInterface/LogoFeaturePkg/Include/LogoFeature.dsc
> @@ -25,15 +25,6 @@
> !error "DXE_ARCH must be specified to build this feature!"
>
> !endif
>
>
>
> -
> ################################################################
> ################
>
> -#
>
> -# Packages Section - Make sure PCD can be directly used in a conditional
> statement
>
> -# in a DSC which includes this DSC file.
>
> -#
>
> -
> ################################################################
> ################
>
> -[Packages]
>
> - LogoFeaturePkg/LogoFeaturePkg.dec
>
> -
>
>
> ################################################################
> ################
>
> #
>
> # Library Class section - list of all Library Classes needed by this feature.
>
> diff --git
> a/Features/Intel/UserInterface/LogoFeaturePkg/Include/PostMemory.fdf
> b/Features/Intel/UserInterface/LogoFeaturePkg/Include/PostMemory.fdf
> index 080c87223c..fead9f3b02 100644
> --- a/Features/Intel/UserInterface/LogoFeaturePkg/Include/PostMemory.fdf
> +++ b/Features/Intel/UserInterface/LogoFeaturePkg/Include/PostMemory.fdf
> @@ -6,7 +6,7 @@
> # SPDX-License-Identifier: BSD-2-Clause-Patent
>
> #
>
> ##
>
> -!if gSmbiosFeaturePkgTokenSpaceGuid.PcdJpgEnable == TRUE
>
> +!if gLogoFeaturePkgTokenSpaceGuid.PcdJpgEnable == TRUE
>
> INF LogoFeaturePkg/LogoDxe/JpegLogoDxe.inf
>
> !else
>
> INF LogoFeaturePkg/LogoDxe/LogoDxe.inf
>
> diff --git a/Platform/Intel/build_bios.py b/Platform/Intel/build_bios.py
> index 1ef35aca0a..b9ad980510 100644
> --- a/Platform/Intel/build_bios.py
> +++ b/Platform/Intel/build_bios.py
> @@ -3,7 +3,7 @@
> # Builds BIOS using configuration files and dynamically
>
> # imported functions from board directory
>
> #
>
> -# Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
>
> +# Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.<BR>
>
> # SPDX-License-Identifier: BSD-2-Clause-Patent
>
> #
>
>
>
> @@ -120,6 +120,11 @@ def pre_build(build_config, build_type="DEBUG",
> silent=False, toolchain=None):
> config["PACKAGES_PATH"] += os.pathsep + config["WORKSPACE_SILICON"]
>
> config["PACKAGES_PATH"] += os.pathsep +
> config["WORKSPACE_SILICON_BIN"]
>
> config["PACKAGES_PATH"] += os.pathsep + config["WORKSPACE_FEATURES"]
>
> + # add all feature domains in WORKSPACE_FEATURES to package path
>
> + for filename in os.listdir(config["WORKSPACE_FEATURES"]):
>
> + filepath = os.path.join(config["WORKSPACE_FEATURES"], filename)
>
> + if os.path.isdir(filepath):
>
> + config["PACKAGES_PATH"] += os.pathsep + filepath
>
> config["PACKAGES_PATH"] += os.pathsep + config["WORKSPACE_DRIVERS"]
>
> config["PACKAGES_PATH"] += os.pathsep + \
>
> os.path.join(config["WORKSPACE"], "FSP")
>
> --
> 2.24.0.windows.2
next prev parent reply other threads:[~2020-03-30 4:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-30 4:29 [PATCH] Fix build error of OpenBoard caused by change of AdvancedFeaturePkg Heng Luo
2020-03-30 4:38 ` Ni, Ray [this message]
2020-03-30 5:55 ` Heng Luo
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=734D49CCEBEEF84792F5B80ED585239D5C4C9168@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