]> code.ossystems Code Review - meta-freescale.git/commitdiff
linux-qoriq-sdk: append SDK version to kernel version
authorZhenhua Luo <zhenhua.luo@freescale.com>
Tue, 21 May 2013 06:21:07 +0000 (06:21 +0000)
committerZhenhua Luo <zhenhua.luo@freescale.com>
Wed, 22 May 2013 10:52:32 +0000 (18:52 +0800)
if SDK_VERSION is defined, append the sdk version string to kernel version,
this can make make the sdk version is explicit for users, expecially when same
kernel verison is used for different releases.

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk.bb

index 45f615fe52eded062624a7559c4dd53665816f31..a015e499be0fd927cd954b7265eca802747e4678 100644 (file)
@@ -5,10 +5,9 @@ DESCRIPTION = "Linux kernel for Freescale platforms"
 SECTION = "kernel"
 LICENSE = "GPLv2"
 
-
 require recipes-kernel/linux/linux-qoriq-sdk.inc
 
-PR = "r10"
+PR = "r11"
 
 SRC_URI += "file://fix_getrusage_for_perf.patch \
             file://0001-Enable-the-option-Automount-devtmpfs-at-dev-in-kerne.patch \
@@ -17,4 +16,9 @@ SRC_URI += "file://fix_getrusage_for_perf.patch \
 do_configure_prepend() {
        # copy desired defconfig so we pick it up for the real kernel_do_configure
        cp ${KERNEL_DEFCONFIG} ${B}/.config
+
+       # append sdk version in kernel version if SDK_VERSION is defined
+       if [ -n "${SDK_VERSION}" ]; then
+               echo "CONFIG_LOCALVERSION=\"-${SDK_VERSION}\"" >> ${S}/.config
+       fi
 }