From: antohami@basealt.ru
To: devel-kernel@lists.altlinux.org
Subject: [d-kernel] [PATCH 1/2] /lib/devicetree/<name.dtb> -> /lib/devicetree/<vendor>/<name.dtb> for aarch64
Date: Mon, 18 Apr 2022 22:41:59 +0700
Message-ID: <70dc73a596322535b60570d741fa3271523da559.1650295032.git.antohami@altlinux.org> (raw)
In-Reply-To: <cover.1650295032.git.antohami@altlinux.org>
From: Anton Midyukov <antohami@altlinux.org>
These symbolic links are needed to support U-Boot, which in the path of DTB
is missing VENDOR. There is an need to copy dtb to FAT32 partition to
bootload in UEFI mode.
---
kernel-image.spec | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/kernel-image.spec b/kernel-image.spec
index 29a6ba0ec066..da2739fc46df 100644
--- a/kernel-image.spec
+++ b/kernel-image.spec
@@ -425,8 +425,10 @@ mv %buildroot%modules_dir/kernel/drivers/media/radio/tea575x.ko %buildroot%modul
%ifarch aarch64 %arm
make dtbs_install INSTALL_DTBS_PATH=%buildroot/lib/devicetree/$KernelVer
%ifarch aarch64
-find %buildroot/lib/devicetree/$KernelVer -mindepth 1 -type d |\
- while read d; do mv $d/* $d/../ && rmdir $d && ln -srv $d/../ $d; done
+pushd %buildroot/lib/devicetree/$KernelVer/
+find . -mindepth 2 -type f | \
+ while read f; do ln -srv "$f" "$(basename $f)"; done
+popd
%endif
%endif
--
2.33.0
next prev parent reply other threads:[~2022-04-18 15:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-18 15:41 [d-kernel] [PATCH 0/2] Replace devicetree antohami
2022-04-18 15:41 ` antohami [this message]
2022-04-18 15:42 ` [d-kernel] [PATCH 2/2] Replace devicetree from /lib to /boot antohami
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=70dc73a596322535b60570d741fa3271523da559.1650295032.git.antohami@altlinux.org \
--to=antohami@basealt.ru \
--cc=devel-kernel@lists.altlinux.org \
/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
ALT Linux kernel packages development
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
public-inbox-index devel-kernel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git