setup-defconfig: allow using KERNEL_LOCALVERSION
PATCH 1/1 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 <[email protected]>
--- recipes-kernel/linux/setup-defconfig.inc | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
recipes-kernel/linux/setup-defconfig.inc +6 -0
@@ -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
Signature · 1 line
1.7.0.4
PATCH 1/1 u-boot-ti-staging: Add SRCPV to the PR
* Add the SRCPV to the PR to make it clear which revision of the sources are being built and to match the kernel versioning.
Signed-off-by Chase Maupin <[email protected]>
--- recipes-bsp/u-boot/u-boot-ti-staging_2013.01.01.bb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
recipes-bsp/u-boot/u-boot-ti-staging_2013.01.01.bb +1 -1
@@ -2,7 +2,7 @@ require u-boot-ti.inc DESCRIPTION = "u-boot bootloader for TI devices" -PR = "r2" +PR = "r3+gitr${SRCPV}" SRC_URI = "git://git.ti.com/ti-u-boot/ti-u-boot.git;protocol=git;branch=${BRANCH}"
Signature · 1 line
1.7.0.4