carlosmscabral | f40ecd1 | 2013-02-01 18:15:58 -0200 | [diff] [blame^] | 1 | --- /usr/share/kernel-package/ruleset/misc/version_vars.mk 2010-03-25 18:14:41.000000000 -0700 |
| 2 | +++ version_vars.mk 2010-03-03 06:46:59.000000000 -0800 |
| 3 | @@ -138,11 +138,13 @@ |
| 4 | EXTRAV_ARG := |
| 5 | endif |
| 6 | |
| 7 | -UTS_RELEASE_HEADER=$(call doit,if [ -f include/linux/utsrelease.h ]; then \ |
| 8 | +UTS_RELEASE_HEADER=$(call doit, if [ -f include/generated/utsrelease.h ]; then \ |
| 9 | + echo include/generated/utsrelease.h; \ |
| 10 | + else if [ -f include/linux/utsrelease.h ]; then \ |
| 11 | echo include/linux/utsrelease.h; \ |
| 12 | else \ |
| 13 | echo include/linux/version.h ; \ |
| 14 | - fi) |
| 15 | + fi fi) |
| 16 | UTS_RELEASE_VERSION=$(call doit,if [ -f $(UTS_RELEASE_HEADER) ]; then \ |
| 17 | grep 'define UTS_RELEASE' $(UTS_RELEASE_HEADER) | \ |
| 18 | perl -nle 'm/^\s*\#define\s+UTS_RELEASE\s+("?)(\S+)\1/g && print $$2;';\ |