[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230420010029.2702543-1-elsk@google.com>
Date: Thu, 20 Apr 2023 01:00:19 +0000
From: Yifan Hong <elsk@...gle.com>
To: Masahiro Yamada <masahiroy@...nel.org>,
Nicolas Schier <nicolas@...sle.eu>,
"Thomas Weißschuh" <linux@...ssschuh.net>,
Matthias Maennich <maennich@...gle.com>,
Daniel Mentz <danielmentz@...gle.com>,
Yifan Hong <elsk@...gle.com>
Cc: kernel-team@...roid.com, linux-kernel@...r.kernel.org
Subject: [PATCH v2] kheaders: Follow symlinks to source files.
When the kernel is built inside a sandbox container,
a forest of symlinks to the source files may be
created in the container. In this case, the generated
kheaders.tar.xz should follow these symlinks
to access the source files, instead of packing
the symlinks themselves.
Signed-off-by: Yifan Hong <elsk@...gle.com>
Reviewed-by: Matthias Maennich <maennich@...gle.com>
---
kernel/gen_kheaders.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/gen_kheaders.sh b/kernel/gen_kheaders.sh
index 1ef9a87511f5..70a75a9a7535 100755
--- a/kernel/gen_kheaders.sh
+++ b/kernel/gen_kheaders.sh
@@ -87,7 +87,7 @@ find $cpio_dir -type f -print0 |
# pre-sorted, as --sort=name might not be available.
find $cpio_dir -printf "./%P\n" | LC_ALL=C sort | \
tar "${KBUILD_BUILD_TIMESTAMP:+--mtime=$KBUILD_BUILD_TIMESTAMP}" \
- --owner=0 --group=0 --numeric-owner --no-recursion \
+ --owner=0 --group=0 --numeric-owner --no-recursion --dereference \
-I $XZ -cf $tarfile -C $cpio_dir/ -T - > /dev/null
echo $headers_md5 > kernel/kheaders.md5
--
2.40.0.634.g4ca3ef3211-goog
Powered by blists - more mailing lists