Linux-KBuild Archive mirror
 help / color / mirror / Atom feed
From: Masahiro Yamada <masahiroy@kernel.org>
To: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
	 nathan@kernel.org, nicolas@fjasle.eu
Subject: Re: [PATCH V2] kbuild: rpm-pkg: add dtb files in kernel rpm
Date: Tue, 19 Mar 2024 02:33:19 +0900	[thread overview]
Message-ID: <CAK7LNARRBkwo1DqpgYd1HkYxg9aFDYv9e_Z8WmBjVidAJ7SuiQ@mail.gmail.com> (raw)
In-Reply-To: <20240311162238.1761147-1-jtornosm@redhat.com>

On Tue, Mar 12, 2024 at 1:22 AM Jose Ignacio Tornos Martinez
<jtornosm@redhat.com> wrote:
>
> Some architectures, like aarch64 ones, need a dtb file to configure the
> hardware. The default dtb file can be preloaded from u-boot, but the final
> and/or more complete dtb file needs to be able to be loaded later from
> rootfs.
>
> Add the possible dtb files to the kernel rpm and mimic Fedora shipping
> process, storing the dtb files in the module directory. These dtb files
> will be copied to /boot directory by the install scripts, but add fallback
> just in case, checking if the content in /boot directory is correct.
>
> Mark the files installed to /boot as %ghost to make sure they will be
> removed when the package is uninstalled.
>
> Tested with Fedora Rawhide (x86_64 and aarch64) with dnf and rpm tools.
> In addition, fallback was also tested after modifying the install scripts.
>
> Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
> ---
> V1 -> V2:
> - Follow the suggestions from Masahiro Yamada to improve the checks and
> avoid the loop to ghost the dtb files in /boot folder.


Applied to linux-kbuild.
Thanks.






-- 
Best Regards
Masahiro Yamada

      parent reply	other threads:[~2024-03-18 17:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-05 11:09 [PATCH] kbuild: rpm-pkg: add dtb files in kernel rpm Jose Ignacio Tornos Martinez
2024-03-09 14:24 ` Masahiro Yamada
2024-03-11 16:18   ` Jose Ignacio Tornos Martinez
2024-03-11 16:22   ` [PATCH V2] " Jose Ignacio Tornos Martinez
2024-03-15 19:00     ` Nathan Chancellor
2024-03-18 17:33     ` Masahiro Yamada [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAK7LNARRBkwo1DqpgYd1HkYxg9aFDYv9e_Z8WmBjVidAJ7SuiQ@mail.gmail.com \
    --to=masahiroy@kernel.org \
    --cc=jtornosm@redhat.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nathan@kernel.org \
    --cc=nicolas@fjasle.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).