From patchwork Fri Feb 26 08:59:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 12106135 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 47063C433DB for ; Fri, 26 Feb 2021 09:08:59 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D569764EED for ; Fri, 26 Feb 2021 09:08:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D569764EED Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.90140.170538 (Exim 4.92) (envelope-from ) id 1lFYzP-0007NO-FC; Fri, 26 Feb 2021 09:00:47 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 90140.170538; Fri, 26 Feb 2021 09:00:47 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lFYzP-0007NC-Bk; Fri, 26 Feb 2021 09:00:47 +0000 Received: by outflank-mailman (input) for mailman id 90140; Fri, 26 Feb 2021 09:00:46 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lFYzO-0007Mw-Ie for xen-devel@lists.xenproject.org; Fri, 26 Feb 2021 09:00:46 +0000 Received: from esa2.hc3370-68.iphmx.com (unknown [216.71.145.153]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 7d1333be-ec27-4dca-9f4c-e6dacbe905d6; Fri, 26 Feb 2021 09:00:44 +0000 (UTC) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 7d1333be-ec27-4dca-9f4c-e6dacbe905d6 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1614330044; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=BKIbao0IT5e1SwZzXMHrrFJKqyrW7kXtKWLoGUwv0qw=; b=DKtYxOjTPhJNCl/wm35CC9HvzbcKQhj+ha9h2eIuZK+ru9dawEGn1p/u GEaYTNp5qrXsE/z85KabSkbiUwpBhVMSrpTpg5JsSyme/8U2cf0jJ8WcM NTQFbhFe2ethBc8Eh06LHNgFBbQxn6dvBBkkzRPorpmaghqaP6MDHSwXe 8=; Authentication-Results: esa2.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com IronPort-SDR: Rw6EQFzdd2pfg4ASxidV+NAkGTGdf1pNH/RLfORxx0pKkndWJPVFmhZTs1051UPGxj+Ij5eeeg Go8MQHviieXUteyUmIEjF1w4cB0fIQjRZjjUJ9jL3mtxEUp5x0614Vb+LFgdmH3i8Wbafm/QdO U29Kk0+nUf8pBur7aRSkWc2H63DNXFu2bmEbM++FVQPb0zWzy1XvT9sTIaXYY7C7Cgu8NgVKii GbT8AE3NMNkY6QuJtMibGwiShg5918YyCQBawzEm3tL4oYb3jgfB5Jae8io/3g9cvgtAhXZyHe 0WQ= X-SBRS: 5.2 X-MesageID: 38105673 X-Ironport-Server: esa2.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.83 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.81,208,1610427600"; d="scan'208";a="38105673" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U0SMC773LEOjlKGFk16pT1oQ8c8/jIUTpkghRo3e3JXhorS+wpaMNk5FFAKpSHfw7g5I/k6eq40dSOh4JJ/477gGK5ioZ6XjtauNZxho9PyTBCUgesfYcsQYaYMiY+SVnLHkR6MaghHkVlH5/ARCL9bcvwalIUqqwZ6wTPofpFzvMEmYDdrOIRVIjLteUD+DgBjJerZtRPfxZ6u9b7SMVfFDyPE4NDdksIGcFT2noXE0SDr38V4gx0V2YVyiUWkHCNMEg0POfgj/6Fg58xH7x+jeUe1UZH9FLj91qrFUnyHFMmTXdrJH2zBVBjr47VeId9FX2l/jZJfIXiJD1KPtgA== 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=Hj37e+SNrz2nKwe5qTt02taxIT6WJpsEwV4bs2+RqYE=; b=HssAwkpMyNUvvcR/Z44J19Je98VDKm2pRoGvYtjmy5wtAfPDDdyICq2sbXLZtmDy60pnm/i+Fwd0JHY6jh9ThFz6OrLPjgb8oIFy3UcXqcDDCMGhS+Mm8sZ10c8A/pqBl2mEjzdm0N/65GFkIPH7CZ0ve2HfpJJ+bH0kRTgHrwJhu8NF/U5+kMTGR9gO+d+wCzi8jaiS28pHbCmVRidY9xMPaGYYr052/T4pGBUn0fLYg/8Xtu3DgvlZQmn9k2m0+e3CPtVogeeuyiMBVkW/O8I7KLuJpo0KcGhgDqN5WR43TXAZDFiZ9+SO8m46SxvRWI5laNhSCNcODhaNnCUC+Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.onmicrosoft.com; s=selector2-citrix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Hj37e+SNrz2nKwe5qTt02taxIT6WJpsEwV4bs2+RqYE=; b=w/IOg6kkTz7PhS8T8onPKq5YsYPz/9FvqXHYMYJUeWJt0m6iSTy7+bwUZS5EumsPt33tfKOdA00uUrgkK/zWwnwXIYTDEST41oDEyg2zyjf2afJwbRvEpyV08S8Oi7oWDC+rwK9gO3SPkl2DDJ0L5W7t6vSfDpxE+KzE7ojxb3Q= From: Roger Pau Monne To: CC: Roger Pau Monne , Jan Beulich , Andrew Cooper , Wei Liu , Ian Jackson Subject: [PATCH for-4.15 1/3] hvmloader: do not include inttypes.h Date: Fri, 26 Feb 2021 09:59:06 +0100 Message-ID: <20210226085908.21254-2-roger.pau@citrix.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210226085908.21254-1-roger.pau@citrix.com> References: <20210226085908.21254-1-roger.pau@citrix.com> X-ClientProxiedBy: PR0P264CA0135.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1a::27) To DS7PR03MB5608.namprd03.prod.outlook.com (2603:10b6:5:2c9::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e7dd8cf7-8b11-4705-2e47-08d8da34fe72 X-MS-TrafficTypeDiagnostic: DM6PR03MB4394: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sb9kNTeIPFSUNuY4xcmv69YXRRrtBMoL60fYDPFi85HjGsAx6dP556hBH9uWEnufx3LM+wbAJiP56HJ44okc81z9EZQNlW5f55DS3S5reUdGVTIQzZQ1joawS6yJc7nbOV8NBTmLSC4k86HoYBSOr6IzUd+ErTT0hjkygVCLhUwXFU6wCs1y2FDJ/XnPU8rbr0g8j1ImHY9rFRRo26/Fybp/nbHV8M8qWIRKszI2wczy8YRiskjedwSjpEWIQAn2g9ISDHXkM/TiauxiuszjPtNAi1Q1V7bdyp6uaPKLs/hhJF7zDjeXp6PwLZW+NYW8XyuZmPrQ62goZ4M96fWRDF3EE+HdPFb+HbJYmv1gcXQayZB7a/d8xbe/78kU7RbFQBBvp6igcxoboukBOu8XXLQZjmru20QeftR2Y9NCpTIaRxotmF3ymO6615cDmijqhelsjmpwfxPa3e0hib+RDj7N50TrlCu0ftbNqfwhxqa1oDMHzbY3h0K9R1N/O3Z2FkRGuFZzzB/xTOkuNWs2TS+8Zg0101Z7nfXb1vrlbk+PJSWtthF2c498Pt/LPjCsCxeca2P5mJwvthzI7cjbDrRXmWVCXPZzm3XccrfXn1Y= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR03MB5608.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(346002)(376002)(136003)(366004)(396003)(39840400004)(6916009)(66556008)(66946007)(36756003)(316002)(478600001)(6496006)(6666004)(66476007)(86362001)(2616005)(26005)(4326008)(54906003)(186003)(1076003)(5660300002)(16526019)(2906002)(4744005)(8936002)(956004)(83380400001)(8676002)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?8yjrS2cm1zejrRrGa0t1+E4A4XmCJ7?= =?utf-8?q?fh0XUmOPG4DCMiz2ZTueyMwUgonXrtiJ2te5jxeln4sAb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QuALKy7?= =?utf-8?q?ZD3zcdgxzmmh6m9lwRx0yATqBvfjFdtffUyFeoHlu2yZNNtT9ajWcKLYn/JMJnBpb?= =?utf-8?q?jUzXGEQZo2AMMsnpFqa6pN6lwyS+7sprSXDuOhWZn0/XzeaRdJwxVG3l8BvW6M/qd?= =?utf-8?q?WEWqfyrhz/6MrHPTHMgFW4NjtZZJUzGAPmLne+3ozrnQwQWM9RKJaoJ1mTHS35Hsj?= =?utf-8?q?jcQhoyfp0Rggl+PdgOwrsyYtMgGTpiWWF1G0C9sMBjkzS9I15JyGpaYDKlEGkcdJm?= =?utf-8?q?Wq6aNBu9HInSTD7Tt50ioRN7hCDx95sBHPRnxZP2aNMeWxjvPICYzblaz6bk0JIBd?= =?utf-8?q?IjhBHlD4xqpG4u?= X-MS-Exchange-CrossTenant-Network-Message-Id: e7dd8cf7-8b11-4705-2e47-08d8da34fe72 X-MS-Exchange-CrossTenant-AuthSource: DS7PR03MB5608.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2021 09:00:41.6001 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335836de-42ef-43a2-b145-348c2ee9ca5b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rvM0SuD9dzndUB8FQFIIUNhY901n/k/cQcpIGMzguoyCk7SDBQCbHqxGaVTdWf/Hk75e5yCgmAQPKHglQW8xAA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB4394 X-OriginatorOrg: citrix.com elfstructs.h doesn't require anything from inttypes.h: it's more appropriate to include stdint.h instead which contains the type declarations required for the ELF types. Signed-off-by: Roger Pau Monné --- tools/firmware/hvmloader/32bitbios_support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/firmware/hvmloader/32bitbios_support.c b/tools/firmware/hvmloader/32bitbios_support.c index e726946a7b..d1ead1ec11 100644 --- a/tools/firmware/hvmloader/32bitbios_support.c +++ b/tools/firmware/hvmloader/32bitbios_support.c @@ -20,7 +20,7 @@ * this program; If not, see . */ -#include +#include #include #ifdef __sun__ #include From patchwork Fri Feb 26 08:59:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 12106137 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A112AC433E6 for ; Fri, 26 Feb 2021 09:09:01 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2DE9B64EED for ; Fri, 26 Feb 2021 09:09:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2DE9B64EED Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.90141.170550 (Exim 4.92) (envelope-from ) id 1lFYzV-0007Rn-U7; Fri, 26 Feb 2021 09:00:53 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 90141.170550; Fri, 26 Feb 2021 09:00:53 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lFYzV-0007Rg-Qp; Fri, 26 Feb 2021 09:00:53 +0000 Received: by outflank-mailman (input) for mailman id 90141; Fri, 26 Feb 2021 09:00:52 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lFYzU-0007RG-RL for xen-devel@lists.xenproject.org; Fri, 26 Feb 2021 09:00:52 +0000 Received: from esa1.hc3370-68.iphmx.com (unknown [216.71.145.142]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id e1a5ffe0-d036-4480-b216-b768df423c93; Fri, 26 Feb 2021 09:00:51 +0000 (UTC) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: e1a5ffe0-d036-4480-b216-b768df423c93 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1614330051; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=5NtpMLJEx8ISDuyDwo32JNV2W/yTr2AO05voxqQUy2M=; b=SyLmLvTgqIUVyqtPR1o2VJiDh55Wnf3p4GuOEIM8leflfOcd2WBzhHlj KCoA4eLhOyj9PK204A4IMRUQ6JQFKVV5NNpvbc62MT0ZFUURmjWffedLr 8S8965XnVhYEEtFIEy8h90xC94VXX1SFgVax0lnDEfZqBQ4nP22QU76g4 w=; Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com IronPort-SDR: jLi68Waa/N8LQ0PKHVnvgKUNu9Nu5VuifzXXhWDLOMrHKF/0yz7PG6Kr4AoX3uODmuluIY5YL8 jFwU6LF5wGJ2Vb2MEiYNYnZZBzfH0MJmxHimH7fY25j0TL0WIs2sWJCdkgfupN7cIstcO2F/CM 1bPFeF4bKMqBwctLN6bWLjtjwJhIqcOz06TN/o2kXMqD7YgSbhHZP424VeAI8YF3+JAM9Xy1Ad PQWQIvnBfdIp5lkhwXatTSfISSCnotd0PW+jmLpXflpOz7JMdq9HscSB2UUMVXq913zLh2kW6+ 0T0= X-SBRS: 5.2 X-MesageID: 38456681 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.83 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.81,208,1610427600"; d="scan'208";a="38456681" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vlsow9uwpk4IXlP3nriwoSvcbEqRh5tEUOyUkRRwahuuMVJNyzT//PXm6LQtyBPkfi4OJQadgsA5YYBzxgsJlwXaT8alWIPthvMhYNJHk/7QKogK77XmFLnuP9b3LxDmXpPxt+p4d1YCfE/4GYGzUlzm9Bo1no7vK7yZk6anWZAFUzTSvrnsalwTG2K4ZnDc7N9qK3ReW8qIdU/pzzTWk0yh721tWZWRGSOYgDE0BmQGJD9LrkX6jujMrTYnJSkUKuRB8/0w7WqhU1y0E1EOBeitBv1f23DaOUbSURJYnIQWxW8h2ol5LHjvhG9/ZeWnBTHs5cvKdJM7NsgS5CkmoQ== 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=RV5OFa57bqpUoSqK0ZdahTgCjVx4yyQ9MfBf1+OuoDs=; b=n5RfmP/+q8YmfbZ1gSJlqSxcxEmBkNtEwRohmyz5+/fowAnbinkrDY7gLe5V3bLu3qRtrj4j35I2R4MDYhjZAE5rWIKXQjDPqhcdU54H66n++t/loZvboubmYczctyLShiA60jyVRhiiIX7ZuAs0KiCTDuChzMTvLqjj+JtIZSBZ74M7tY4pZWwSIxE2seSIKaDPTnhYxvPuvH/jHhKM7X4HrY/A9cYDZC4Ijzjve8WrZlN3qL//mH1A7ytO1yo/SY28C1TUWlS4kEnGcfoHCJTAnVgwv7bptii+i7gep5GUcB1HoV+qWv137bVHq1k3ResferWt4NH98uDqLtcjCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.onmicrosoft.com; s=selector2-citrix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RV5OFa57bqpUoSqK0ZdahTgCjVx4yyQ9MfBf1+OuoDs=; b=mFRJengj8YyQ2mGO6Z58ij9EI7TwBw/caUR9mwmWa2FIdbhdUmsXmhxa23NY/pecFZjiHWDLN0HjBF5myn30T3EF8A13erTGvxtT8U8eaOsPf5JeiB1w7tzNyaue6Eoi+TmOPy7YMbJNW3qpR1jQtbJ1s9rnEhN0r6Os1HuSk0c= From: Roger Pau Monne To: CC: Roger Pau Monne , Andrew Cooper , George Dunlap , "Ian Jackson" , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [PATCH for-4.15 2/3] firmware: provide a stand alone set of headers Date: Fri, 26 Feb 2021 09:59:07 +0100 Message-ID: <20210226085908.21254-3-roger.pau@citrix.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210226085908.21254-1-roger.pau@citrix.com> References: <20210226085908.21254-1-roger.pau@citrix.com> X-ClientProxiedBy: PR3P195CA0015.EURP195.PROD.OUTLOOK.COM (2603:10a6:102:b6::20) To DS7PR03MB5608.namprd03.prod.outlook.com (2603:10b6:5:2c9::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c8b8e075-cbba-4edc-459d-08d8da35016d X-MS-TrafficTypeDiagnostic: DM6PR03MB4394: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mfNptK3dKlvz0qZGKYN5WnE5lcA+PXEITzjnhJx0pnmCI076LXMXL2/MugNHNPHsK1Y2MgPXPwHISUTuoqw69NR6a42kY0UGqv8sx+h8FfevWpIIhF2iQRq1HMeT5iRIcquuRhD7YGKRtFGVhx6tjM1j+4j0up3speF1ytIZO/xaobcGzjlAkSS39EJkQGp+CllV5VtFrqvDLKtTy6BOvL9+ypSYd4DnpTg7KBOf4Y1LqQFNcz2zdTcqoilSUJAPVz8FPwpfYqKKUS26igAefQRE2ujZDhVZI0zQWYHjWBJExZqFbhACW9X5h51ebgeyR9D6ICT6UojnzVB/y39CqaiDQbAQLiYpLJYHMRN8lp+Qj+RXcw3un7ZEZKflat/a6tTQL6/tpSHhEno9N8YIqJReIwwOz33mL0EnXRTZxQfhoek23a4YqjfwEc44dGWsVbdeQu3tJxvg6oVkWevOScDm1npvAPKYoAkNINFURqP0CwNix9YIMRMl0NJNxzjX0O+uWXyBpC6zwW3TKkygOP3lvu/FZif+lXTKEIpkXdXlmK8QA3lTpdx9WIhP0ciLCKR8lVY4WNLrBFH4/G+KidZI9WPg7EMP9nzd1FlzoY4= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR03MB5608.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(346002)(39860400002)(376002)(136003)(366004)(396003)(6916009)(66556008)(66946007)(36756003)(316002)(478600001)(6496006)(6666004)(66476007)(86362001)(2616005)(26005)(4326008)(54906003)(186003)(1076003)(5660300002)(16526019)(966005)(2906002)(8936002)(956004)(83380400001)(8676002)(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XspD+9N?= =?utf-8?q?gyI0O+OINUmmk4u2h5QJp6fOUbXkqvyUHQ+47tr+UtJMIyoZaKuMZhb8OjqLlhyxq?= =?utf-8?q?CdlF85bcgMSOjC+I/f7Vm4CPznukOK11ukUmb3S2Fkck+NXH2YN2iDdKt9jEuNIi3?= =?utf-8?q?TIRe6IKj00g5GrhEZMNY2uPyhWKAS0sn4Hv4CR87AMSQZ16Sw+LHisxxUY7V7IP2b?= =?utf-8?q?RFLIzdxRAEWAcPHbQBqJ5eQi9jBEO5hap1fNSFEUKG54f0Es9VFyACOIfKsMck+eo?= =?utf-8?q?l+tmoKs2/jpJJUeNKjzpbcLKUzQMHS5sBStiar7UiXpdFrz+JPH96kzODK/BP4YuN?= =?utf-8?q?lgAYGn9UFNkWpBn2PGEeSfxB9qHg4BTrkG2S9jbKvS7dcE9XxLr5vsmZuMG7luyy9?= =?utf-8?q?0dZreiva8HDqt3P97jH7xDVLfPsl177bYWmE8SDlBPRxDhE5vm4VHnWTxC7319T/y?= =?utf-8?q?Zll8fpVyC7BkwN?= X-MS-Exchange-CrossTenant-Network-Message-Id: c8b8e075-cbba-4edc-459d-08d8da35016d X-MS-Exchange-CrossTenant-AuthSource: DS7PR03MB5608.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2021 09:00:46.6419 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335836de-42ef-43a2-b145-348c2ee9ca5b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: SDmOC1xhz686PaamtHRwgndd9eCuEW/a4JGYge28DZVxdkBN2nXGz8qU+nFtdFJaJ904kjelKf6Zl43b7TY/2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB4394 X-OriginatorOrg: citrix.com The current build of the firmware relies on having 32bit compatible headers installed in order to build some of the 32bit firmware, but that usually requires multilib support and installing a i386 libc when building from an amd64 environment which is cumbersome just to get some headers. Usually this could be solved by using the -ffreestanding compiler option which drops the usage of the system headers in favor of a private set of freestanding headers provided by the compiler itself that are not tied to libc. However such option is broken at least in the gcc compiler provided in Alpine Linux, as the system include path (ie: /usr/include) takes precedence over the gcc private include path: #include <...> search starts here: /usr/include /usr/lib/gcc/x86_64-alpine-linux-musl/10.2.1/include Since -ffreestanding is currently broken on at least that distro, and for resilience against future compilers also having the option broken provide a set of stand alone 32bit headers required for the firmware build. This allows to drop the build time dependency on having a i386 compatible set of libc headers on amd64. Signed-off-by: Roger Pau Monné Reviewed-by: Jan Beulich --- There's the argument of fixing gcc in Alpine and instead just use -ffreestanding. I think that's more fragile than providing our own set of stand alone headers for the firmware bits. Having the include paths wrongly sorted can easily make the system headers being picked up instead of the gcc ones, and then building can randomly fail because the system headers could be amd64 only (like the musl ones). I've also seen clang-9 on Debian with the following include paths: #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/lib/llvm-9/lib/clang/9.0.1/include /usr/include/x86_64-linux-gnu /usr/include Which also seems slightly dangerous as local comes before the compiler private path. IMO using our own set of stand alone headers is more resilient. Regarding the release risks, the main one would be breaking the build (as it's currently broken on Alpine). I think there's a very low risk of this change successfully producing a binary image that's broken, and hence with enough build testing it should be safe to merge. --- README | 3 -- tools/firmware/Rules.mk | 11 ++++++ tools/firmware/include/stdarg.h | 10 +++++ tools/firmware/include/stdbool.h | 9 +++++ tools/firmware/include/stddef.h | 10 +++++ tools/firmware/include/stdint.h | 39 +++++++++++++++++++ tools/firmware/rombios/32bit/rombios_compat.h | 4 +- 7 files changed, 80 insertions(+), 6 deletions(-) create mode 100644 tools/firmware/include/stdarg.h create mode 100644 tools/firmware/include/stdbool.h create mode 100644 tools/firmware/include/stddef.h create mode 100644 tools/firmware/include/stdint.h diff --git a/README b/README index 33cdf6b826..5167bb1708 100644 --- a/README +++ b/README @@ -62,9 +62,6 @@ provided by your OS distributor: * GNU bison and GNU flex * GNU gettext * ACPI ASL compiler (iasl) - * Libc multiarch package (e.g. libc6-dev-i386 / glibc-devel.i686). - Required when building on a 64-bit platform to build - 32-bit components which are enabled on a default build. In addition to the above there are a number of optional build prerequisites. Omitting these will cause the related features to be diff --git a/tools/firmware/Rules.mk b/tools/firmware/Rules.mk index 26bbddccd4..5d09ab06df 100644 --- a/tools/firmware/Rules.mk +++ b/tools/firmware/Rules.mk @@ -17,3 +17,14 @@ $(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS)) # Extra CFLAGS suitable for an embedded type of environment. CFLAGS += -fno-builtin -msoft-float + +# Use our own set of library headers to build firmware. +# +# Ideally we would instead use -ffreestanding, but that relies on the compiler +# having the right order for include paths (ie: compiler private headers before +# system ones). This is not the case in Alpine at least which searches system +# headers before compiler ones, and has been reported upstream: +# https://gitlab.alpinelinux.org/alpine/aports/-/issues/12477 +# In the meantime (and for resilience against broken compilers) use our own set +# of headers that provide what's needed for the firmware build. +CFLAGS += -nostdinc -I$(XEN_ROOT)/tools/firmware/include diff --git a/tools/firmware/include/stdarg.h b/tools/firmware/include/stdarg.h new file mode 100644 index 0000000000..c5e3761cd2 --- /dev/null +++ b/tools/firmware/include/stdarg.h @@ -0,0 +1,10 @@ +#ifndef _STDARG_H_ +#define _STDARG_H_ + +typedef __builtin_va_list va_list; +#define va_copy(dest, src) __builtin_va_copy(dest, src) +#define va_start(ap, last) __builtin_va_start(ap, last) +#define va_end(ap) __builtin_va_end(ap) +#define va_arg __builtin_va_arg + +#endif diff --git a/tools/firmware/include/stdbool.h b/tools/firmware/include/stdbool.h new file mode 100644 index 0000000000..0cf76b106c --- /dev/null +++ b/tools/firmware/include/stdbool.h @@ -0,0 +1,9 @@ +#ifndef _STDBOOL_H_ +#define _STDBOOL_H_ + +#define bool _Bool +#define true 1 +#define false 0 +#define __bool_true_false_are_defined 1 + +#endif diff --git a/tools/firmware/include/stddef.h b/tools/firmware/include/stddef.h new file mode 100644 index 0000000000..c7f974608a --- /dev/null +++ b/tools/firmware/include/stddef.h @@ -0,0 +1,10 @@ +#ifndef _STDDEF_H_ +#define _STDDEF_H_ + +typedef __SIZE_TYPE__ size_t; + +#define NULL ((void*)0) + +#define offsetof(t, m) __builtin_offsetof(t, m) + +#endif diff --git a/tools/firmware/include/stdint.h b/tools/firmware/include/stdint.h new file mode 100644 index 0000000000..7514096846 --- /dev/null +++ b/tools/firmware/include/stdint.h @@ -0,0 +1,39 @@ +#ifndef _STDINT_H_ +#define _STDINT_H_ + +#ifdef __LP64__ +#error "32bit only header" +#endif + +typedef unsigned char uint8_t; +typedef signed char int8_t; + +typedef unsigned short uint16_t; +typedef signed short int16_t; + +typedef unsigned int uint32_t; +typedef signed int int32_t; + +typedef unsigned long long uint64_t; +typedef signed long long int64_t; + +#define INT8_MIN (-0x7f-1) +#define INT16_MIN (-0x7fff-1) +#define INT32_MIN (-0x7fffffff-1) +#define INT64_MIN (-0x7fffffffffffffffll-1) + +#define INT8_MAX 0x7f +#define INT16_MAX 0x7fff +#define INT32_MAX 0x7fffffff +#define INT64_MAX 0x7fffffffffffffffll + +#define UINT8_MAX 0xff +#define UINT16_MAX 0xffff +#define UINT32_MAX 0xffffffffu +#define UINT64_MAX 0xffffffffffffffffull + +typedef uint32_t uintptr_t; + +#define UINTPTR_MAX UINT32_MAX + +#endif diff --git a/tools/firmware/rombios/32bit/rombios_compat.h b/tools/firmware/rombios/32bit/rombios_compat.h index 3fe7d67721..8ba4c17ffd 100644 --- a/tools/firmware/rombios/32bit/rombios_compat.h +++ b/tools/firmware/rombios/32bit/rombios_compat.h @@ -8,9 +8,7 @@ #define ADDR_FROM_SEG_OFF(seg, off) (void *)((((uint32_t)(seg)) << 4) + (off)) -typedef unsigned char uint8_t; -typedef unsigned short int uint16_t; -typedef unsigned int uint32_t; +#include typedef uint8_t Bit8u; typedef uint16_t Bit16u; From patchwork Fri Feb 26 08:59:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 12106139 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C84C1C433DB for ; Fri, 26 Feb 2021 09:09:04 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4A91664EEE for ; Fri, 26 Feb 2021 09:09:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4A91664EEE Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.90142.170562 (Exim 4.92) (envelope-from ) id 1lFYza-0007VI-8Q; Fri, 26 Feb 2021 09:00:58 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 90142.170562; Fri, 26 Feb 2021 09:00:58 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lFYza-0007VB-5C; Fri, 26 Feb 2021 09:00:58 +0000 Received: by outflank-mailman (input) for mailman id 90142; Fri, 26 Feb 2021 09:00:56 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lFYzY-0007UE-FO for xen-devel@lists.xenproject.org; Fri, 26 Feb 2021 09:00:56 +0000 Received: from esa6.hc3370-68.iphmx.com (unknown [216.71.155.175]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id d14fef2c-b6de-4b7c-b17b-f11b32700cfc; Fri, 26 Feb 2021 09:00:55 +0000 (UTC) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: d14fef2c-b6de-4b7c-b17b-f11b32700cfc DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1614330055; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=hcHZxn/yloaKbz4HuwpCWh+4xZp5v7qk/JNM42WjKUM=; b=XDhsBgQ7pKWMmfxld8eBDabMT1BJUNIpiLLFuSddW0EqvL97+ckfAc/h W+T6+bpBHJpaj7H3sh1pfNsTcykfFYGJuEzwJRQSd8i5lkZd86z/LfsSM +Imogjyi+DlOMh7n8vSJUpQZzMgSw2wRVOXY484/iJnxwPju3KjBAJKy2 Y=; Authentication-Results: esa6.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com IronPort-SDR: wSgAA5y5wVVo/oQ/CS6btyjOt1uTCrvFlD1Y/BVby9vwUiD5yoqxrN4/xpIO046Unqvoz8XC3y TizCFOUbkfvhgU48eGEqymCZsjOm3J79j2kgZMWFf8UbRe1K/WokNBFV1YALuzxbfzjBQccNk3 546ApWeMUynWsMbIuwkR4v1B0MdRqRBy6uLdHaqFcyAsWuszb0xdmi0qqfLI6Qmgl3aK7MgFxO buzu+N1R0mUtPKD4Q7Am3fcME6Ficss3sy9h4yxcFmlCpirFuXTiJXR35pJH4gM8GNFrOExxgM 0f8= X-SBRS: 5.2 X-MesageID: 38281509 X-Ironport-Server: esa6.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.83 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.81,208,1610427600"; d="scan'208";a="38281509" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gVcL7XXSzfeBk0HpU77cZvw+pdpXU9InFkf29LogVwHbUX/7uRa2LcM9DlmYrTsPWoHRewF2liSs/tLPp+xH5VIUfdHvhjW+6IGcVN120OeWqeiPZxVfNEO4475IbYv3gy/94E68n4QyuK0GlKI0V5+RxktZrsz0WHBjMiqUe5EbxmUsV/PASFasUv2qafPyyApiks4Pkust1c0rYs3M19zzgtNPwhXtkrHFdzr3a9v/pWvqxsKzf3emd7GbHASFlE0KKu2T9WHpkKttOdJG3ZOuyRtdFouLoOxO2+NthvKuRvcLs8mQh8XNmRJjuDdUtQt9rvyQuYH3c4JumktC6g== 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=cydJsAIez600M/vb94JozzdggeHZXjVoZDJiSVI8vdk=; b=V/sOIyIo1iWY2O4urxGerAoGPB/zjdgBmAcMJzjrm4m8aSw1dpSO1KdJPUraYRKe+R6t7qYe1DHUNt5HG3+iGOKGDs0+kCsQiBPgVW4AW68gw6vir77aVnmZqHf0BtXiW1dygdrvqej/g84mTZesRXVqb/3/Lfl+PN1DzL+CleNiTekwcZHzCtnsjq4MwIBU+wJ0plwkEkDItQxVxaFOoT6dhfByPZ4ISJ8ox2wSMslCGdskPlF8WDd2TWn3vEzJJhxylHtg+LPWSLVp/6P+XXHXaAuT/waBbJTmQZhrvnRVZj4QvW8Vv8wR8j0HMActwkDH1sCpc6joXVcmsaf/yA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.onmicrosoft.com; s=selector2-citrix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cydJsAIez600M/vb94JozzdggeHZXjVoZDJiSVI8vdk=; b=Qb3bkvoReEXHl1cTB3Wvl5VMr+wFUZFsIRA8+WGYwKrKQoU9qpmcnnVMP8kSwYpQDfErBYB7KVpjvsKA5XzwVQaQqnEnwsFov2RFgEm//7U7XgJDJUVZAe3v7JmW0aUNXNc26X4wocIZmaJhDpg+EekiDmKind9GD6z2V5Xdq28= From: Roger Pau Monne To: CC: Roger Pau Monne , Doug Goldstein Subject: [PATCH for-4.15 3/3] automation: enable rombios build on Alpine Date: Fri, 26 Feb 2021 09:59:08 +0100 Message-ID: <20210226085908.21254-4-roger.pau@citrix.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210226085908.21254-1-roger.pau@citrix.com> References: <20210226085908.21254-1-roger.pau@citrix.com> X-ClientProxiedBy: AM6P195CA0080.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:86::21) To DS7PR03MB5608.namprd03.prod.outlook.com (2603:10b6:5:2c9::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 24fd7f05-1b4b-450a-fd15-08d8da3504ec X-MS-TrafficTypeDiagnostic: DM6PR03MB4394: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AiZ5MAl9dU+k5KTCQeFt+JOOMNCSoIkBdrpbYrFSgkMQ6mNr/euqacEaAA5nSSpD6Nsi6yFOJHkUf9sbc4qxBE4NsDGRtVANWD5xFEgA769As8tiLHfQRfHxTy10e4ubuM6VZ5w2oCA24PYrCywQdEFavvlv8wJGnumR4JdEmHEgFPG82det3M/ZmuXNXPdVztv6jMLIt4bKOt5/xJmHU85zZ16LmJWShmg7HMK2sGEV3hQTCur+qiMEmy8UkCLixuoCCeWtFYPTU6tp9ixckOk9YKeKDTBo3eNhI6IXFv+jQJ7+naGpufd8wbEClAk7EeQIVqZKKongGKkkp4pNBj9UfBtHW1ntOJLaqcM6PX5K1DU4C73HwnaLg+389KXjJsS6iCKZowe8qyHji2sEfpAoG7ep/NjCmdXiF4DtLfyUQpNOGmnOEGAVGw8l6+tGpdIkIrex4Mwl36sXmIGPqnmliYI/sipoHBpOCG1CCsyZgMbnnav4SC4QhH6yRKa7PoHp1GVKFo0WyZC4qqnU2w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR03MB5608.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(346002)(39860400002)(376002)(136003)(366004)(396003)(6916009)(66556008)(66946007)(36756003)(316002)(478600001)(6496006)(6666004)(66476007)(86362001)(2616005)(26005)(4326008)(54906003)(186003)(1076003)(5660300002)(16526019)(2906002)(4744005)(8936002)(956004)(83380400001)(8676002)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?XkGebFZraZduaX5GcEvNxxFLmir92j?= =?utf-8?q?XuPJOd6eYMpx1KsZuWT7cWGyG5jpUxZabUR7R1vaj/J7HnWr8r8ml4NYfg1chXxP2?= =?utf-8?q?Yso9LWg78+5T8W4PSq+ReyphZ+IAfPV8MkqULkZ7woW3+mjP9xLVDDqbN/6dY06Wd?= =?utf-8?q?nkWTIW+hoPmQXCVcMRPQ7SWk1tUVmtWHg4zSZw/+RVVwQj5WNza/xbwosIXx+li/V?= =?utf-8?q?hbRv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Q7IBEQuFJ?= =?utf-8?q?qWl55RwRetTWmnu9ldeZDt1yslo9OxS93xwermRs87hhSl3SDwvGxuEzVofq59I5V?= =?utf-8?q?UOeA294g5V2Hv24oLOxvUy5+zOQS7ntXOkvZ9UcjK/uFLUKGlrG8O9sScDel/HHFI?= =?utf-8?q?pkb+1iu6yAuS77MjPEfGNqBYJDyVZKpCK2sO1zBpI74RJad7DdawzbhBOF6g0nI4d?= =?utf-8?q?ans6CyGox7pRPx?= X-MS-Exchange-CrossTenant-Network-Message-Id: 24fd7f05-1b4b-450a-fd15-08d8da3504ec X-MS-Exchange-CrossTenant-AuthSource: DS7PR03MB5608.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2021 09:00:52.4802 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335836de-42ef-43a2-b145-348c2ee9ca5b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MaxM2rmnO+DLUV5YP63C9oIIsO4PN46OQgTV2zz25vShUTPEahZL9pIOGpy3dnjg0Trj0TZZsq5LQLYydIRZFA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB4394 X-OriginatorOrg: citrix.com It's now safe to enable the build of rombios on Alpine systems, as hvmloader already builds fine there. Signed-off-by: Roger Pau Monné --- automation/scripts/build | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/automation/scripts/build b/automation/scripts/build index d8990c3bf4..87e44bb940 100755 --- a/automation/scripts/build +++ b/automation/scripts/build @@ -31,9 +31,8 @@ fi if ! test -z "$(ldd /bin/ls|grep musl|head -1)"; then # disable --disable-werror for QEMUU when building with MUSL cfgargs+=("--with-extra-qemuu-configure-args=\"--disable-werror\"") - # hvmloader doesn't build on MUSL systems - cfgargs+=("--disable-seabios") - cfgargs+=("--disable-rombios") + # SeaBIOS doesn't build on MUSL systems + cfgargs+=("--with-system-seabios=/bin/false") fi # Qemu requires Python 3.5 or later