Received: from list by lists.gnu.org with archive (Exim 4.71) id 1c9qBx-0008JB-1v for mharc-grub-devel@gnu.org; Thu, 24 Nov 2016 04:19:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9qBv-0008J5-NU for grub-devel@gnu.org; Thu, 24 Nov 2016 04:19:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9qBq-00066y-R4 for grub-devel@gnu.org; Thu, 24 Nov 2016 04:19:39 -0500 Received: from boksu.net-space.pl ([185.15.1.105]:37919) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.71) (envelope-from ) id 1c9qBq-00066P-2C for grub-devel@gnu.org; Thu, 24 Nov 2016 04:19:34 -0500 Received: (from localhost user: 'dkiper' uid#4000 fake: STDIN (dkiper@boksu.net-space.pl)) by router-fw-old.local.net-space.pl id S1674835AbcKXJT3 (ORCPT ); Thu, 24 Nov 2016 10:19:29 +0100 Date: Thu, 24 Nov 2016 10:19:29 +0100 From: Daniel Kiper To: agraf@suse.de, grub-devel@gnu.org Cc: arvidjaar@gmail.com, leif.lindholm@linaro.org, dkiper@net-space.pl Subject: Re: [PATCH v2] efi: Move fdt helper into own file Message-ID: <20161124091929.GA6886@router-fw-old.local.net-space.pl> References: <1479741782-125672-1-git-send-email-agraf@suse.de> <4a6712d2-8f20-05cc-30a2-689dfac13ea1@gmail.com> <5B39D505-9576-4A4C-B108-C0B0BE9FB7ED@suse.de> <20161121215618.GE22877@router-fw-old.local.net-space.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161121215618.GE22877@router-fw-old.local.net-space.pl> User-Agent: Mutt/1.3.28i X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 185.15.1.105 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Nov 2016 09:19:40 -0000 On Mon, Nov 21, 2016 at 10:56:18PM +0100, Daniel Kiper wrote: > On Mon, Nov 21, 2016 at 08:22:41PM +0100, Alexander Graf wrote: > > > Am 21.11.2016 um 20:10 schrieb Andrei Borzenkov : > > > 21.11.2016 18:23, Alexander Graf ?$B'a'Z'j'V'd: > > >> We only support FDT files with EFI on arm and arm64 systems, not > > >> on x86. So move the helper that finds a prepopulated FDT UUID > > >> into its own file and only build it for architectures where it > > >> also gets called. > > >> > > >> Signed-off-by: Alexander Graf > > >> > > >> --- > > >> > > >> v1 -> v2: > > >> > > >> - Remove unused header includes > > >> --- > > >> grub-core/Makefile.core.def | 2 ++ > > >> grub-core/kern/efi/fdt.c | 44 ++++++++++++++++++++++++++++++++++++++++++++ > > >> grub-core/kern/efi/init.c | 22 ---------------------- > > >> include/grub/efi/efi.h | 2 ++ > > >> 4 files changed, 48 insertions(+), 22 deletions(-) > > >> create mode 100644 grub-core/kern/efi/fdt.c > > >> > > >> diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def > > >> index 21ad0dd..2dfa22a 100644 > > >> --- a/grub-core/Makefile.core.def > > >> +++ b/grub-core/Makefile.core.def > > >> @@ -212,8 +212,10 @@ kernel = { > > >> > > >> arm_efi = kern/arm/efi/init.c; > > >> arm_efi = kern/arm/efi/misc.c; > > >> + arm_efi = kern/efi/fdt.c; > > >> > > >> arm64_efi = kern/arm64/efi/init.c; > > >> + arm64_efi = kern/efi/fdt.c; > > >> > > >> i386_pc = kern/i386/pc/init.c; > > >> i386_pc = kern/i386/pc/mmap.c; > > >> diff --git a/grub-core/kern/efi/fdt.c b/grub-core/kern/efi/fdt.c > > >> new file mode 100644 > > >> index 0000000..f74d505 > > >> --- /dev/null > > >> +++ b/grub-core/kern/efi/fdt.c > > >> @@ -0,0 +1,44 @@ > > >> +/* fdt.c - EFI Flattened Device Tree interaction */ > > >> +/* > > >> + * GRUB -- GRand Unified Bootloader > > >> + * Copyright (C) 2006,2007 Free Software Foundation, Inc. > > >> + * > > > > > > What about this one? This is new file so it should be 2016. > > > > As mentioned in the v1 reply, it's a split of an existing file, > > so no new copyright was created. If you take a book and rip it > > in half, copyright doesn't suddenly change either. > > Make sense for me. If there are no more objections in 2-3 days > I will apply this patch. Done. Thanks for doing the work. Daniel