From patchwork Tue Apr 4 16:02:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 96747 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp264092qgd; Tue, 4 Apr 2017 09:05:08 -0700 (PDT) X-Received: by 10.98.139.134 with SMTP id e6mr23734211pfl.257.1491321908571; Tue, 04 Apr 2017 09:05:08 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 17si5954615pfn.224.2017.04.04.09.05.08; Tue, 04 Apr 2017 09:05:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-efi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932223AbdDDQEx (ORCPT + 2 others); Tue, 4 Apr 2017 12:04:53 -0400 Received: from mail-wr0-f175.google.com ([209.85.128.175]:33208 "EHLO mail-wr0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932098AbdDDQD0 (ORCPT ); Tue, 4 Apr 2017 12:03:26 -0400 Received: by mail-wr0-f175.google.com with SMTP id w43so217981597wrb.0 for ; Tue, 04 Apr 2017 09:03:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JMMbiQy4zf91ikBibISS1Qw0/+rh81hJ11dHSlrD8ak=; b=bFh+b8gwMEcNhX43KClK4dvBf4vMisIzN1P1BcVX/cbF6konfko08zODaXJ7N0HJ8F ltcp4tJRm8BggQM1qXMajOk3t4mFthF9osXYHjXY+BGZzAdS+80j3mlAQUxful1iBOUy Afrqw8XNbN2dUwuWQqwV3Q4K+ztJd5QjzjC54= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JMMbiQy4zf91ikBibISS1Qw0/+rh81hJ11dHSlrD8ak=; b=DhWrqZfzbfIQOnc5Fq0p2xmF9do2eEXfaVVY30COXz/WQyIWMNb375Ubce59o5esep PaK5skaM5w5Lkq/Ea8VgyQrhhIcFMLRXEcQAL3+2jg/yKmU3cgbxlrTXGFeAJoKHmU0e Il4I+LmT/604f0KFrOkoX6RgnF7/PrN9ZdnQ+rMmMF47J5q3316+CqNP5x5BNMrWVzN3 leajNYOrdErHFSgGA6/XW3bHtVXXy80pa2bkKqEAax53jkGk0S9KzbiHQJe0P/drgGrh 2RLiHxWNywKto4TjgqR1JQNItJOtc9u6ALuFURR5QO8MCnjpf19Sg9lrHEB9kMsZo4vP 0zGw== X-Gm-Message-State: AFeK/H2g4D+oRSylaalpw2Bd7QvMFpWoQfhUwoX1+dh3Lg0MLJCNjrglhmH98BjcgrZqnkzK X-Received: by 10.223.176.133 with SMTP id i5mr22671848wra.97.1491321800476; Tue, 04 Apr 2017 09:03:20 -0700 (PDT) Received: from localhost.localdomain ([160.163.145.113]) by smtp.gmail.com with ESMTPSA id z88sm19686465wrb.1.2017.04.04.09.03.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Apr 2017 09:03:19 -0700 (PDT) From: Ard Biesheuvel To: linux-efi@vger.kernel.org, Ingo Molnar , Thomas Gleixner , "H . Peter Anvin" Cc: Bhupesh Sharma , Ard Biesheuvel , linux-kernel@vger.kernel.org Subject: [PATCH 04/12] x86/efi-bgrt: Move efi-bgrt handling out of arch/x86 Date: Tue, 4 Apr 2017 17:02:40 +0100 Message-Id: <20170404160245.27812-7-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170404160245.27812-1-ard.biesheuvel@linaro.org> References: <20170404160245.27812-1-ard.biesheuvel@linaro.org> Sender: linux-efi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org From: Bhupesh Sharma Now with open-source boot firmware (EDK2) supporting ACPI BGRT table addition even for architectures like AARCH64, it makes sense to move out the 'efi-bgrt.c' file and supporting infrastructure from 'arch/x86' directory and house it inside 'drivers/firmware/efi', so that this common code can be used across architectures. Cc: Matt Fleming Signed-off-by: Bhupesh Sharma Signed-off-by: Ard Biesheuvel --- arch/x86/platform/efi/Makefile | 1 - drivers/firmware/efi/Makefile | 1 + {arch/x86/platform => drivers/firmware}/efi/efi-bgrt.c | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename {arch/x86/platform => drivers/firmware}/efi/efi-bgrt.c (100%) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/x86/platform/efi/Makefile b/arch/x86/platform/efi/Makefile index 066619b0700c..f1d83b34c329 100644 --- a/arch/x86/platform/efi/Makefile +++ b/arch/x86/platform/efi/Makefile @@ -1,6 +1,5 @@ OBJECT_FILES_NON_STANDARD_efi_thunk_$(BITS).o := y obj-$(CONFIG_EFI) += quirks.o efi.o efi_$(BITS).o efi_stub_$(BITS).o -obj-$(CONFIG_ACPI_BGRT) += efi-bgrt.o obj-$(CONFIG_EARLY_PRINTK_EFI) += early_printk.o obj-$(CONFIG_EFI_MIXED) += efi_thunk_$(BITS).o diff --git a/drivers/firmware/efi/Makefile b/drivers/firmware/efi/Makefile index ad67342313ed..0329d319d89a 100644 --- a/drivers/firmware/efi/Makefile +++ b/drivers/firmware/efi/Makefile @@ -9,6 +9,7 @@ # KASAN_SANITIZE_runtime-wrappers.o := n +obj-$(CONFIG_ACPI_BGRT) += efi-bgrt.o obj-$(CONFIG_EFI) += efi.o vars.o reboot.o memattr.o obj-$(CONFIG_EFI) += capsule.o memmap.o obj-$(CONFIG_EFI_VARS) += efivars.o diff --git a/arch/x86/platform/efi/efi-bgrt.c b/drivers/firmware/efi/efi-bgrt.c similarity index 100% rename from arch/x86/platform/efi/efi-bgrt.c rename to drivers/firmware/efi/efi-bgrt.c