* [PATCH] scripts/package: buildtar: Output as vmlinuz for riscv
@ 2024-03-21 11:58 Matt Coster
2024-03-21 15:43 ` Nathan Chancellor
2024-03-26 15:41 ` Masahiro Yamada
0 siblings, 2 replies; 5+ messages in thread
From: Matt Coster @ 2024-03-21 11:58 UTC (permalink / raw)
To: linux-kbuild@vger.kernel.org
Cc: Karolis Mituzas, Masahiro Yamada, Nathan Chancellor,
Nicolas Schier, Paul Walmsley, Palmer Dabbelt, Albert Ou,
Carlos de Paula, linux-riscv@lists.infradead.org
[-- Attachment #1.1.1: Type: text/plain, Size: 1025 bytes --]
From: Karolis Mituzas <karolis.mituzas@imgtec.com>
This matches the behavior for arm64 [1] and prevents clobbering of
vmlinux-${KERNELRELEASE}.
[1]: commit 0df57d90bfd6 ("kbuild: buildtar: add arm64 support")
Fixes: 7d0bc44bd0ea ("kbuild: buildtar: add riscv support")
Signed-off-by: Karolis Mituzas <karolis.mituzas@imgtec.com>
Signed-off-by: Matt Coster <matt.coster@imgtec.com>
---
scripts/package/buildtar | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/package/buildtar b/scripts/package/buildtar
index 72c91a1b832f..a36aca2a27cc 100755
--- a/scripts/package/buildtar
+++ b/scripts/package/buildtar
@@ -96,7 +96,7 @@ case "${ARCH}" in
riscv)
for i in Image.bz2 Image.gz Image; do
if [ -f "${objtree}/arch/riscv/boot/${i}" ] ; then
- cp -v -- "${objtree}/arch/riscv/boot/${i}" "${tmpdir}/boot/vmlinux-${KERNELRELEASE}"
+ cp -v -- "${objtree}/arch/riscv/boot/${i}" "${tmpdir}/boot/vmlinuz-${KERNELRELEASE}"
break
fi
done
--
2.44.0
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
[-- Attachment #2: Type: text/plain, Size: 161 bytes --]
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] scripts/package: buildtar: Output as vmlinuz for riscv
2024-03-21 11:58 [PATCH] scripts/package: buildtar: Output as vmlinuz for riscv Matt Coster
@ 2024-03-21 15:43 ` Nathan Chancellor
2024-03-22 17:13 ` Matt Coster
2024-03-26 15:41 ` Masahiro Yamada
1 sibling, 1 reply; 5+ messages in thread
From: Nathan Chancellor @ 2024-03-21 15:43 UTC (permalink / raw)
To: Matt Coster
Cc: linux-kbuild@vger.kernel.org, Karolis Mituzas, Masahiro Yamada,
Nicolas Schier, Paul Walmsley, Palmer Dabbelt, Albert Ou,
Carlos de Paula, linux-riscv@lists.infradead.org
On Thu, Mar 21, 2024 at 11:58:51AM +0000, Matt Coster wrote:
> From: Karolis Mituzas <karolis.mituzas@imgtec.com>
>
> This matches the behavior for arm64 [1] and prevents clobbering of
> vmlinux-${KERNELRELEASE}.
>
> [1]: commit 0df57d90bfd6 ("kbuild: buildtar: add arm64 support")
>
> Fixes: 7d0bc44bd0ea ("kbuild: buildtar: add riscv support")
> Signed-off-by: Karolis Mituzas <karolis.mituzas@imgtec.com>
> Signed-off-by: Matt Coster <matt.coster@imgtec.com>
> ---
> scripts/package/buildtar | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/package/buildtar b/scripts/package/buildtar
> index 72c91a1b832f..a36aca2a27cc 100755
> --- a/scripts/package/buildtar
> +++ b/scripts/package/buildtar
> @@ -96,7 +96,7 @@ case "${ARCH}" in
> riscv)
> for i in Image.bz2 Image.gz Image; do
This patch seems fine but it does introduce a slight inconsistency with
the rest of this script, as vmlinuz implies a compressed boot image but
Image is not compressed. Probably does not really matter but I feel like
it is worth mentioning.
> if [ -f "${objtree}/arch/riscv/boot/${i}" ] ; then
> - cp -v -- "${objtree}/arch/riscv/boot/${i}" "${tmpdir}/boot/vmlinux-${KERNELRELEASE}"
> + cp -v -- "${objtree}/arch/riscv/boot/${i}" "${tmpdir}/boot/vmlinuz-${KERNELRELEASE}"
> break
> fi
> done
> --
> 2.44.0
>
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] scripts/package: buildtar: Output as vmlinuz for riscv
2024-03-21 15:43 ` Nathan Chancellor
@ 2024-03-22 17:13 ` Matt Coster
0 siblings, 0 replies; 5+ messages in thread
From: Matt Coster @ 2024-03-22 17:13 UTC (permalink / raw)
To: Nathan Chancellor
Cc: Karolis Mituzas, Masahiro Yamada, Nicolas Schier, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Carlos de Paula,
linux-kbuild@vger.kernel.org, linux-riscv@lists.infradead.org
[-- Attachment #1.1.1: Type: text/plain, Size: 1714 bytes --]
On 21/03/2024 15:43, Nathan Chancellor wrote:
> On Thu, Mar 21, 2024 at 11:58:51AM +0000, Matt Coster wrote:
>> From: Karolis Mituzas <karolis.mituzas@imgtec.com>
>>
>> This matches the behavior for arm64 [1] and prevents clobbering of
>> vmlinux-${KERNELRELEASE}.
>>
>> [1]: commit 0df57d90bfd6 ("kbuild: buildtar: add arm64 support")
>>
>> Fixes: 7d0bc44bd0ea ("kbuild: buildtar: add riscv support")
>> Signed-off-by: Karolis Mituzas <karolis.mituzas@imgtec.com>
>> Signed-off-by: Matt Coster <matt.coster@imgtec.com>
>> ---
>> scripts/package/buildtar | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/scripts/package/buildtar b/scripts/package/buildtar
>> index 72c91a1b832f..a36aca2a27cc 100755
>> --- a/scripts/package/buildtar
>> +++ b/scripts/package/buildtar
>> @@ -96,7 +96,7 @@ case "${ARCH}" in
>> riscv)
>> for i in Image.bz2 Image.gz Image; do
>
> This patch seems fine but it does introduce a slight inconsistency with
> the rest of this script, as vmlinuz implies a compressed boot image but
> Image is not compressed. Probably does not really matter but I feel like
> it is worth mentioning.
I agree this doesn't seem like the perfect solution, but I'm not sure
what that would look like. We could easily pull the Image case out of
the loop and use vmlinux there, but then the original vmlinux would
still be clobbered.
>> if [ -f "${objtree}/arch/riscv/boot/${i}" ] ; then
>> - cp -v -- "${objtree}/arch/riscv/boot/${i}" "${tmpdir}/boot/vmlinux-${KERNELRELEASE}"
>> + cp -v -- "${objtree}/arch/riscv/boot/${i}" "${tmpdir}/boot/vmlinuz-${KERNELRELEASE}"
>> break
>> fi
>> done
>> --
>> 2.44.0
>>
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
[-- Attachment #2: Type: text/plain, Size: 161 bytes --]
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] scripts/package: buildtar: Output as vmlinuz for riscv
2024-03-21 11:58 [PATCH] scripts/package: buildtar: Output as vmlinuz for riscv Matt Coster
2024-03-21 15:43 ` Nathan Chancellor
@ 2024-03-26 15:41 ` Masahiro Yamada
2024-03-26 16:13 ` Matt Coster
1 sibling, 1 reply; 5+ messages in thread
From: Masahiro Yamada @ 2024-03-26 15:41 UTC (permalink / raw)
To: Matt Coster
Cc: linux-kbuild@vger.kernel.org, Karolis Mituzas, Nathan Chancellor,
Nicolas Schier, Paul Walmsley, Palmer Dabbelt, Albert Ou,
Carlos de Paula, linux-riscv@lists.infradead.org
On Thu, Mar 21, 2024 at 8:59 PM Matt Coster <Matt.Coster@imgtec.com> wrote:
>
> From: Karolis Mituzas <karolis.mituzas@imgtec.com>
>
> This matches the behavior for arm64 [1] and prevents clobbering of
> vmlinux-${KERNELRELEASE}.
What problem are you trying to solve?
Why is clobbering vmlinux-${KERNELRELEASE} a problem?
--
Best Regards
Masahiro Yamada
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] scripts/package: buildtar: Output as vmlinuz for riscv
2024-03-26 15:41 ` Masahiro Yamada
@ 2024-03-26 16:13 ` Matt Coster
0 siblings, 0 replies; 5+ messages in thread
From: Matt Coster @ 2024-03-26 16:13 UTC (permalink / raw)
To: Masahiro Yamada
Cc: Karolis Mituzas, Nathan Chancellor, Nicolas Schier, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Carlos de Paula,
linux-kbuild@vger.kernel.org, linux-riscv@lists.infradead.org
[-- Attachment #1.1.1: Type: text/plain, Size: 655 bytes --]
On 26/03/2024 15:41, Masahiro Yamada wrote:
> On Thu, Mar 21, 2024 at 8:59 PM Matt Coster <Matt.Coster@imgtec.com> wrote:
>>
>> From: Karolis Mituzas <karolis.mituzas@imgtec.com>
>>
>> This matches the behavior for arm64 [1] and prevents clobbering of
>> vmlinux-${KERNELRELEASE}.
>
> What problem are you trying to solve?
>
> Why is clobbering vmlinux-${KERNELRELEASE} a problem?
>
This patch makes riscv tar*-pkg builds consistent with other
architectures. Clobbering vmlinux-${KERNELRELEASE} means there's no ELF
binary produced by tar*-pkg builds; sometimes you just need an ELF
binary, e.g. to run faddr2line.
Cheers,
Matt
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
[-- Attachment #2: Type: text/plain, Size: 161 bytes --]
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-03-26 16:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-21 11:58 [PATCH] scripts/package: buildtar: Output as vmlinuz for riscv Matt Coster
2024-03-21 15:43 ` Nathan Chancellor
2024-03-22 17:13 ` Matt Coster
2024-03-26 15:41 ` Masahiro Yamada
2024-03-26 16:13 ` Matt Coster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox