From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web11.12378.1583145199110655989 for ; Mon, 02 Mar 2020 02:33:19 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=033048287c=daniel.schaefer@hpe.com) Received: from pps.filterd (m0134425.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 022APmZ0008276; Mon, 2 Mar 2020 10:33:18 GMT Received: from g4t3427.houston.hpe.com (g4t3427.houston.hpe.com [15.241.140.73]) by mx0b-002e3701.pphosted.com with ESMTP id 2yg5g57chu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 02 Mar 2020 10:33:18 +0000 Received: from G1W8106.americas.hpqcorp.net (g1w8106.austin.hp.com [16.193.72.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g4t3427.houston.hpe.com (Postfix) with ESMTPS id AD8F482; Mon, 2 Mar 2020 10:33:17 +0000 (UTC) Received: from G4W9332.americas.hpqcorp.net (16.208.32.118) by G1W8106.americas.hpqcorp.net (16.193.72.61) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 2 Mar 2020 10:33:17 +0000 Received: from G2W6311.americas.hpqcorp.net (16.197.64.53) by G4W9332.americas.hpqcorp.net (16.208.32.118) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 2 Mar 2020 10:33:16 +0000 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (15.241.52.10) by G2W6311.americas.hpqcorp.net (16.197.64.53) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Mon, 2 Mar 2020 10:32:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PpALcUKrNSR+8qrtXZ8Mq0nu4+OqGIUC6chkgC9Vv+XlcTT7TMkBxwoHJoLkw2Cj/PEuGcoV9Bs6XrTNJLf4Dt+jSDt0rXTyChBgH84Cb5End2jkB2xGzrJjxB9kZEr6IhT8bNYyPhK43rB3JGLDVkIAqd2ViVqy4f4lnx7/FJXE1g1dcFhSapt1iyczfIbFgOpjX6J+j7uygpsINexOuod8YyC+Rv7V9cZMsr9qRli9kdtMkt8fkJyDbVlknmjPJZ0J96Xk920uKTASmqLotwDqiNQ2xXrzCgJYBnKrcyb1K34wJHwEdv8oaOhvJyx4nKaIRWeVvXMYLlKrRBO9ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jWpGwOf+q8p1lgmNC9S7qayKPNPz+0Bnf5AUN/JUWGA=; b=FMPT1DJRaA6gICR8ffTZ6XlVXUTxQpfV1fZtYSNqc4c0lftj2+RoURoQCMkAWkobWhMFw9uuXCMd0h4v9h3Pf70j1UZiF+4Push+5/WPYUJqAEm8ePmH/GEoEtLj0PCTOVNA7VMhozU0Rvc2zs/9gVpXds5XFYKZ1OEmNcf79U7katFM7ZVD+sW8JTcgtfIhHrjxMfUAAB7Ntlj/VbyY5QhThelWVcNOW5Mu4GkPDl+nnzVzwb6A/E8EzIot66/7C3zjwhgKXhBoCAIitwFtYALPpZBe0ugUJK7qSPHRk8/SzW0XyY/X6v2LZeeuc0dVr1efCkd8k92f2a78Qj43mw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none Received: from TU4PR8401MB0909.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7710::14) by TU4PR8401MB1248.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7715::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.18; Mon, 2 Mar 2020 10:32:54 +0000 Received: from TU4PR8401MB0909.NAMPRD84.PROD.OUTLOOK.COM ([fe80::a138:305f:61e2:16ae]) by TU4PR8401MB0909.NAMPRD84.PROD.OUTLOOK.COM ([fe80::a138:305f:61e2:16ae%5]) with mapi id 15.20.2772.019; Mon, 2 Mar 2020 10:32:54 +0000 From: "Daniel Schaefer" To: CC: Abner Chang , Dandan Bi , "Eric Dong" , Gilbert Chen , Hao A Wu , Leif Lindholm , Liming Gao , Ray Ni Subject: [PATCH v2 0/3] Allow building MdeModulePkg on non-x86 Date: Mon, 2 Mar 2020 11:32:35 +0100 Message-ID: <20200302103238.25726-1-daniel.schaefer@hpe.com> X-Mailer: git-send-email 2.25.0 X-ClientProxiedBy: FR2P281CA0036.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:14::23) To TU4PR8401MB0909.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7710::14) X-MS-Exchange-MessageSentRepresentingType: 1 Received: from x360-nix.fritz.box (84.58.209.92) by FR2P281CA0036.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:14::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.15 via Frontend Transport; Mon, 2 Mar 2020 10:32:52 +0000 X-Mailer: git-send-email 2.25.0 X-Originating-IP: [84.58.209.92] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 856a530f-45b9-41ea-2573-08d7be951127 X-MS-TrafficTypeDiagnostic: TU4PR8401MB1248: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-Forefront-PRVS: 033054F29A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(366004)(396003)(136003)(376002)(346002)(39860400002)(189003)(199004)(66946007)(66476007)(6666004)(6916009)(4326008)(66556008)(2906002)(36756003)(86362001)(478600001)(6512007)(966005)(5660300002)(8676002)(44832011)(54906003)(6486002)(8936002)(81166006)(81156014)(52116002)(6506007)(956004)(316002)(2616005)(26005)(16526019)(186003)(1076003);DIR:OUT;SFP:1102;SCL:1;SRVR:TU4PR8401MB1248;H:TU4PR8401MB0909.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: hpe.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qRYor2hZqJHQkt84zK976gPGx2sbMzp+MbBqjgz3EeWJL4Ctd/wDRkLbGEkwuPw+gwFPs7FAWlOyEoXP5UJozoEgvC/fw9dgyJKmFKFumExuKwDdo9V3cdqubaJGT0qFAChwdZyPGuc2JTAvVEuUrC5XV3JCgk438Hmf+O6E2I7z8jb5g/7DzMqBFcSIaPAdTbjSgZvvfLSoejZ4Tpq1yjrOK1YZfnkscPcjBdYE1yU8HJvwoRipvTIus65HBRMZjrkoLJthe528QSqV4JYezIUU5U0v1ZawATuews9ZlZXHPvhehOonKNHI+wsvGfAEk2Jv1hEhADPf+Qab/trLe8+/wxAMzoxQsfcZZIneqTQVFuw8KSb6e6k0mteIMvqIRDNtCFq8F7SobZbs6s+tmf8P02E/R87o/VNTSrS+j0HdPyPP1iv4hjYEnZtC4awC0htpMzv3I+Vr39gkrwE8tS56uelWbYu8klMrbrdEuSTm8g993ZN0ulCpyQFW6MaGGUAHS6DqLH0xZ2oyKOCuYQ== X-MS-Exchange-AntiSpam-MessageData: Xf/NqjgMA/Bvl0et/rNGsvs5VfJYST5On2XL5HF1lSEsh4pB/3uhEYzZMvlcgbdV87+zciEm2uPpzC8dbPj7bi5kDmdvi+DZIgKXzYNtW1U+ujMEkHgyaGwVvCJfjSUKd8Je3EwAjr6m810JIxv3nQ== X-MS-Exchange-CrossTenant-Network-Message-Id: 856a530f-45b9-41ea-2573-08d7be951127 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2020 10:32:54.5636 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: KV9WQVo0RAf5kJxbMZ98HUPM9tuNoCJQjIqCF/dpdQTEI9nb48sv7omrZec1TIbXQcdfOsVKkBbDFdA+hVMe5Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TU4PR8401MB1248 X-OriginatorOrg: hpe.com X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-03-02_03:2020-02-28,2020-03-02 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 bulkscore=0 clxscore=1015 phishscore=0 impostorscore=0 lowpriorityscore=0 mlxscore=0 suspectscore=0 mlxlogscore=999 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2003020081 Content-Type: text/plain Content-Transfer-Encoding: 8bit Here's the second round of patches to allow building MdeModulePkg on non x86 architectures. We need this to successfully run the CI for RISC-V. The commits are also here: https://github.com/changab/edk2-staging-riscv/commits/MdeModulePkg-cross-for-edk2 Yes, it's in our staging repo but the patches and branch are based on edk2 master. By the way, how hasn't this caused any problems for ARM? I've built this with the X64 and RISCV64 GCC toolchains: build -a X64 -p MdeModulePkg/MdeModulePkg.dsc -t GCC5 build -a RISCV64 -p MdeModulePkg/MdeModulePkg.dsc -t GCC5 Building on RISCV64 needs Abners patches: https://edk2.groups.io/g/devel/message/54725 Daniel Schaefer (3): MdeModulePkg: Restrict libraries using SMM to x86 MdeModulePkg: Set PcdDxeIplSwitchToLongMode false on non-x86 MdeModulePkg: Use CopyMem instead of GUID assignment MdeModulePkg/MdeModulePkg.dec | 3 +++ MdeModulePkg/MdeModulePkg.dsc | 9 ++++++--- MdeModulePkg/Library/DeviceManagerUiLib/DeviceManager.c | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) Cc: Abner Chang Cc: Dandan Bi Cc: Eric Dong Cc: Gilbert Chen Cc: Hao A Wu Cc: Leif Lindholm Cc: Liming Gao Cc: Ray Ni -- 2.25.0