From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web11.37231.1656299381519693672 for ; Sun, 26 Jun 2022 20:09:41 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=lyfVm28w; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: gua.guo@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656299381; x=1687835381; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=TTXudxO4VjyK4B8gcaBlnW9iCCmeA+8cdy7SFogpNpA=; b=lyfVm28wRYw+5XbJ3SRyP5cUikM93RaTcPRikBuyLrBgvxYz2sSfvkE2 k02ibtbgLkwNtBKHb/lRkuArc764kJSGoM/LKnC3RHF5HpYl15qYNUwno FaerF/Makpu1AxGF1ddodHjhiMIPrA5IpDlM4nHUSriaJCaNZIDbzCyDx qQmW4l9+XRr8QhiUwWOkQMZHweLgybUqK3moLLjVlc3xiqocWtothX1tt de3tpp8B72DVLszdaN+bk99cJrOuTAZf4v+FGM/xrJBjxOOp3C0I4QmRg p9PJTAVQRBui2Q+fDtuaiVl8XXihfIqcYBmRgiyuOSiHxCI09amZUeEf+ w==; X-IronPort-AV: E=McAfee;i="6400,9594,10390"; a="270084486" X-IronPort-AV: E=Sophos;i="5.92,225,1650956400"; d="scan'208";a="270084486" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2022 20:09:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,225,1650956400"; d="scan'208";a="646213698" Received: from gguo-desk.gar.corp.intel.com ([10.5.215.23]) by fmsmga008.fm.intel.com with ESMTP; 26 Jun 2022 20:09:35 -0700 From: gua.guo@intel.com To: devel@edk2.groups.io Cc: gua.guo@intel.com, Guo Dong , Ray Ni , James Lu Subject: [PATCH] UefiPayloadPkg: Align Attribute value with UPL spec Date: Mon, 27 Jun 2022 11:09:30 +0800 Message-Id: X-Mailer: git-send-email 2.31.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Gua Guo REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3963 Based on UPL spec 2.12.2. Universal Payload Information Section, it defines item "Attribute" on UPLD_INFO_HEADER for Debug build should be "1", and Release build should be "0". Currently, The value of item "Attribute" is always "0" Cc: Guo Dong Cc: Ray Ni Cc: James Lu Signed-off-by: Gua Guo --- UefiPayloadPkg/UniversalPayloadBuild.py | 1 + 1 file changed, 1 insertion(+) diff --git a/UefiPayloadPkg/UniversalPayloadBuild.py b/UefiPayloadPkg/Unive= rsalPayloadBuild.py index ab4c977ba5..6003de36d1 100644 --- a/UefiPayloadPkg/UniversalPayloadBuild.py +++ b/UefiPayloadPkg/UniversalPayloadBuild.py @@ -111,6 +111,7 @@ def BuildUniversalPayload(Args, MacroList): #=0D upld_info_hdr =3D UPLD_INFO_HEADER()=0D upld_info_hdr.ImageId =3D Args.ImageId.encode()[:16]=0D + upld_info_hdr.Attribute |=3D 1 if BuildTarget =3D=3D "DEBUG" else 0=0D fp =3D open(UpldInfoFile, 'wb')=0D fp.write(bytearray(upld_info_hdr))=0D fp.close()=0D --=20 2.31.1.windows.1