From nobody Tue Feb 10 13:37:30 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+74858+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+74858+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1620633217; cv=none; d=zohomail.com; s=zohoarc; b=QvvZ9ehyaX9VyfqBzJZZhiYc5O5uPOjewN8Z0Awn8o7g0wRDST1THpZrwFCD7OWQiYH6qZTfzEOS6wpRMoAhzoAeAW6LrP3kj1VAkm5ZzPPWMMp+x3LsZzSzyvPdRmz8dHwjrgGcyF/16pT6nHIjPzJkK9YpgckNLRRPvMdCXRM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620633217; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=GiMsgKT4IpPfYvJEWlZYzEV6UcsVdlbeKXso5yD/9bc=; b=IlcgoZ4nYbLeS2vuv8OyOxCw0BmGKvm26CSLgC95jQx+3S3LsphWMFiLPU++N8mqb27jvu4K9kD/PmQVSaKM/1og7iwP+ymnTSC7V2AD/mceY9fC3bbsm/rqT8NUAcI7I/veGTvZine8urFPFtSpTsydx4+nRRn26pvghHTdAxY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+74858+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1620633217725330.6772001675429; Mon, 10 May 2021 00:53:37 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id zSxVYY1788612xm4d7enZAMy; Mon, 10 May 2021 00:53:37 -0700 X-Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by mx.groups.io with SMTP id smtpd.web12.28946.1620633212064373501 for ; Mon, 10 May 2021 00:53:32 -0700 X-Received: by mail-wr1-f43.google.com with SMTP id l13so15504972wru.11 for ; Mon, 10 May 2021 00:53:31 -0700 (PDT) X-Gm-Message-State: 7m9dHlb9X0nfoqQcw7psTghVx1787277AA= X-Google-Smtp-Source: ABdhPJxqKEfC5Hxtew3L9zXoODc/qYspRNMPlj4jyLVFpVuVFbRFaATYQMjvv8dYHl/XG3KVuBP/7Q== X-Received: by 2002:adf:e611:: with SMTP id p17mr29571321wrm.161.1620633210617; Mon, 10 May 2021 00:53:30 -0700 (PDT) X-Received: from lmecxl0524.home (2a01cb058b850800452ff0effb46d5f4.ipv6.abo.wanadoo.fr. [2a01:cb05:8b85:800:452f:f0ef:fb46:d5f4]) by smtp.gmail.com with ESMTPSA id o13sm18237660wmh.34.2021.05.10.00.53.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 00:53:30 -0700 (PDT) From: "Etienne Carriere" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Ilias Apalodimas , Leif Lindholm , Sami Mujawar , Sughosh Ganu , Thomas Abraham , Etienne Carriere Subject: [edk2-devel] [edk2-platforms][PATCH 4/4] Platform/StandaloneMm: build StandaloneMmRpmb for 32bit architectures Date: Mon, 10 May 2021 09:53:04 +0200 Message-Id: <20210510075304.9125-5-etienne.carriere@linaro.org> In-Reply-To: <20210510075304.9125-1-etienne.carriere@linaro.org> References: <20210510075304.9125-1-etienne.carriere@linaro.org> Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: 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,etienne.carriere@linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1620633217; bh=XDfj0aRez9kF6WpSDa+vq+IEh4QuZDnqhBpC40wAphM=; h=Cc:Date:From:Reply-To:Subject:To; b=o0PGQLn2erdv7xkuxaYYh87XaZBeKXcm+lbHIm2RR0utI/JrXuxaaSw50v1sMVYDyO5 rqdPVRQjrilJ4bFBRMTEEV5OzlpZ4xthuQ2S18N8Qp6vBFFzZZHZZvnBNf2zAqzq3DpxH KnXB+zz4hg9lqfwadAS5UPF2bM92DpuAguA= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Build PlatformStandaloneMmRpmb for ARM architecture (32bit arm machine). The generated image targets an execution environment similar to AArch64 StMM secure partition in OP-TEE but in 32bit mode. GCC flag -fno-stack-protector added. The stack protection code bring GOT dependencies we prefer avoid when StMM runs in OP-TEE. Cc: Ard Biesheuvel Cc: Ilias Apalodimas Cc: Leif Lindholm Cc: Sami Mujawar Signed-off-by: Etienne Carriere Reviewed-by: Sami Mujawar --- Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc= | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandalo= neMmRpmb.dsc b/Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStanda= loneMmRpmb.dsc index cb3f1ddf52..996d4e4ba9 100644 --- a/Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpm= b.dsc +++ b/Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpm= b.dsc @@ -16,7 +16,7 @@ PLATFORM_VERSION =3D 1.0 DSC_SPECIFICATION =3D 0x0001001C OUTPUT_DIRECTORY =3D Build/$(PLATFORM_NAME) - SUPPORTED_ARCHITECTURES =3D AARCH64 + SUPPORTED_ARCHITECTURES =3D ARM|AARCH64 BUILD_TARGETS =3D DEBUG|RELEASE|NOOPT SKUID_IDENTIFIER =3D DEFAULT FLASH_DEFINITION =3D Platform/StandaloneMm/PlatformStandal= oneMmPkg/PlatformStandaloneMmRpmb.fdf @@ -68,6 +68,12 @@ # NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf =20 +[LibraryClasses.ARM] + ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf + NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf + NULL|ArmPkg/Library/ArmSvcLib/ArmSvcLib.inf + RegisterFilterLib|MdePkg/Library/RegisterFilterLibNull/RegisterFilterLib= Null.inf + [LibraryClasses.common.MM_STANDALONE] HobLib|StandaloneMmPkg/Library/StandaloneMmHobLib/StandaloneMmHobLib.inf MmServicesTableLib|MdePkg/Library/StandaloneMmServicesTableLib/Standalon= eMmServicesTableLib.inf @@ -160,3 +166,7 @@ [BuildOptions.AARCH64] GCC:*_*_*_DLINK_FLAGS =3D -z common-page-size=3D0x1000 -march=3Darmv8-a+no= fp GCC:*_*_*_CC_FLAGS =3D -mstrict-align + +[BuildOptions.ARM] +GCC:*_*_*_DLINK_FLAGS =3D -z common-page-size=3D0x1000 -march=3Darmv7-a +GCC:*_*_*_CC_FLAGS =3D -fno-stack-protector --=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 (#74858): https://edk2.groups.io/g/devel/message/74858 Mute This Topic: https://groups.io/mt/82714635/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-