[arch-commits] Commit in kernel26/trunk (PKGBUILD)

Thomas Bächler thomas at archlinux.org
Wed Dec 3 19:06:37 UTC 2008


    Date: Wednesday, December 3, 2008 @ 14:06:37
  Author: thomas
Revision: 20437

Make PKGBUILD smaller, use Kbuild to get the version string

Modified:
  kernel26/trunk/PKGBUILD

----------+
 PKGBUILD |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-12-03 16:46:35 UTC (rev 20436)
+++ PKGBUILD	2008-12-03 19:06:37 UTC (rev 20437)
@@ -47,11 +47,9 @@
   else
     cat ../config >./.config
   fi
-  # build the full kernel version to use in pathnames
-  . ./.config
-  ### next line is only needed for rc kernels
-  #_kernver="2.6.25${CONFIG_LOCALVERSION}"
-  _kernver="${_basekernel}${CONFIG_LOCALVERSION}"
+  # get kernel version  
+  make prepare
+  _kernver="$(make kernelrelease)"
   # load configuration
   yes "" | make config
   # build!




More information about the arch-commits mailing list