From patchwork Thu Jun 14 16:33:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 138587 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp2340699lji; Thu, 14 Jun 2018 09:39:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIqMqwoq2qeYJzDNqgG19X0Zd8o93Fgz+rjiccfRWgGcPIPESHTt/rRI5MxPvOrrGkGJij3 X-Received: by 2002:a50:fc88:: with SMTP id f8-v6mr3291750edq.166.1528994345488; Thu, 14 Jun 2018 09:39:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528994345; cv=none; d=google.com; s=arc-20160816; b=fRjr/+KDKMcOKYpnnold5TAop+hFCY3f26FmCStZcxn52IiMr5XbVcpxttbJ4H52AA EJ2bJBm0MyA957owjMQeAQlOsEat2JDSbZANBF6VzkH2L+ukg8Nb5rbPBCm6NdXVWNmg zIA5GkiKOzc/+1D/UHeQqpqOtyP8sqot5/FPMafTsAmpXtFv4wW5fQlz/47/UTy8TuFa 5jQgfr8CsAkPtTQVPAHwn2nOVSImyz09r6VRWLVS3yCYBf0INCaEX+V/enSQWnmJfPdN v6lz/uxKCEh29OcZwkU86FHMPfGMTnwE1BzhetUtodbkutg639jPMDYTJNyrQOI3SFrw UnvA== 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=CP8XB6GEynPOkrKyA7tCKByi7ykrv21VhnsTZXZjXVB0I1usf2ZmanmzGog2clDYAs 0ktiOslgeFe8AGLdN7wU3AN29LB8fwCS1MG+WrpzF0jjTi55qcIo/uK3t/aCx8KCThBG nKztnoWpab8OJXYxh/ReWpAY/shwYrMrWquJfIFR4EOCdnX6Go1v83X2b8z7FGecMpye 7QMdIyCFFCT4uwPysMFpG5FZM6th29fp0RcSPA912DqERxKueAE+7alKf5+7r9PxCRB3 LnBhqKP8QBUGe7TqTxDQqgKm6sHxLcgSa8kyZ6pSjZQCELMUWjTGFi3snOa/X2S2Stgz P8jQ== 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 c11-v6si1662816edj.417.2018.06.14.09.39.05; Thu, 14 Jun 2018 09:39:05 -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 09A2EC21E47; Thu, 14 Jun 2018 16:34:31 +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 2A732C21E31; Thu, 14 Jun 2018 16:33:39 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E8F41C21D83; Thu, 14 Jun 2018 16:33:35 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id 48E38C21C2C for ; Thu, 14 Jun 2018 16:33: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 AC1D6AE86; Thu, 14 Jun 2018 16:33:34 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Thu, 14 Jun 2018 18:33:24 +0200 Message-Id: <20180614163334.46827-2-agraf@suse.de> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20180614163334.46827-1-agraf@suse.de> References: <20180614163334.46827-1-agraf@suse.de> Cc: Heinrich Schuchardt Subject: [U-Boot] [PATCH 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