summaryrefslogtreecommitdiffstats
path: root/meta-fsl-ppc
diff options
context:
space:
mode:
authorTing Liu <b28495@freescale.com>2014-02-18 16:47:44 +0800
committerZhenhua Luo <zhenhua.luo@freescale.com>2014-07-08 18:14:45 +0800
commite129330972e00e0675698b061383c3dafc6960fd (patch)
tree591324f20ce4f1a8f26194a476a761203e6c2413 /meta-fsl-ppc
parentdf174f67fef9b2012f49612f4347d7e25190cba4 (diff)
downloadmeta-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.bb37
-rw-r--r--meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk.inc52
-rw-r--r--meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk_3.12.bb5
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 @@
1inherit kernel
2require recipes-kernel/linux/linux-dtb.inc
3
4DESCRIPTION = "Linux kernel for Freescale platforms"
5SECTION = "kernel"
6LICENSE = "GPLv2"
7
8require recipes-kernel/linux/linux-qoriq-sdk.inc
9
10PR = "${INC_PR}.1"
11
12SCMVERSION ?= "y"
13
14DEPENDS_append = " libgcc"
15KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}"
16KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}"
17
18do_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 @@
1LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" 1inherit kernel
2 2require recipes-kernel/linux/linux-dtb.inc
3PV = "3.8"
4INC_PR = "r11"
5 3
6SRC_URI = "git://git.freescale.com/ppc/sdk/linux.git;nobranch=1" 4DESCRIPTION = "Linux kernel for Freescale platforms"
7SRCREV = "3edd71eeb4e4ae27baf539e0a5f0c8e8261bf65b" 5SECTION = "kernel"
8SRCREV_t2080qds = "47914f6cf77197921c648c6ea8977974fa54d03a" 6LICENSE = "GPLv2"
9SRCREV_t2080qds-64b = "47914f6cf77197921c648c6ea8977974fa54d03a" 7LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
10 8
11KSRC ?= "" 9KSRC ?= ""
12S = '${@base_conditional("KSRC", "", "${WORKDIR}/git", "${KSRC}", d)}' 10S = '${@base_conditional("KSRC", "", "${WORKDIR}/git", "${KSRC}", d)}'
13# make everything compatible for the time being
14COMPATIBLE_MACHINE_$MACHINE = "$MACHINE"
15 11
16python () { 12python () {
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
35DEPENDS_append = " libgcc"
36KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}"
37KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}"
38
39SCMVERSION ?= "y"
40DELTA_KERNEL_DEFCONFIG ?= ""
41do_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
68COMPATIBLE_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 @@
1require recipes-kernel/linux/linux-qoriq-sdk.inc
2
3SRC_URI = "git://git.freescale.com/ppc/sdk/linux.git;nobranch=1"
4SRCREV = "c29fe1a733308cbe592b3af054a97be1b91cf2dd"
5