1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-04-20 19:53:43 +00:00

setup-defconfig: allow using KERNEL_LOCALVERSION

* Add capability to use KERNEL_LOCALVERSION to set an extra
  version string in the kernel.  This mimics functionality
  submitted to the kernel.bbclass but since this overwrites
  the do_configure it must be added here as well.

Signed-off-by: Chase Maupin <Chase.Maupin@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
This commit is contained in:
Chase Maupin
2013-04-10 16:51:43 -05:00
committed by Denys Dmytriyenko
parent 59ce44ac51
commit 38e3173249

View File

@@ -1,3 +1,7 @@
# KERNEL_LOCALVERSION can be set to add a tag to the end of the
# kernel version string. such as the commit id
KERNEL_LOCALVERSION ?= ""
# Check the defconfig file and see if it points to an in kernel
# defconfig that should be used, or if it is a complete config file
@@ -16,6 +20,8 @@ do_setup_defconfig() {
# 3. else run yes '' | oe_runmake oldconfig like the default do_configure
# does
do_configure() {
echo ${KERNEL_LOCALVERSION} > ${B}/.scmversion
echo ${KERNEL_LOCALVERSION} > ${S}/.scmversion
config=`cat ${S}/.config | grep use-kernel-config | cut -d= -f2`
if [ "x${config}" != "x" ]
then