Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 988af76

Browse files
author
Yifan Hong
committed
FROMLIST: 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. Bug: 276339429 Link: https://lore.kernel.org/lkml/[email protected]/ Signed-off-by: Yifan Hong <[email protected]> Reviewed-by: Matthias Maennich <[email protected]> Change-Id: Ie1e398ddd342ff2a42418286823f069b03dea254
1 parent 2a4fc73 commit 988af76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/gen_kheaders.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ find $cpio_dir -type f -print0 |
8787
# pre-sorted, as --sort=name might not be available.
8888
find $cpio_dir -printf "./%P\n" | LC_ALL=C sort | \
8989
tar "${KBUILD_BUILD_TIMESTAMP:+--mtime=$KBUILD_BUILD_TIMESTAMP}" \
90-
--owner=0 --group=0 --numeric-owner --no-recursion \
90+
--owner=0 --group=0 --numeric-owner --no-recursion --dereference \
9191
-I $XZ -cf $tarfile -C $cpio_dir/ -T - > /dev/null
9292

9393
echo $headers_md5 > kernel/kheaders.md5

0 commit comments

Comments
 (0)