All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] update-linux-headers.sh fails on clean kernel dir
@ 2017-01-24  4:39 Sam Bobroff
  2017-01-24 10:32 ` Marc-André Lureau
  0 siblings, 1 reply; 3+ messages in thread
From: Sam Bobroff @ 2017-01-24  4:39 UTC (permalink / raw)
  To: qemu-devel

Hi QEMU developers,

If I run scripts/update-linux-headers.sh from a clean checkout of QEMU
and point it at a clean checkout of a recent linux kernel (4.10-rc1 or
later), it fails:

$ scripts/update-linux-headers.sh ~/tmp/linux/

...

scripts/Makefile.headersinst:62: *** Missing generated UAPI file ./arch/arm/include/generated/uapi/asm/unistd-common.h.  Stop.

This seems to be because the script passes the arch to the kernel
makefile using "SRCARCH" rather than "ARCH".

(SRCARCH seems to be intended as an internal value, and setting it does
not propagate the setting to ARCH. Because ARCH is left empty, the
prerequisites that should generate unistd-common.h fail. If ARCH is set,
SRCARCH is set automatically and everything works.)

Changing the script to use "ARCH" seems to fixe the problem.

(Note: when testing this be careful: unistd-common.h is not removed by
"make clean" in the kernel directory.)

Does this seem correct?

Should I send a patch even though it's a very small change?

Cheers,
Sam.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-25  0:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-24  4:39 [Qemu-devel] update-linux-headers.sh fails on clean kernel dir Sam Bobroff
2017-01-24 10:32 ` Marc-André Lureau
2017-01-25  0:25   ` Sam Bobroff

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.