dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/scripts
Rene Scharfe 117a93db1d kbuild: Use git in scripts/setlocalversion
Currently scripts/setlocalversion is a Perl script that tries to figure
out the current git commit ID of a repo without using git.  It also
imports Digest::MD5 without using it and generally is too big for the
small task it does. :]  And it always reports a git ID, even when the
HEAD is tagged -- this is a bug.

This patch replaces it with a Bourne Shell script that uses git
commands to do the same.  I can't come up with a scenario where someone
would use a git repo and refuse to install git core at the same time,
so I think it's reasonable to assume git is available.

The new script also reports uncommitted changes by adding -git_dirty to
the version string.  Obviously you can't see from that _what_ has been
changed from the last commit, so it's more of a reminder that you
forgot to commit something.

The script is easily extensible: simply add a check for Mercurial (or
whatever) below the git check.

Note: the script doesn't print a newline char anymore.  That's only
because it was easier to implement it that way, not a feature (or bug).
'make kernelrelease' doesn't care.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Acked-by: Ryan Anderson <ryan@michonline.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2006-01-06 20:46:21 +01:00
..
basic kbuild: escape '#' in .target.cmd files 2005-12-25 23:21:14 +01:00
genksyms gitignore: misc files 2006-01-01 22:21:50 +01:00
kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild 2006-01-04 16:36:52 -08:00
ksymoops Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mod Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6 2006-01-04 18:44:12 -08:00
package kbuild: tar-pkg with out-out-tree building 2006-01-01 19:31:30 +01:00
.gitignore gitignore: ignore more generated files 2006-01-03 11:35:26 +01:00
Kbuild.include kbuild: add objectify 2005-09-10 21:02:11 +02:00
Lindent [PATCH] Lindent: ignore .indent.pro 2005-07-13 23:09:16 +00:00
Makefile kconfig: move lxdialog to scripts/kconfig/lxdialog 2005-12-16 21:35:19 +01:00
Makefile.build kbuild: fix building external modules 2005-07-27 22:11:01 +02:00
Makefile.clean kbuild: fix building external modules 2005-07-27 22:11:01 +02:00
Makefile.host [PATCH] kbuild: obey HOSTLOADLIBES_programname for single-file compilation 2005-07-13 22:11:14 +00:00
Makefile.lib kbuild: set correct KBUILD_MODNAME when using well known kernel symbols as module names 2005-12-26 00:33:41 +01:00
Makefile.modinst kbuild: introduce Kbuild.include 2005-07-25 20:10:36 +00:00
Makefile.modpost kbuild: introduce Kbuild.include 2005-07-25 20:10:36 +00:00
bin2c.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
binoffset.c update the email address of Randy Dunlap 2006-01-03 13:37:51 +01:00
checkconfig.pl Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
checkincludes.pl Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
checkstack.pl Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
checkversion.pl update the email address of Randy Dunlap 2006-01-03 13:37:51 +01:00
conmakehash.c [PATCH] kbuild: signed char fixes for scripts 2005-07-27 22:27:08 +02:00
extract-ikconfig Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gcc-version.sh Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gen_initramfs_list.sh Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
kallsyms.c [PATCH] Strip local symbols from kallsyms 2005-09-07 16:57:20 -07:00
kernel-doc [PATCH] DocBook: allow to mark structure members private 2005-11-13 18:14:21 -08:00
makelst Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mkcompile_h kbuild: "PREEMPT" in UTS_VERSION 2005-07-14 20:18:07 +00:00
mkmakefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mksysmap Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mkuboot.sh Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mkversion Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
namespace.pl Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
patch-kernel update the email address of Randy Dunlap 2006-01-03 13:37:51 +01:00
pnmtologo.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
reference_discarded.pl [PATCH] kbuild: ignore all debugging info sections in scripts/reference_discarded.pl 2005-09-10 15:09:02 +02:00
reference_init.pl buildcheck: reduce DEBUG_INFO noise from reference* scripts 2005-07-14 20:14:42 +00:00
setlocalversion kbuild: Use git in scripts/setlocalversion 2006-01-06 20:46:21 +01:00
show_delta Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ver_linux [PATCH] Adapt scripts/ver_linux to new util-linux version strings 2005-09-07 16:57:33 -07:00