Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1paQBG-000355-2y for mharc-grub-devel@gnu.org; Thu, 09 Mar 2023 19:00:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paQBA-0002vo-8D for grub-devel@gnu.org; Thu, 09 Mar 2023 19:00:12 -0500 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1paQB8-0000MG-7x for grub-devel@gnu.org; Thu, 09 Mar 2023 19:00:11 -0500 Received: by mail-pj1-x1034.google.com with SMTP id nn12so3686876pjb.5 for ; Thu, 09 Mar 2023 16:00:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; t=1678406408; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UQfFi6Nlh+7/5nn8QOsx2wMotCE8yn1BahOrWlSvqDc=; b=Lq7llMrUlX/70LovEj1ojHsoxHXI7Rz1h/KnM+TMdoJUPrbpQu1o7OmuelRzl+HceC KjsobvCIOu2H6yUt7TXjq4PtG1s7WfmmjlnbV6LEKKmQoELqnccnjGZqI5OIC43Q0RS3 amUyWRhcTApUKvp2Mc6nxGzbZ6io6PtEgaGCHZrMhV4ZR/PmOZ4Kqgat/DsatLK7jS83 SDREAfOOV4Xjfv1b51alMveFrKdnlS8XE2AAwyk6pQrjiU5htngc13MuhPF0SI6KSZYe cMazpcBH8Gb+aPi41ibznjgYZ1Oh0RnWPY2xaGKdRBfNDH/HAaQOYBrkxlIvKlcR2xta 1vuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678406408; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UQfFi6Nlh+7/5nn8QOsx2wMotCE8yn1BahOrWlSvqDc=; b=aIoHBAFDuIbHmG9yK/IgjXkrBGuxabArhTf9XM8RXQugvmEKW4+s102+KVaQye/SjG ml4jHsX0DuA0Qol9+uo90ho8uyq5IVMns40nsyQnbRCPlvHsMksjJhWdb+H1lkikiJqn VhYpL7SLx3EJpYMtfWNMUZhmMoc13v2gjXWRdRwBAhtgNAuXDfrpGgBfQp02HTyGRG+7 qAxa6qK3LedVasj+QOmg50jBb9I5g9DSTjfdRRarLNkJlsztfmD2e3ftWwjPG7HsA/IF fmCyUtNTVtpa2lFMNVDGyxlHl60Xc8bTJLLuXGO17J84Hm5PVH7UTn6an1tiPztYdxtH BByA== X-Gm-Message-State: AO0yUKU7TKS3Yl3AE/Vs7i0IO0rUxfQgPnvGQIOLC4o2goc6Cn8Wwd7P kMOw0cm2MPdEsvR9DwKKbIdz2ngeud/MrhF69o0= X-Google-Smtp-Source: AK7set+5KYIHsGxTUsY3cIQp8uQNd6xOlHUHdNl6bTlIrm+BtP2zuNBanAIkejKr1boPfq+dFAc5iw== X-Received: by 2002:a17:902:c20d:b0:19e:839f:ef5a with SMTP id 13-20020a170902c20d00b0019e839fef5amr21302808pll.60.1678406408127; Thu, 09 Mar 2023 16:00:08 -0800 (PST) Received: from atishp.ba.rivosinc.com ([66.220.2.162]) by smtp.gmail.com with ESMTPSA id kb4-20020a170903338400b0019ee0afcc24sm193725plb.94.2023.03.09.16.00.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 16:00:07 -0800 (PST) From: Atish Patra To: grub-devel@gnu.org Cc: Atish Patra , Daniel Kiper , Ard Biesheuvel , Fu Wei , Leif Lindholm , Nikita Ermakov , Atish Patra , Heinrich Schuchardt , Julian Andres Klode , Ilias Apalodimas , fvogt@suse.de, mchang@suse.com, Robbie Harwood Subject: [v8 PATCH 1/3] loader: Move arm64 linux loader to common code Date: Thu, 9 Mar 2023 15:59:51 -0800 Message-Id: <20230309235953.1882811-2-atishp@rivosinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230309235953.1882811-1-atishp@rivosinc.com> References: <20230309235953.1882811-1-atishp@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=atishp@rivosinc.com; helo=mail-pj1-x1034.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Mar 2023 00:00:12 -0000 ARM64 linux loader code is written in such a way that it can be reused across different architectures without much change. Move it to common code so that RISC-V doesn't have to define a separate loader. Signed-off-by: Atish Patra Reviewed-by: Daniel Kiper --- grub-core/Makefile.core.def | 4 ++-- grub-core/loader/{arm64 => efi}/linux.c | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename grub-core/loader/{arm64 => efi}/linux.c (100%) diff --git a/grub-core/Makefile.core.def b/grub-core/Makefile.core.def index 71093a1..3ec0e7b 100644 --- a/grub-core/Makefile.core.def +++ b/grub-core/Makefile.core.def @@ -1826,9 +1826,9 @@ module = { sparc64_ieee1275 = loader/sparc64/ieee1275/linux.c; ia64_efi = loader/ia64/efi/linux.c; arm_coreboot = loader/arm/linux.c; - arm_efi = loader/arm64/linux.c; + arm_efi = loader/efi/linux.c; arm_uboot = loader/arm/linux.c; - arm64 = loader/arm64/linux.c; + arm64 = loader/efi/linux.c; riscv32 = loader/riscv/linux.c; riscv64 = loader/riscv/linux.c; emu = loader/emu/linux.c; diff --git a/grub-core/loader/arm64/linux.c b/grub-core/loader/efi/linux.c similarity index 100% rename from grub-core/loader/arm64/linux.c rename to grub-core/loader/efi/linux.c -- 2.25.1