diff options
author | Ting Liu <b28495@freescale.com> | 2014-02-18 16:47:44 +0800 |
---|---|---|
committer | Zhenhua Luo <zhenhua.luo@freescale.com> | 2014-07-08 18:14:45 +0800 |
commit | e129330972e00e0675698b061383c3dafc6960fd (patch) | |
tree | 591324f20ce4f1a8f26194a476a761203e6c2413 /meta-fsl-ppc | |
parent | df174f67fef9b2012f49612f4347d7e25190cba4 (diff) | |
download | meta-freescale-e129330972e00e0675698b061383c3dafc6960fd.tar.gz |
linux: update to sdk v1.6 release
1.move more generic bits to linux-qoriq-sdk.inc file
2.add support for multiple kernel delta config files
3.Append SDK_VERSION to .scmversion, and use the same version format
with u-boot. For exmaple: 3.12.17-rt25-QorIQ-SDK-V1.6+gfae7d11
4.add linux-qoirq-sdk_3.12.bb to use latest released codes in sdk v1.6, detailed changes can be viewed at:
http://git.freescale.com/git/cgit.cgi/ppc/sdk/linux.git/log/?qt=range&q=c29fe1a733308cbe592b3af054a97be1b91cf2dd
Signed-off-by: Ting Liu <b28495@freescale.com>
Diffstat (limited to 'meta-fsl-ppc')
-rw-r--r-- | meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk.bb | 37 | ||||
-rw-r--r-- | meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk.inc | 52 | ||||
-rw-r--r-- | meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk_3.12.bb | 5 |
3 files changed, 47 insertions, 47 deletions
diff --git a/meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk.bb b/meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk.bb deleted file mode 100644 index 275691ab5..000000000 --- a/meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk.bb +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | inherit kernel | ||
2 | require recipes-kernel/linux/linux-dtb.inc | ||
3 | |||
4 | DESCRIPTION = "Linux kernel for Freescale platforms" | ||
5 | SECTION = "kernel" | ||
6 | LICENSE = "GPLv2" | ||
7 | |||
8 | require recipes-kernel/linux/linux-qoriq-sdk.inc | ||
9 | |||
10 | PR = "${INC_PR}.1" | ||
11 | |||
12 | SCMVERSION ?= "y" | ||
13 | |||
14 | DEPENDS_append = " libgcc" | ||
15 | KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}" | ||
16 | KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}" | ||
17 | |||
18 | do_configure_prepend() { | ||
19 | # copy desired defconfig so we pick it up for the real kernel_do_configure | ||
20 | cp ${KERNEL_DEFCONFIG} ${B}/.config | ||
21 | |||
22 | # add config fragments | ||
23 | if [ -f "${DELTA_KERNEL_DEFCONFIG}" ]; then | ||
24 | ${S}/scripts/kconfig/merge_config.sh -m .config ${DELTA_KERNEL_DEFCONFIG} | ||
25 | fi | ||
26 | |||
27 | # append sdk version in kernel version if SDK_VERSION is defined | ||
28 | if [ -n "${SDK_VERSION}" ]; then | ||
29 | echo "CONFIG_LOCALVERSION=\"-${SDK_VERSION}\"" >> ${S}/.config | ||
30 | fi | ||
31 | |||
32 | # Add GIT revision to the local version | ||
33 | if [ "${SCMVERSION}" = "y" ]; then | ||
34 | head=`git rev-parse --verify --short HEAD 2> /dev/null` | ||
35 | printf "%s%s" +g $head > ${S}/.scmversion | ||
36 | fi | ||
37 | } | ||
diff --git a/meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk.inc b/meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk.inc index 83c632e3b..00fe526f7 100644 --- a/meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk.inc +++ b/meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk.inc | |||
@@ -1,17 +1,13 @@ | |||
1 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | 1 | inherit kernel |
2 | 2 | require recipes-kernel/linux/linux-dtb.inc | |
3 | PV = "3.8" | ||
4 | INC_PR = "r11" | ||
5 | 3 | ||
6 | SRC_URI = "git://git.freescale.com/ppc/sdk/linux.git;nobranch=1" | 4 | DESCRIPTION = "Linux kernel for Freescale platforms" |
7 | SRCREV = "3edd71eeb4e4ae27baf539e0a5f0c8e8261bf65b" | 5 | SECTION = "kernel" |
8 | SRCREV_t2080qds = "47914f6cf77197921c648c6ea8977974fa54d03a" | 6 | LICENSE = "GPLv2" |
9 | SRCREV_t2080qds-64b = "47914f6cf77197921c648c6ea8977974fa54d03a" | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" |
10 | 8 | ||
11 | KSRC ?= "" | 9 | KSRC ?= "" |
12 | S = '${@base_conditional("KSRC", "", "${WORKDIR}/git", "${KSRC}", d)}' | 10 | S = '${@base_conditional("KSRC", "", "${WORKDIR}/git", "${KSRC}", d)}' |
13 | # make everything compatible for the time being | ||
14 | COMPATIBLE_MACHINE_$MACHINE = "$MACHINE" | ||
15 | 11 | ||
16 | python () { | 12 | python () { |
17 | ma = d.getVar("DISTRO_FEATURES", True) | 13 | ma = d.getVar("DISTRO_FEATURES", True) |
@@ -35,3 +31,39 @@ python () { | |||
35 | if 'arch' in all_qa: | 31 | if 'arch' in all_qa: |
36 | d.setVar('ALL_QA', all_qa.replace(' arch', '')) | 32 | d.setVar('ALL_QA', all_qa.replace(' arch', '')) |
37 | } | 33 | } |
34 | |||
35 | DEPENDS_append = " libgcc" | ||
36 | KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}" | ||
37 | KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}" | ||
38 | |||
39 | SCMVERSION ?= "y" | ||
40 | DELTA_KERNEL_DEFCONFIG ?= "" | ||
41 | do_configure_prepend() { | ||
42 | # copy desired defconfig so we pick it up for the real kernel_do_configure | ||
43 | cp ${KERNEL_DEFCONFIG} ${B}/.config | ||
44 | |||
45 | # add config fragments | ||
46 | for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do | ||
47 | if [ -f "${deltacfg}" ]; then | ||
48 | ${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg} | ||
49 | elif [ -f "${S}/arch/powerpc/configs/${deltacfg}" ]; then | ||
50 | ${S}/scripts/kconfig/merge_config.sh -m .config \ | ||
51 | ${S}/arch/powerpc/configs/${deltacfg} | ||
52 | fi | ||
53 | done | ||
54 | |||
55 | #add git revision to the local version | ||
56 | if [ "${SCMVERSION}" = "y" ]; then | ||
57 | # append sdk version if SDK_VERSION is defined | ||
58 | sdkversion='' | ||
59 | if [ -n "${SDK_VERSION}" ]; then | ||
60 | sdkversion="-${SDK_VERSION}" | ||
61 | fi | ||
62 | head=`git rev-parse --verify --short HEAD 2> /dev/null` | ||
63 | printf "%s%s%s" $sdkversion +g $head > ${S}/.scmversion | ||
64 | fi | ||
65 | } | ||
66 | |||
67 | # make everything compatible for the time being | ||
68 | COMPATIBLE_MACHINE_$MACHINE = "$MACHINE" | ||
69 | |||
diff --git a/meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk_3.12.bb b/meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk_3.12.bb new file mode 100644 index 000000000..5fa66028b --- /dev/null +++ b/meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk_3.12.bb | |||
@@ -0,0 +1,5 @@ | |||
1 | require recipes-kernel/linux/linux-qoriq-sdk.inc | ||
2 | |||
3 | SRC_URI = "git://git.freescale.com/ppc/sdk/linux.git;nobranch=1" | ||
4 | SRCREV = "c29fe1a733308cbe592b3af054a97be1b91cf2dd" | ||
5 | |||