Re: Issue with upgrade path from include/linux/version.h to uapi

From: David Howells
Date: Fri Apr 19 2013 - 14:06:01 EST


Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx> wrote:

> This leads to very unfortunate consequences for any user relying on
> version.h to expose the kernel version accurately, since the old "stale"
> kernel version will be seen by the build.
>
> Sadly, make clean does not even take care of removing this stale file.

I wonder if a simple approach would work - just add:

$(shell rm include/linux/version.h)

to an appropriate header, perhaps the top-level Makefile.

Failing that, it might be worth adding it to the make-clean list.

David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/