Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1or64u-00040Z-5u for mharc-grub-devel@gnu.org; Fri, 04 Nov 2022 19:26:24 -0400 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 1or64p-000409-C0 for grub-devel@gnu.org; Fri, 04 Nov 2022 19:26:19 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1or64n-0008Gt-Kr for grub-devel@gnu.org; Fri, 04 Nov 2022 19:26:19 -0400 Received: by mail-pl1-x634.google.com with SMTP id l2so6197631pld.13 for ; Fri, 04 Nov 2022 16:26:17 -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=s4paViV7n6oATO8fTpr3aTMzCAvVvEZRXLT1eMDJgtQelEhgFATV98ExCjfrl5+uIa IIpk4zf3zujKZnLoZnKxBhR84acnkDS6hoDcujJ7oqB3hkYoq4yHBcdfiw0puN8yLCem iaKb1DMxkcCBmPWgO2mCga9LsxPrq2+BcrKHblxvp5M+v6uK0J7/OIwW0Cgn8coGflJW 00N/frdzHFoQDHWd+8xg/COMBP9mIrEuG9dYHexlcph3igwiwEGkd+ei46WqIxNKnxb0 bsPmHD14OnAEBDVasA8D5qYI+kAGlBKcTgDG9KoFKof26ycppbNqPdv2LOKDTJOnECmv NYug== 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=wtUdcy3VOhyvpqF3kvV8hZ6jik2QJMiFoNq7kF/XkJICNn3uCnGo5D5FGYmOh/cbjM HXHoggkppZjwuW3xEaJphIWhOAv9QHEs2X0FkJ7SomFoOZw6NY6BQB2lhoZyNF0n5oRj Hr6U+7G5E9tCDCS3uvox8uoJTj6F2C45DTW6g9nuxP/Z5f9o/f+5HtWFNBit9pbqL7NE AZeLygoUZ/JTjvpY0oG7hLBnASn0c4XIWrCcEY7CtmMKclt8acYE+rCwy3aipg6RyPU2 ZHFk9Fg8lhZxraB+qKipyAiewXSxHsZN+3C5+mxxYzXIf0myaWuBDkVEaX9AeCY5nXup 5KDg== X-Gm-Message-State: ACrzQf1axCdmhKqssempuv9bezLDP3CTNe6YlUGEPWrcZPSyIhGDB/XF HVsax6siUpmpfgBQaCpoF70kEuqY5cU8Aw== X-Google-Smtp-Source: AMsMyM65i0cE5uBo1rNZjKgvbFRmpnKiaw4bSDo8HbXynycfHdqbwy0VRZEuuWIGzT419Q3AzYlDBA== X-Received: by 2002:a17:903:41c2:b0:187:3fb8:79bc with SMTP id u2-20020a17090341c200b001873fb879bcmr18958784ple.18.1667604375936; Fri, 04 Nov 2022 16:26:15 -0700 (PDT) Received: from atishp.ba.rivosinc.com ([66.220.2.162]) by smtp.gmail.com with ESMTPSA id k1-20020a170902760100b00186abb95bfdsm296198pll.25.2022.11.04.16.26.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 16:26:15 -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 , Ilias Apalodimas Subject: [v6 PATCH 1/3] loader: Move arm64 linux loader to common code Date: Fri, 4 Nov 2022 16:26:05 -0700 Message-Id: <20221104232607.1938285-2-atishp@rivosinc.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221104232607.1938285-1-atishp@rivosinc.com> References: <20221104232607.1938285-1-atishp@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=atishp@rivosinc.com; helo=mail-pl1-x634.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, 04 Nov 2022 23:26:19 -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