From patchwork Wed Feb 24 18:01:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fu Wei Fu X-Patchwork-Id: 62819 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp2553388lbl; Wed, 24 Feb 2016 10:02:29 -0800 (PST) X-Received: by 10.140.91.109 with SMTP id y100mr49670121qgd.42.1456336949491; Wed, 24 Feb 2016 10:02:29 -0800 (PST) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id n127si3785951qhb.71.2016.02.24.10.02.29 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 24 Feb 2016 10:02:29 -0800 (PST) Received-SPF: pass (google.com: domain of grub-devel-bounces+patch=linaro.org@gnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; spf=pass (google.com: domain of grub-devel-bounces+patch=linaro.org@gnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=grub-devel-bounces+patch=linaro.org@gnu.org Received: from localhost ([::1]:37480 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYdld-0000g9-2w for patch@linaro.org; Wed, 24 Feb 2016 13:02:29 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45242) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYdlK-0000ca-5B for grub-devel@gnu.org; Wed, 24 Feb 2016 13:02:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYdlJ-0002do-7c for grub-devel@gnu.org; Wed, 24 Feb 2016 13:02:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYdlJ-0002dT-2f for grub-devel@gnu.org; Wed, 24 Feb 2016 13:02:09 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 8EE5563140; Wed, 24 Feb 2016 18:02:08 +0000 (UTC) Received: from magi-f22.redhat.com (vpn1-5-9.pek2.redhat.com [10.72.5.9]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u1OI1o56031440; Wed, 24 Feb 2016 13:02:01 -0500 From: fu.wei@linaro.org To: grub-devel@gnu.org, arvidjaar@gmail.com, phcoder@gmail.com Subject: [PATCH 1/3] arm64: add grub_xen_boot env to indicate that we have xen_* commands Date: Thu, 25 Feb 2016 02:01:39 +0800 Message-Id: <1456336901-25708-2-git-send-email-fu.wei@linaro.org> In-Reply-To: <1456336901-25708-1-git-send-email-fu.wei@linaro.org> References: <1456336901-25708-1-git-send-email-fu.wei@linaro.org> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 24 Feb 2016 18:02:08 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Cc: xen-devel@lists.xensource.com, Ian.Campbell@citrix.com, jcm@redhat.com, julien.grall@linaro.org, leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, Fu Wei X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: grub-devel-bounces+patch=linaro.org@gnu.org Sender: grub-devel-bounces+patch=linaro.org@gnu.org From: Fu Wei Signed-off-by: Fu Wei --- grub-core/loader/arm64/xen_boot.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.5.0 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel diff --git a/grub-core/loader/arm64/xen_boot.c b/grub-core/loader/arm64/xen_boot.c index 8ae43d7..ef03111 100644 --- a/grub-core/loader/arm64/xen_boot.c +++ b/grub-core/loader/arm64/xen_boot.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -490,10 +491,17 @@ GRUB_MOD_INIT (xen_boot) grub_register_command ("xen_module", grub_cmd_xen_module, 0, N_("Load a xen module.")); my_mod = mod; + +/* setup a env to indicate that + * we have xen_* commands. + */ + grub_env_set ("grub_xen_boot", "y"); + grub_env_export ("grub_xen_boot"); } GRUB_MOD_FINI (xen_boot) { grub_unregister_command (cmd_xen_hypervisor); grub_unregister_command (cmd_xen_module); + grub_env_unset ("grub_xen_boot"); }