Re: [PATCH 1/2] tools: arm64: Add a copy of sysreg-defs.h generated from the kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 05, 2023 at 06:03:23PM +0000, Oliver Upton wrote:

> Wiring up the build infrastructure necessary to generate the sysreg
> definitions for dependent targets (e.g. perf, KVM selftests) is a bit of
> an undertaking with near zero benefit. Just take what the kernel
> generated instead.
> 
> Cc: Mark Brown <broonie@xxxxxxxxxx>
> Signed-off-by: Oliver Upton <oliver.upton@xxxxxxxxx>
> ---
>  tools/arch/arm64/include/asm/sysreg-defs.h | 6806 ++++++++++++++++++++
>  1 file changed, 6806 insertions(+)
>  create mode 100644 tools/arch/arm64/include/asm/sysreg-defs.h

If we're going to go with this approach we should probably script the
syncing of the generated file and ideally have something that detects if
there is a generated copy in the main kernel build with differences to
what's here.  There are regular syncs which I'm guessing are automated
somehow, and I see that perf has some tooling to notice differences in
the checked in files alraedy.

That said I'm not 100% clear why this isn't being added to "make
headers" and/or the perf build stuff?  Surely if perf is happy to peer
into the main kernel source it could just as well do the generation as
part of the build?  There's no great obstacle to having a target which
runs the generation script that I can see.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux