+++ /dev/null
-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
-}
-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)
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"
+