Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1ogn5u-0000kI-Nd for mharc-grub-devel@gnu.org; Fri, 07 Oct 2022 09:08:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogj44-0003sb-Gy for grub-devel@gnu.org; Fri, 07 Oct 2022 04:50:49 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:34341) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogj40-0003MS-9n for grub-devel@gnu.org; Fri, 07 Oct 2022 04:50:37 -0400 Received: by mail-pf1-x42e.google.com with SMTP id f140so4379463pfa.1 for ; Fri, 07 Oct 2022 01:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; 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=jGt/X8mSuzied0JB7HVQVACVCG4nPguuP5r+W5zyq8o=; b=tp+jxXFPbxmlAyXf/YCWg/3WDUNgzPq497gD3E1naVpZiPDijxqFIq9gWapT8Yd9zf p4pdEAGZNiFeDnctkPTjwTRq93dOGwHWQwMtRZNBiWxkAziHho3hPx3ZqGPiW5t0wEFc Dmcc1MEYRqyvNhEG2IJv8Waqt0xHuXhcNB+IW6NI9QMesV5jle6blq/KkI0QTV8PzHz5 +8bT5sbrMp2n3jvRg3KLfEhRAcT+58RdfVU49Nv8yCIz2Pt/tmsu3g6hN/m7R5XpJ+Il XuSEqMat23RS8IV69iF3h5vbul3ADMn8FZdiIYxOVBT/GnpCnfFFaDlWNCTWirZXShJ6 55qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=jGt/X8mSuzied0JB7HVQVACVCG4nPguuP5r+W5zyq8o=; b=Ujp7/bSP626I5U4hDiHLZAlFcCt9EfkonGmsrjGeXji1sVwS9D20AXoi2TX/SbLR7Z 0FkB26OnMLHdXibz2Ohmi8oC5TW6U7IWq11NOCD4+w1fnlg6d9BuKKnNRadQBJJpQVj3 QpV6K/+6fZj2GuXPt/JvAZEKIIR5X7k215EI8B7gTmOm+HpGDBvF38FeVrh3K3AOR5as ru7Z2xj4DzS7QB2JbTRz4u7F7toYnx+GHfeYlJlb5dkFvM0f+ny3EmN7bcHItjppzw3O iTPTFMTUYK9gu4anHaltE2xVBkr3JdCxKSnpkHpW2iybEZw5VpGD9uMEPHYgU1Lnu76m UXQQ== X-Gm-Message-State: ACrzQf2+z9A98OAhdxjeV0F3jU3AP2CxMIYnfbGWyhRnSEdKz8JVxAvp cLnOHqMxeKKDzVchYqXYb7yN3A3cXZ186w== X-Google-Smtp-Source: AMsMyM6ve0sffHP3TnVfBVRBAwXOiieRLcxNsM+NwFCOTFcz4BdFc94PuaK2aD5bXPh97r2wzKViDw== X-Received: by 2002:a63:20f:0:b0:439:c92f:e6d1 with SMTP id 15-20020a63020f000000b00439c92fe6d1mr3566139pgc.334.1665132634634; Fri, 07 Oct 2022 01:50:34 -0700 (PDT) Received: from atishp.ba.rivosinc.com ([66.220.2.162]) by smtp.gmail.com with ESMTPSA id y16-20020a1709027c9000b0017f756563bcsm1010519pll.47.2022.10.07.01.50.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Oct 2022 01:50:34 -0700 (PDT) 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 , Andreas Schwab , Ilias Apalodimas Subject: [v5 PATCH 1/3] loader: Move arm64 linux loader to common code Date: Fri, 7 Oct 2022 01:50:28 -0700 Message-Id: <20221007085030.341045-2-atishp@rivosinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221007085030.341045-1-atishp@rivosinc.com> References: <20221007085030.341045-1-atishp@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=atishp@rivosinc.com; helo=mail-pf1-x42e.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-Mailman-Approved-At: Fri, 07 Oct 2022 09:07:52 -0400 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, 07 Oct 2022 08:50:54 -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. Reviewed-by: Daniel Kiper Signed-off-by: Atish Patra --- 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 5212dfab1369..ce95c76eaffa 100644 --- a/grub-core/Makefile.core.def +++ b/grub-core/Makefile.core.def @@ -1817,9 +1817,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; common = loader/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