diff options
author | Zhenhua Luo <zhenhua.luo@freescale.com> | 2013-05-21 06:21:07 +0000 |
---|---|---|
committer | Zhenhua Luo <zhenhua.luo@freescale.com> | 2013-05-22 18:52:32 +0800 |
commit | aa6cf806a88b36cc0228d0ae9c43e767a65d24ca (patch) | |
tree | 586129b719188d2297f510e34d33bff18038ee19 | |
parent | 70afc09e8a5aac8c06d654c6477cc06c90d2d164 (diff) | |
download | meta-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.bb | 8 |
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" | |||
5 | SECTION = "kernel" | 5 | SECTION = "kernel" |
6 | LICENSE = "GPLv2" | 6 | LICENSE = "GPLv2" |
7 | 7 | ||
8 | |||
9 | require recipes-kernel/linux/linux-qoriq-sdk.inc | 8 | require recipes-kernel/linux/linux-qoriq-sdk.inc |
10 | 9 | ||
11 | PR = "r10" | 10 | PR = "r11" |
12 | 11 | ||
13 | SRC_URI += "file://fix_getrusage_for_perf.patch \ | 12 | SRC_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 \ | |||
17 | do_configure_prepend() { | 16 | do_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 | } |