Re: [PATCH 6/6] kbuild: use git-archive for source package creation

From: Masahiro Yamada
Date: Fri Apr 07 2023 - 08:05:05 EST


On Fri, Apr 7, 2023 at 12:25 AM youling257 <youling257@xxxxxxxxx> wrote:
>
> This patch cause build time a bit longer.
> I use "time make targz-pkg -i -j8" build kernel, this patch will first create *.tar file, then create *.tar.gz file, build time a bit longer.
> './System.map' -> 'tar-install/boot/System.map-6.3.0-rc5-android-x86_64+'
> '.config' -> 'tar-install/boot/config-6.3.0-rc5-android-x86_64+'
> './vmlinux' -> 'tar-install/boot/vmlinux-6.3.0-rc5-android-x86_64+'
> './arch/x86/boot/bzImage' -> 'tar-install/boot/vmlinuz-6.3.0-rc5-android-x86_64+'
> TAR linux-6.3.0-rc5-android-x86_64+-x86.tar
> GZIP linux-6.3.0-rc5-android-x86_64+-x86.tar.gz
>
> real 0m37.991s
> user 0m47.529s
> sys 0m8.235s
>
> Revert "kbuild: use git-archive for source package creation"
> './System.map' -> 'tar-install/boot/System.map-6.3.0-rc5-android-x86_64+'
> '.config' -> 'tar-install/boot/config-6.3.0-rc5-android-x86_64+'
> './vmlinux' -> 'tar-install/boot/vmlinux-6.3.0-rc5-android-x86_64+'
> './arch/x86/boot/bzImage' -> 'tar-install/boot/vmlinuz-6.3.0-rc5-android-x86_64+'
> TAR linux-6.3.0-rc5-android-x86_64+-x86.tar.gz
>
> real 0m11.006s
> user 0m21.079s
> sys 0m7.830s
>
> I don't like *.tar file, i will delete *.tar file when every time build kernel, i need *.tar.gz file, if one file is i needn't, i will delete it.
> linux-6.3.0-rc5-android-x86_64+-x86.tar.gz file is i need, linux-6.3.0-rc5-android-x86_64+-x86.tar is i needn't.


OK.

On second thought, splitting tar and compression was unneeded.

I submitted a patch set to avoid unneeded *.tar creation.


https://lore.kernel.org/lkml/20230407101629.1298051-1-masahiroy@xxxxxxxxxx/T/#t





--
Best Regards
Masahiro Yamada