Re: [PATCH 16/17] arm: add useful headers from the linux kernel

Christoffer Dall
2014-02-02T02:29:02Z

On Tue, Jan 21, 2014 at 05:22:02PM +0100, Andrew Jones wrote:
> We're going to need PSR bit defines and pt_regs. We'll also need
> pt_regs offsets in assembly code. This patch adapts the linux
> kernel's ptrace.h and asm-offsets to this framework. Even though
> lib/arm/asm-offsets.h is a generated file, we still commit it,
> as it's unlikely to change. Also adapt cp15.h from the kernel,
> since we'll need bit defines from there too.
>
> Signed-off-by: Andrew Jones <drjones@redhat.com>
> ---

[...]

> +
> +asm-offsets: scripts/arm/asm-offsets.flat
> + $(QEMU) -device virtio-testdev -display none -serial stdio \
> + -M virt -cpu $(PROCESSOR) \
> + -kernel $^ > lib/arm/asm-offsets.h || true

I still disagree with this requirement to have the correct version of
qemu on the build machine.

[...]

-Christoffer