From patchwork Fri Jun 15 12:42:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 138685 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp804063lji; Fri, 15 Jun 2018 05:49:32 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK4mLYz3t9KyHxu7ExlFvB025jJ2nb8YLnRFST1aykx4/7yCq9MX+2B5rDlXzIDxokjJKMc X-Received: by 2002:a50:fb8f:: with SMTP id e15-v6mr1750492edq.141.1529066972240; Fri, 15 Jun 2018 05:49:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529066972; cv=none; d=google.com; s=arc-20160816; b=GZOhuJq2NzRsbbTquecQRtF9VwloWW2Q7D9b1zJZ4OyWz9BEYRo/eP4noyAoxcIsRc WueSsFmwEHikO0/XTDU6oRfk9FiDsz9urtAVuis9EUtdcmPWhjBXYqvd432VUAYs4/BZ Dei88isqNa4qO4iQWphSRUZ5YEO3L0oNkXPboDJXjxy2++Lv1pUKtwmxOZq8CZ+a5s8T JthxuhL4mDV+Do2hrhR4yT/Q+kbA4n8uZw6SP5Oo/frscG2xHP2iioUaM1N5GgQDglWg fJimlr2e5p6ek18QWv3nEoq6isOlRqto1IQtZEVFzks5TpHHzDlgLcNcLuOxxVAt+91c CrRw== 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=j1dNMTjRk+JP0molinnobjvZac9fs4Izu6DPsvg2BlgBpR2EUpbQSNd2+Z12xJPREN kTeTmiP9nPiwps/uTJ0oTIkoQFJbmMePbPBo5C3osqkpu+U0+T5smK24Rdb4Q3QYZgdp 1LN289KKb4OXk0CP3mygEKltV9I/XJRqovYaFKYdNVq1iHs+KJNRyWx0b3Hn7nOR0ycM 29pjhfS7tkGUMSDlVbue20sANoVkRG8s38HBAWrMNU3DHFn49SbroHmhNpRWQUe1JkGr QcvGu2XHo6MO6E5TxDeZ9V5nP8XBzzEVzaD2AyE8hropxpLAnkRQIJURRsa7ht15vZA6 Xy8w== 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 m9-v6si6441868edf.0.2018.06.15.05.49.31; Fri, 15 Jun 2018 05:49:32 -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 CFD8BC21EFC; Fri, 15 Jun 2018 12:45:41 +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 AC9D4C21F38; Fri, 15 Jun 2018 12:42:40 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 8C4C0C21E29; Fri, 15 Jun 2018 12:42:33 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id 96168C21E52 for ; Fri, 15 Jun 2018 12:42:31 +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 DC024AD59; Fri, 15 Jun 2018 12:42:30 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Fri, 15 Jun 2018 14:42:13 +0200 Message-Id: <20180615124229.35310-2-agraf@suse.de> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20180615124229.35310-1-agraf@suse.de> References: <20180615124229.35310-1-agraf@suse.de> Cc: Andy Shevchenko , Heinrich Schuchardt Subject: [U-Boot] [PATCH v3 01/17] 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