]> code.ossystems Code Review - meta-freescale.git/commitdiff
linux: update to sdk v1.6 release
authorTing Liu <b28495@freescale.com>
Tue, 18 Feb 2014 08:47:44 +0000 (16:47 +0800)
committerZhenhua Luo <zhenhua.luo@freescale.com>
Tue, 8 Jul 2014 10:14:45 +0000 (18:14 +0800)
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>
meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk.bb [deleted file]
meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk.inc
meta-fsl-ppc/recipes-kernel/linux/linux-qoriq-sdk_3.12.bb [new file with mode: 0644]

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 (file)
index 275691a..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-inherit kernel
-require recipes-kernel/linux/linux-dtb.inc
-
-DESCRIPTION = "Linux kernel for Freescale platforms"
-SECTION = "kernel"
-LICENSE = "GPLv2"
-
-require recipes-kernel/linux/linux-qoriq-sdk.inc
-
-PR = "${INC_PR}.1"
-
-SCMVERSION ?= "y"
-
-DEPENDS_append = " libgcc"
-KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}"
-KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}"
-
-do_configure_prepend() {
-       # copy desired defconfig so we pick it up for the real kernel_do_configure
-       cp ${KERNEL_DEFCONFIG} ${B}/.config
-    
-       # add config fragments    
-       if [ -f "${DELTA_KERNEL_DEFCONFIG}" ]; then
-               ${S}/scripts/kconfig/merge_config.sh -m .config ${DELTA_KERNEL_DEFCONFIG}
-       fi
-
-       # append sdk version in kernel version if SDK_VERSION is defined
-        if [ -n "${SDK_VERSION}" ]; then
-                 echo "CONFIG_LOCALVERSION=\"-${SDK_VERSION}\"" >> ${S}/.config
-        fi
-    
-        # Add GIT revision to the local version 
-        if [ "${SCMVERSION}" = "y" ]; then
-               head=`git rev-parse --verify --short HEAD 2> /dev/null`
-               printf "%s%s" +g $head > ${S}/.scmversion
-        fi
-}
index 83c632e3b02cc3b32cd95f6431824870ee201f2c..00fe526f75f6d499079f6e989b39b582cdb99ef8 100644 (file)
@@ -1,17 +1,13 @@
-LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
-
-PV = "3.8"
-INC_PR = "r11"
+inherit kernel
+require recipes-kernel/linux/linux-dtb.inc
 
-SRC_URI = "git://git.freescale.com/ppc/sdk/linux.git;nobranch=1"
-SRCREV = "3edd71eeb4e4ae27baf539e0a5f0c8e8261bf65b"
-SRCREV_t2080qds = "47914f6cf77197921c648c6ea8977974fa54d03a"
-SRCREV_t2080qds-64b = "47914f6cf77197921c648c6ea8977974fa54d03a"
+DESCRIPTION = "Linux kernel for Freescale platforms"
+SECTION = "kernel"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
 
 KSRC ?= ""
 S = '${@base_conditional("KSRC", "", "${WORKDIR}/git", "${KSRC}", d)}'
-# make everything compatible for the time being
-COMPATIBLE_MACHINE_$MACHINE = "$MACHINE"
 
 python () {
        ma = d.getVar("DISTRO_FEATURES", True)
@@ -35,3 +31,39 @@ python () {
        if 'arch' in all_qa:
                d.setVar('ALL_QA', all_qa.replace(' arch', ''))
 }
+
+DEPENDS_append = " libgcc"
+KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}"
+KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}"
+
+SCMVERSION ?= "y"
+DELTA_KERNEL_DEFCONFIG ?= ""
+do_configure_prepend() {
+       # copy desired defconfig so we pick it up for the real kernel_do_configure
+       cp ${KERNEL_DEFCONFIG} ${B}/.config
+
+       # add config fragments
+       for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do
+               if [ -f "${deltacfg}" ]; then
+                       ${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg}
+               elif [ -f "${S}/arch/powerpc/configs/${deltacfg}" ]; then
+                   ${S}/scripts/kconfig/merge_config.sh -m .config \
+                           ${S}/arch/powerpc/configs/${deltacfg}
+               fi
+       done
+
+    #add git revision to the local version
+    if [ "${SCMVERSION}" = "y" ]; then
+            # append sdk version if SDK_VERSION is defined
+            sdkversion=''
+            if [ -n "${SDK_VERSION}" ]; then
+                sdkversion="-${SDK_VERSION}"
+            fi
+            head=`git rev-parse --verify --short HEAD 2> /dev/null`
+            printf "%s%s%s" $sdkversion +g $head > ${S}/.scmversion
+    fi
+}
+
+# make everything compatible for the time being
+COMPATIBLE_MACHINE_$MACHINE = "$MACHINE"
+
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 (file)
index 0000000..5fa6602
--- /dev/null
@@ -0,0 +1,5 @@
+require recipes-kernel/linux/linux-qoriq-sdk.inc
+
+SRC_URI = "git://git.freescale.com/ppc/sdk/linux.git;nobranch=1"
+SRCREV = "c29fe1a733308cbe592b3af054a97be1b91cf2dd"
+