summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhenhua Luo <zhenhua.luo@freescale.com>2013-05-21 06:21:07 +0000
committerZhenhua Luo <zhenhua.luo@freescale.com>2013-05-22 18:52:32 +0800
commitaa6cf806a88b36cc0228d0ae9c43e767a65d24ca (patch)
tree586129b719188d2297f510e34d33bff18038ee19
parent70afc09e8a5aac8c06d654c6477cc06c90d2d164 (diff)
downloadmeta-fsl-ppc-aa6cf806a88b36cc0228d0ae9c43e767a65d24ca.tar.gz
linux-qoriq-sdk: append SDK version to kernel version
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>
-rw-r--r--recipes-kernel/linux/linux-qoriq-sdk.bb8
1 files changed, 6 insertions, 2 deletions
diff --git a/recipes-kernel/linux/linux-qoriq-sdk.bb b/recipes-kernel/linux/linux-qoriq-sdk.bb
index 45f615f..a015e49 100644
--- a/recipes-kernel/linux/linux-qoriq-sdk.bb
+++ b/recipes-kernel/linux/linux-qoriq-sdk.bb
@@ -5,10 +5,9 @@ DESCRIPTION = "Linux kernel for Freescale platforms"
5SECTION = "kernel" 5SECTION = "kernel"
6LICENSE = "GPLv2" 6LICENSE = "GPLv2"
7 7
8
9require recipes-kernel/linux/linux-qoriq-sdk.inc 8require recipes-kernel/linux/linux-qoriq-sdk.inc
10 9
11PR = "r10" 10PR = "r11"
12 11
13SRC_URI += "file://fix_getrusage_for_perf.patch \ 12SRC_URI += "file://fix_getrusage_for_perf.patch \
14 file://0001-Enable-the-option-Automount-devtmpfs-at-dev-in-kerne.patch \ 13 file://0001-Enable-the-option-Automount-devtmpfs-at-dev-in-kerne.patch \
@@ -17,4 +16,9 @@ SRC_URI += "file://fix_getrusage_for_perf.patch \
17do_configure_prepend() { 16do_configure_prepend() {
18 # copy desired defconfig so we pick it up for the real kernel_do_configure 17 # copy desired defconfig so we pick it up for the real kernel_do_configure
19 cp ${KERNEL_DEFCONFIG} ${B}/.config 18 cp ${KERNEL_DEFCONFIG} ${B}/.config
19
20 # append sdk version in kernel version if SDK_VERSION is defined
21 if [ -n "${SDK_VERSION}" ]; then
22 echo "CONFIG_LOCALVERSION=\"-${SDK_VERSION}\"" >> ${S}/.config
23 fi
20} 24}