From nobody Tue Feb 10 04:53:49 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+63220+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+63220+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1595557746; cv=none; d=zohomail.com; s=zohoarc; b=E9NxrfIMMdoTxaJMiwQUCIG9kQP5p36XlMIsc7vG0rW8nIyFc1NpYT4BpQGhz1LRbEYEYv5YE5jJJnGnmG+SwqK8N5LfagOEOgzbphItGw3EYZEZwEplmEUfzpy3+M04fbR4y9b3eG8nGgpITNgYY8LO11T48zuzlZ0ZFosTjxg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1595557746; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=52fzQ97Xl4EQe15ZLPhiyAA6FMJxW2E3aWLJy8hRUkI=; b=Jox7zYHx728sLCqmXq5qLxFF1lVmwwko3mr66QfkaZnNI3s2MnPTCGIZmQEWqVqALHaNezyTd1C2IRJL4Dw6mc4zPOuUmhHLEeRbzsCGqkj8EotEaIR+Y+NlgG8UAw131F1bZQl+Zvtx1XQt18JyIjF+qFMh7uC1iDNy331upkM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+63220+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1595557746061560.3413340193274; Thu, 23 Jul 2020 19:29:06 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id juUyYY1788612xnSOJLZBXIt; Thu, 23 Jul 2020 19:29:05 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.9092.1595557744304995260 for ; Thu, 23 Jul 2020 19:29:04 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D37ED101E; Thu, 23 Jul 2020 19:29:03 -0700 (PDT) X-Received: from U203705.lan (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7789B3F66E; Thu, 23 Jul 2020 19:29:03 -0700 (PDT) From: "Samer El-Haj-Mahmoud" To: devel@edk2.groups.io Cc: G Edhaya Chandran , Eric Jin , Irene Park , Heinrich Schuchardt Subject: [edk2-devel] [edk2-test][PATCH v1 1/3] uefi-sct/SctPkg: Fix build with latest EDK2 Date: Thu, 23 Jul 2020 22:28:58 -0400 Message-Id: <20200724022900.30826-2-Samer.El-Haj-Mahmoud@arm.com> In-Reply-To: <20200724022900.30826-1-Samer.El-Haj-Mahmoud@arm.com> References: <20200724022900.30826-1-Samer.El-Haj-Mahmoud@arm.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,samer.el-haj-mahmoud@arm.com X-Gm-Message-State: YVT7V2unLPWjYboMLXzPr9Ccx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1595557745; bh=hMXn1EwGR2LTP/q2WVQPhqoe/mBWQp+Q/a1lo2spBcQ=; h=Cc:Date:From:Reply-To:Subject:To; b=MIUfGNfALlmvPDgPd8NTUOk2nxG+dJ02hXfgDw7gf4rGlCxSCiKQ5UnimsdX4g2QkYG eumx71YZSonWa0954DV2OyOR4AkNvnBQ0GVR/XI6KdNVlVJ0xFKlsnpwHSj1+/8yyjATb /EQQP0AXTNp9c9kjO6nMvw6h6NA5KHT42qI= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Update the SctPkg build.sh script to work with latest EDK2, without depending on UDK2017. Changes include: - Allowing GCC versions 5+ - Refactoring WORKSPACE based on the new EDK2 stuructre (SctPkg is treated as another PACKAGES_PATH component, not a package in the Edk2 folder itself) - Remove unnecessary EdkCompatibilityPkg reference This patch depends on the change in https://edk2.groups.io/g/devel/message/60407 Cc: G Edhaya Chandran Cc: Eric Jin Cc: Irene Park Cc: Heinrich Schuchardt Signed-off-by: Samer El-Haj-Mahmoud Reviewed-by: G Edhaya Chandran --- uefi-sct/SctPkg/build.sh | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/uefi-sct/SctPkg/build.sh b/uefi-sct/SctPkg/build.sh index baf28b40a5f0..d4253cecc7a5 100755 --- a/uefi-sct/SctPkg/build.sh +++ b/uefi-sct/SctPkg/build.sh @@ -1,7 +1,7 @@ #!/bin/bash # # Copyright 2006 - 2015 Unified EFI, Inc.
-# Copyright (c) 2011 - 2019, ARM Ltd. All rights reserved.
+# Copyright (c) 2011 - 2020, ARM Ltd. All rights reserved.
# # This program and the accompanying materials # are licensed and made available under the terms and conditions of the B= SD License @@ -13,7 +13,7 @@ #=20 ## =20 -SctpackageDependencyList=3D(EdkCompatibilityPkg SctPkg BaseTools) +SctpackageDependencyList=3D(SctPkg BaseTools) =20 function get_build_arch { @@ -55,8 +55,13 @@ function set_cross_compile function get_gcc_version { gcc_version=3D$($1 -dumpversion) + + if [ "$gcc_version" -gt "5" ]; then + gcc_version=3D"5" + fi + case $gcc_version in - 4.6*|4.7*|4.8*|4.9*) + 4.6*|4.7*|4.8*|4.9*|5*) echo GCC$(echo ${gcc_version} | awk -F. '{print $1$2}') ;; *) @@ -122,7 +127,6 @@ do done =20 export EFI_SOURCE=3D`pwd` -export EDK_SOURCE=3D`pwd`/EdkCompatibilityPkg =20 # check if the last command was successful status=3D$? @@ -201,14 +205,13 @@ fi # if [ -z "${WORKSPACE:-}" ]; then echo Initializing workspace - # Uses an external BaseTools project - # Uses the BaseTools in edk2 - export EDK_TOOLS_PATH=3D`pwd`/BaseTools + export WORKSPACE=3D$PWD + export PACKAGES_PATH=3D$WORKSPACE/edk2:$WORKSPACE/SctPkg # We do not pass BuildArmSct.sh arguments to edksetup.sh while (( "$#" )); do shift done - source ./edksetup.sh + . edk2/edksetup.sh else echo Building from: $WORKSPACE fi --=20 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#63220): https://edk2.groups.io/g/devel/message/63220 Mute This Topic: https://groups.io/mt/75759593/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-