From patchwork Thu Feb 1 18:18:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 126565 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1950876ljc; Thu, 1 Feb 2018 10:20:35 -0800 (PST) X-Google-Smtp-Source: AH8x226WgcthBJq6vyZgvkUPY6mNhc8sIu2Fp0ZoTA8A2EQsIp8v654tzfQ5HgX6d7hP5d7Qlxec X-Received: by 10.37.51.196 with SMTP id z187mr13034254ybz.98.1517509234960; Thu, 01 Feb 2018 10:20:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517509234; cv=none; d=google.com; s=arc-20160816; b=o4no/q2v1r0Z9Gv0DfCc13U4euSO+SysXPCFOXyCkKbYfAZnvP4F6DhrquUyZGEbYq Grv/cR1lgq4RC0/Ijl+vNOMAApZd28nPn8xwVbUnHROFV3+NjCiafZyls9tGTA4nzLsT rm5Hr3/nBIh0sBNVTPdT6Pzd4p4q+EyUcjFrDvznaYGsByDy0SbiDOXDSE0ic1jFNRcx PPB6CC5AS+atepvzqVDuhMKY+3Iqc/fCN/WCX/vjsCkHNP6iJ68s64uBaw9ywVNJIuxd oDGmfTmk6qG65qquvRHLojLr+qBtcryrLVPs+BRIN+cbXvBXDyyeoT6I8NOB4kId9C5W xF1A== 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:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from:dkim-signature :arc-authentication-results; bh=WIB1HKGzYH5zt+N8GBdqdf/8ajIz4yB8VXfqx9rLNXE=; b=PeCIg9bhQXEIwvcBE8NCF4UYTg0/+qjjBbeLuGc0tF0gs4/HUYA2ykl/fsiN9HAmXF veT/z/9MNTHEsjLugEdWlpGw79+JWfl3j7ot5BVhHVDKoITaH9Td4b9LAPhBpAvTabSi OTmTNyr/C+lpwRuRhposXiTxzng3703ODKytglS/EL2PdCK6kfdeOSCaxRTDhXxbqXJD uY4POOO6IuYdaw9RtfrLE1rnCi6n9wbtCvgXAh2KvCMrhaSRvbzAsF/wc1AkbKlapq5v /OOaAWOQR3W2AUeiG9W3dMW6+ujGtL4tv9iPdB40aTsV5oAZyTEhsn5CaixoFvyN2yLg Dc4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=P4QCKzDo; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id q36si35767ywa.318.2018.02.01.10.20.34 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 01 Feb 2018 10:20:34 -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; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=P4QCKzDo; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:52713 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehJTO-0003nn-4P for patch@linaro.org; Thu, 01 Feb 2018 13:20:34 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehJRz-0003mB-KJ for grub-devel@gnu.org; Thu, 01 Feb 2018 13:19:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehJRu-00037o-LD for grub-devel@gnu.org; Thu, 01 Feb 2018 13:19:07 -0500 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:51862) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ehJRu-00034l-Da for grub-devel@gnu.org; Thu, 01 Feb 2018 13:19:02 -0500 Received: by mail-wm0-x241.google.com with SMTP id r71so7807377wmd.1 for ; Thu, 01 Feb 2018 10:19:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=RnhG+4ZYlkQifV9aPamrksPyR7XI7LPU6cgINNmgwCA=; b=P4QCKzDocJBeboQFIHp8oDfH4EHhEi+nArhZAstKDlCRJRRtSAbBeDIPVPLbwKQPKg rOFh/G/KS4rgSV6NkqkSYxxhDI5anDEt39iAT3O++Zq8opnMliC72r1j7X960eXV2SHd M8pnP5gN4NMFlC7iGZUf9ky2IqJVCqWNQMBgU= 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; bh=RnhG+4ZYlkQifV9aPamrksPyR7XI7LPU6cgINNmgwCA=; b=NC4MeYacZqBahm1yb8Pl/6xkr9x7iiqUYA4T2cv+Dt24tQ3lkNwzGtwKUN8naFiqS2 p1kxD/6Ss7rxH5tiKxOYa83KzVZrdExZugaHSFwiovNi60EAqAupBC4iYzPzRxxpEc1t 2JrZ++19Gk0S6uVuzoqdg0w61ebuXcvESokd5wWnYOexGYwSnKUtfe+K/oKAdEgQukWN W7PDivruaWNc9OPzKNdTRGy1boDyqn8KB4v9psHG/jkcNptJJgczgBc+JR4+0D37IyL2 A13tOybaD+TD0tXW3kx+MPZ/Mwl+yMdzcU6mG+9QaeKJxmlV3hX+SBksRyxphEqML60s T+Qg== X-Gm-Message-State: AKwxytePmdey36OX1Nfj2BInDnYfsCV5UkHUBjE1MJtQKg6NmnUFX1W3 3/VXFgaVbfq0cyRIyMfPPd0uJ5+Ei/Q= X-Received: by 10.28.211.130 with SMTP id k124mr19291834wmg.62.1517509140447; Thu, 01 Feb 2018 10:19:00 -0800 (PST) Received: from vanye.hemma.eciton.net (cpc92316-cmbg19-2-0-cust118.5-4.cable.virginm.net. [82.12.0.119]) by smtp.gmail.com with ESMTPSA id b11sm163911wrf.23.2018.02.01.10.18.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Feb 2018 10:18:59 -0800 (PST) From: Leif Lindholm To: grub-devel@gnu.org Subject: [PATCH 00/10] various cleanup Date: Thu, 1 Feb 2018 18:18:48 +0000 Message-Id: <20180201181858.1472-1-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.11.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::241 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: , Reply-To: The development of GNU GRUB Cc: Daniel Kiper MIME-Version: 1.0 Errors-To: grub-devel-bounces+patch=linaro.org@gnu.org Sender: "Grub-devel" So, sorry I dropped the ball on this last year. This series contains what I would hope to be non-contentious cleanup in preparation for the functional changes (/fixes) for the arm64 linux loader and its reuse in the arm-efi port. 1/10 Simply moves the EFI_PAGE definition to . 2-7/10 Cleans up and aligns the macro and struct naming for . 8/10 Makes it possible to include in a non-native command or utility. 9-10/10 Switches to use the arm/arm64 kernel header structs in the "file" command". Leif Lindholm (10): arm64/efi: move EFI_PAGE definitions to efi/memory.h Make arch-specific linux.h include guards architecture unique make GRUB_LINUX_MAGIC_SIGNATURE architecture-specific i386: make struct linux_kernel_header architecture specific arm64: align linux kernel header struct naming with i386 arm64: align linux kernel magic macro naming with i386 arm: switch linux loader to linux_arm_kernel_header struct arm: make linux.h safe to include for non-native builds commands/file: use definitions from arm/linux.h commands/file: use definitions from arm64/linux.h grub-core/commands/file.c | 31 +++++++++++++++---------------- grub-core/loader/arm/linux.c | 11 +++++------ grub-core/loader/arm64/linux.c | 7 ++++--- grub-core/loader/arm64/xen_boot.c | 5 +++-- grub-core/loader/efi/fdt.c | 1 + grub-core/loader/i386/linux.c | 4 ++-- grub-core/loader/i386/pc/linux.c | 12 ++++++------ grub-core/loader/i386/xen_file.c | 4 ++-- include/grub/arm/linux.h | 25 +++++++++++++++++-------- include/grub/arm64/linux.h | 13 ++++++------- include/grub/efi/fdtload.h | 3 --- include/grub/efi/memory.h | 7 +++++++ include/grub/i386/linux.h | 10 +++++----- 13 files changed, 73 insertions(+), 60 deletions(-) -- 2.11.0 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel