From patchwork Mon Jun 18 15:22:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 138998 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4081774lji; Mon, 18 Jun 2018 08:23:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKWKRthZNPqiN0j+60Pk9KX0To5yS9JThpc4vYK2LHBcTAn577xDjS/8Fwq3Z+hhFM8bJMw X-Received: by 2002:a50:f4cf:: with SMTP id v15-v6mr11552028edm.162.1529335414618; Mon, 18 Jun 2018 08:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529335414; cv=none; d=google.com; s=arc-20160816; b=OZAfVMSTmqQzFsTapHyLS+vdKVULvx5MiJqkNuUoZ2pufuPu24oCfxCnTm27JDloye EuZ+f1owcCel6hr4uCqXAnQCx3BnMFGzDgFEMeYnBDwE+d4k5S+5N/8XsBhMV+neZGnK k8SVvudGILkTTkL2YVbYP6n9+19pAvDwxAARHZi4zFrldNEj56cIuf33+n1mKE5CSdQz iPaEBq0rb2s3HeHJqIT02vGR66DRzPpmjLhb/pi/kP76BXV+YGDroJiIcgANqbh6wtwG GmapEX9K+mH+kIFNSj2XOzD1B6m/xeeVo/6zXICL5AYrfjl4o2F4LTedXJlqaPI8+P5K pNJg== 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=sB9K8Nwx1HKftgxbQqAC+ykPM1G0hMClhJ9aEqRlOlywHedmT1GhjrHRdYmZVihidJ VrIhMBTgFbGpE+atb7pdBkNADiA90NEj5mX47VBIeg9XG+7tB39KV91kACo9g+wsrBdj +pZs2wVLmSWX7DomiEcr5QhvHtgcBmojvusqTIuJrCfnH86THW/nfovraW38nWJ4Ox1e CpLWh2Yl562KEbjA+GEdOA2nyihmRevNZ/YaIFnD/aijFVj2CnBS/ccaqHsa0vBSPiDV loH9pjECJ6SBeI9qNTQxTulWbRd4OivIXjagOiNv4BDobE+o07WSt3k2Hyjtzqm6A2QR rRmA== 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 s48-v6si6491420edb.319.2018.06.18.08.23.34; Mon, 18 Jun 2018 08:23:34 -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 23EAFC21F81; Mon, 18 Jun 2018 15:23:21 +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 18DCBC21DFA; Mon, 18 Jun 2018 15:23:19 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 8F8F2C21E1D; Mon, 18 Jun 2018 15:23:17 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id 2EB0EC21DED for ; Mon, 18 Jun 2018 15:23:17 +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 BC00EAF5B; Mon, 18 Jun 2018 15:23:16 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Mon, 18 Jun 2018 17:22:55 +0200 Message-Id: <20180618152315.34233-2-agraf@suse.de> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20180618152315.34233-1-agraf@suse.de> References: <20180618152315.34233-1-agraf@suse.de> Cc: Heinrich Schuchardt , Andy Shevchenko Subject: [U-Boot] [PATCH v4 01/21] 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