Re: [PATCH 2/2] Makefile: "make kernelrelease" should show the correctfull kernel version

From: Brice Goglin
Date: Wed Aug 18 2010 - 05:21:41 EST


Le 18/08/2010 11:20, Cong Wang a écrit :
> diff --git a/Makefile b/Makefile
> index f3bdff8..25da252 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1408,8 +1408,8 @@ checkstack:
> $(OBJDUMP) -d vmlinux $$(find . -name '*.ko') | \
> $(PERL) $(src)/scripts/checkstack.pl $(CHECKSTACK_ARCH)
>
> -kernelrelease: include/config/kernel.release
> - @echo $(KERNELRELEASE)
> +kernelrelease:
> + @echo "$(KERNELVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))"
>
> kernelversion:
> @echo $(KERNELVERSION)
>

It works, thanks!

Tested-by: Brice Goglin <Brice.Goglin@xxxxxxxx>

Brice

--
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/