* [PATCH] kheaders: Follow symlinks to source files.
@ 2023-04-19 0:29 Yifan Hong
2023-04-19 8:10 ` Matthias Maennich
0 siblings, 1 reply; 2+ messages in thread
From: Yifan Hong @ 2023-04-19 0:29 UTC (permalink / raw)
To: Masahiro Yamada, Thomas Weißschuh, Nicolas Schier,
Daniel Mentz
Cc: Yifan Hong, kernel-team, linux-kernel
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@google.com>
---
| 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--git a/kernel/gen_kheaders.sh b/kernel/gen_kheaders.sh
index 1ef9a87511f5..183d9a44aa39 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 -h \
-I $XZ -cf $tarfile -C $cpio_dir/ -T - > /dev/null
echo $headers_md5 > kernel/kheaders.md5
--
2.40.0.634.g4ca3ef3211-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kheaders: Follow symlinks to source files.
2023-04-19 0:29 [PATCH] kheaders: Follow symlinks to source files Yifan Hong
@ 2023-04-19 8:10 ` Matthias Maennich
0 siblings, 0 replies; 2+ messages in thread
From: Matthias Maennich @ 2023-04-19 8:10 UTC (permalink / raw)
To: Yifan Hong
Cc: Masahiro Yamada, Thomas Weißschuh, Nicolas Schier,
Daniel Mentz, kernel-team, linux-kernel
On Wed, Apr 19, 2023 at 12:29:36AM +0000, Android Kernel Team wrote:
>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@google.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..183d9a44aa39 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 -h \
I would have a preference for the long form --dereference as it is more
descriptive.
With that, feel free to add
Reviewed-by: Matthias Maennich <maennich@google.com>
Cheers,
Matthias
> -I $XZ -cf $tarfile -C $cpio_dir/ -T - > /dev/null
>
> echo $headers_md5 > kernel/kheaders.md5
>--
>2.40.0.634.g4ca3ef3211-goog
>
>--
>To unsubscribe from this group and stop receiving emails from it, send an email to kernel-team+unsubscribe@android.com.
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-19 8:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-19 0:29 [PATCH] kheaders: Follow symlinks to source files Yifan Hong
2023-04-19 8:10 ` Matthias Maennich
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 NNTP newsgroup(s).