From patchwork Thu Jun 14 18:22:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 138609 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp2455868lji; Thu, 14 Jun 2018 11:28:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL5Ovu7iFCpuqs8pC5Wnwm3QBEs0AxONbxhRrHoUo+DXY/rhvxCPx8lwtHXoZsqFM9FYpKU X-Received: by 2002:a50:e0c4:: with SMTP id j4-v6mr3588363edl.198.1529000887539; Thu, 14 Jun 2018 11:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529000887; cv=none; d=google.com; s=arc-20160816; b=E2lDG84GbQbFLW91/mgJLC6kp4Ti4miId+nOH71wgvFmkg0cEKVc76F0EvApEusrh6 Fy1jhMAze02cBdH2pd0cgjGR73YgQLZhRy9OlBvv2VBReZV3FkzEyge4yzdLAtsAJuwm tD+XX3NL00aRtd+XQOA+uL/I42l2nValAzs1INSn2P5F6cmisjhGsOKrON7k2mUeF8Ff plNrm3jQDPZYtq7kZ2SrgRsrhn09HgD2UGQ03LRazvL57oykgBi5yL76LtI6cnUaI1mx uysfuT6l2nufdqo9y+tPgr/2CZ5UDxh5TTllFZvyCexokBNHl/9nyhdovilX5sy9SZlI BYIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:arc-authentication-results; bh=j0UsDECa98ZO9D8rx5HlV2PNXL6+50mB7kBR/pzZJk8=; b=mty9RK1oxYLtBig3s4u1S1SDA2HYUUeMreEWiAMSBxb4Rw0EhloetvQYaJlxDCUudF SAuHdMvMJKgDhVsQdvtlbzn0HF510OAsVcmPiKoUdJLhmEVm7BO0DTj3prpQvwDFGICf ih/5iPyxEvNaxFq2ekDmvgRn95r3NcAU+ikIweOxdLhLluy3tnO9ejjrGC5KiXaLj/Ue NkT3q4LElA+3o/EIly4tgYeivqBLw3h1FKAEZV1KWg4LMLu1jdgNGyazHp4Mo2A9/set D5T9khchtFkv2ZajuMbM/k5k9zpxKHbtZwnjw+7JiYZhpLZ1xf9IAq8c7ktZzW+oQFFK 335Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id h8-v6si656386eda.272.2018.06.14.11.28.07; Thu, 14 Jun 2018 11:28:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 258A8C21D9A; Thu, 14 Jun 2018 18:24:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id DE192C21E2B; Thu, 14 Jun 2018 18:22:42 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 101E9C21C27; Thu, 14 Jun 2018 18:22:35 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id 57522C21CB6 for ; Thu, 14 Jun 2018 18:22:35 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 92E8BAFAA; Thu, 14 Jun 2018 18:22:34 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Thu, 14 Jun 2018 20:22:22 +0200 Message-Id: <20180614182232.78201-2-agraf@suse.de> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20180614182232.78201-1-agraf@suse.de> References: <20180614182232.78201-1-agraf@suse.de> Cc: Heinrich Schuchardt , Andy Shevchenko Subject: [U-Boot] [PATCH v2 01/11] efi: sandbox: Add distroboot support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Simon Glass With sandbox these values depend on the host system. Let's assume that it is x86_64 for now. Signed-off-by: Simon Glass Signed-off-by: Alexander Graf --- include/config_distro_bootcmd.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h index d672e8ebe6..1bd79ae3b8 100644 --- a/include/config_distro_bootcmd.h +++ b/include/config_distro_bootcmd.h @@ -251,6 +251,8 @@ #elif defined(CONFIG_ARM) #define BOOTENV_EFI_PXE_ARCH "0xa" #define BOOTENV_EFI_PXE_VCI "PXEClient:Arch:00010:UNDI:003000" + +/* For sandbox we only support 64-bit x86 at present */ #elif defined(CONFIG_X86) /* Always assume we're running 64bit */ #define BOOTENV_EFI_PXE_ARCH "0x7" @@ -261,6 +263,17 @@ #elif defined(CONFIG_CPU_RISCV_64) #define BOOTENV_EFI_PXE_ARCH "0x1b" #define BOOTENV_EFI_PXE_VCI "PXEClient:Arch:00027:UNDI:003000" +#elif defined(CONFIG_SANDBOX) +/* + * TODO(sjg@chromium.org): Consider providing a way to enable sandbox features + * based on the host architecture + */ +# ifndef __x86_64__ +# warning "sandbox EFI support is only tested on 64-bit x86" +# endif +/* To support other *host* architectures this should be changed */ +#define BOOTENV_EFI_PXE_ARCH "0x7" +#define BOOTENV_EFI_PXE_VCI "PXEClient:Arch:00007:UNDI:003000" #else #error Please specify an EFI client identifier #endif