[U-Boot] [PATCH v2] tools/setlocalversion: Update from the Linux Kernel

Mike Frysinger vapier at gentoo.org
Fri Dec 16 17:07:53 CET 2011


On Thursday 15 December 2011 21:13:55 Kyle Moffett wrote:
> The version from the kernel is not directly usable as it has code for
> supporting CONFIG_LOCALVERSION from Kconfig, but the version that was
> imported is very similar to the one in Linux v3.2-rc4.

NAK: this breaks localversion-* support

ignoring that, i'm not sure you really need to delete the CONFIG_xxx handling.  
under u-boot, they'd expand to like "" which would end at the same code.  by 
keeping as much code as possible in common, it should make future updates 
easier.

the only place i see where you need to deviate from the kernel code is:
if test -e include/config/auto.conf; then
	. include/config/auto.conf
else
	echo "Error: kernelrelease not valid - run 'make prepare' to update it"
	exit 1
fi

so that part i would write as:
# Disabled for u-boot
#if test -e include/config/auto.conf; then
#	. include/config/auto.conf
#else
#	echo "Error: kernelrelease not valid - run 'make prepare' to update it"
#	exit 1
#fi
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20111216/4acb32a1/attachment.pgp>


More information about the U-Boot mailing list