Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lmcBB-0007eg-Fs for mharc-grub-devel@gnu.org; Fri, 28 May 2021 09:05:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmcB9-0007eW-IG for grub-devel@gnu.org; Fri, 28 May 2021 09:05:31 -0400 Received: from mail-lf1-f48.google.com ([209.85.167.48]:43989) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lmcB7-00024i-8Q for grub-devel@gnu.org; Fri, 28 May 2021 09:05:30 -0400 Received: by mail-lf1-f48.google.com with SMTP id x38so5185134lfa.10 for ; Fri, 28 May 2021 06:05:25 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=H2XpwL5laQz4mV/YLcS/68OdkPDGI/HZyYbRm2vVU+4=; b=g2utjA033f8+fOTMHL2NJBLdMLggyQKfw9cfYqIe6yRbrLNlvetf6qdS8WB43+WQnp Uic93dQKy6S6FoKBE7IF4aFWOfSIf1IjCIllRKMir/70yL579O4fJkUH7Sa1No9tGfYV 7Y605tmYqdJ25qhjYrqpKKVDwNufdVsk00JejfjbZOkYoRvi1hscnKVyOhlk6oJDnXJw Kz4cikGUL7x36bquJysSmQh8wpVyyuwl5rUtJv/BtwPBaQIjJ7B8nn8qXSdG4cjEIHl2 EGXpioq1SHdg5lw5AqZiYTCrKRVrYwco6oW8kV0grWPVjcNgdKCdb/VHN516l6agDb2R cc7A== X-Gm-Message-State: AOAM530x4LKQfExMplb02UGZZRzsyYguk83cvNIZpR9oX3acWW/qhvOO 2OofOfV/VFLKJj5EraW2I15El5ibbV94dsEpwDZyew== X-Google-Smtp-Source: ABdhPJzvPGiAXwSUFDuDARalpVsQ8JdpMlJpbf0+88FEw+Dkvz7wOFQarwiZ7uVOttK755D9e0KHTg== X-Received: by 2002:ac2:4550:: with SMTP id j16mr5777630lfm.15.1622207123271; Fri, 28 May 2021 06:05:23 -0700 (PDT) Received: from localhost.localdomain (109-252-124-217.nat.spd-mgts.ru. [109.252.124.217]) by smtp.gmail.com with ESMTPSA id m25sm468129lfr.288.2021.05.28.06.05.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 May 2021 06:05:22 -0700 (PDT) From: Nikita Ermakov To: GRUB development mailing list Cc: Ard Biesheuvel , Atish Patra , Daniel Kiper , Heinrich Schuchardt , Leif Lindholm , Nikita Ermakov Subject: [PATCH 0/8] Add LoadFile2 and riscv Linux loader Date: Fri, 28 May 2021 16:04:49 +0300 Message-Id: <20210528130457.13501-1-arei@altlinux.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=209.85.167.48; envelope-from=coffe92@gmail.com; helo=mail-lf1-f48.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 May 2021 13:05:31 -0000 Hi, This series contains patches to add support for LoadFile2 protocol to load initrd on EFI systems. Also it contains patches to load Linux kernel with EFI stub on riscv platforms and unites arm and riscv codes together into common loader code for EFI systems. Ard Biesheuvel (4): loader/linux: permit NULL argument for argv[] in grub_initrd_load() efi: add definition of LoadFile2 protocol efi: implemented LoadFile2 initrd loading protocol for Linux linux: ignore FDT unless we need to modify it Atish Patra (3): loader: Move arm64 linux loader to common code RISC-V: Update image header RISC-V: Use common linux loader Nikita Ermakov (1): linux: Make load_file2_guid and device_path_guid static grub-core/Makefile.core.def | 8 +- grub-core/commands/efi/lsefi.c | 1 + grub-core/loader/efi/fdt.c | 7 +- grub-core/loader/{arm64 => efi}/linux.c | 141 +++++++++++++++++++++--- grub-core/loader/linux.c | 2 +- grub-core/loader/riscv/linux.c | 59 ---------- include/grub/arm/linux.h | 2 +- include/grub/arm64/linux.h | 2 +- include/grub/efi/api.h | 15 +++ include/grub/riscv32/linux.h | 16 +-- include/grub/riscv64/linux.h | 16 +-- 11 files changed, 174 insertions(+), 95 deletions(-) rename grub-core/loader/{arm64 => efi}/linux.c (72%) delete mode 100644 grub-core/loader/riscv/linux.c -- 2.31.1