diff options
Diffstat (limited to 'recipes-kernel/linux/linux-qoriq_4.1.bb')
-rw-r--r-- | recipes-kernel/linux/linux-qoriq_4.1.bb | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-qoriq_4.1.bb b/recipes-kernel/linux/linux-qoriq_4.1.bb new file mode 100644 index 0000000..87eebbc --- /dev/null +++ b/recipes-kernel/linux/linux-qoriq_4.1.bb | |||
@@ -0,0 +1,56 @@ | |||
1 | inherit kernel kernel-arch qoriq_build_64bit_kernel | ||
2 | require recipes-kernel/linux/linux-dtb.inc | ||
3 | |||
4 | DESCRIPTION = "Linux kernel for Freescale platforms" | ||
5 | SECTION = "kernel" | ||
6 | LICENSE = "GPLv2" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | ||
8 | |||
9 | SRC_URI = "git://git.freescale.com/ppc/sdk/linux.git;branch=sdk-v2.0.x \ | ||
10 | file://modify-defconfig-t1040-nr-cpus.patch \ | ||
11 | file://fix-the-compile-issue-under-gcc6.patch \ | ||
12 | " | ||
13 | SRCREV = "bd51baffc04ecc73f933aee1c3a37c8b44b889a7" | ||
14 | |||
15 | KSRC ?= "" | ||
16 | S = '${@base_conditional("KSRC", "", "${WORKDIR}/git", "${KSRC}", d)}' | ||
17 | |||
18 | DEPENDS_append = " libgcc" | ||
19 | # not put Images into /boot of rootfs, install kernel-image if needed | ||
20 | RDEPENDS_kernel-base = "" | ||
21 | |||
22 | KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}" | ||
23 | KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}" | ||
24 | |||
25 | SCMVERSION ?= "y" | ||
26 | DELTA_KERNEL_DEFCONFIG ?= "" | ||
27 | do_configure_prepend() { | ||
28 | # copy desired defconfig so we pick it up for the real kernel_do_configure | ||
29 | cp ${KERNEL_DEFCONFIG} ${B}/.config | ||
30 | |||
31 | # add config fragments | ||
32 | for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do | ||
33 | if [ -f "${deltacfg}" ]; then | ||
34 | ${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg} | ||
35 | elif [ -f "${WORKDIR}/${deltacfg}" ]; then | ||
36 | ${S}/scripts/kconfig/merge_config.sh -m .config ${WORKDIR}/${deltacfg} | ||
37 | elif [ -f "${S}/arch/${ARCH}/configs/${deltacfg}" ]; then | ||
38 | ${S}/scripts/kconfig/merge_config.sh -m .config \ | ||
39 | ${S}/arch/${ARCH}/configs/${deltacfg} | ||
40 | fi | ||
41 | done | ||
42 | |||
43 | #add git revision to the local version | ||
44 | if [ "${SCMVERSION}" = "y" ]; then | ||
45 | # append sdk version if SDK_VERSION is defined | ||
46 | sdkversion='' | ||
47 | if [ -n "${SDK_VERSION}" ]; then | ||
48 | sdkversion="-${SDK_VERSION}" | ||
49 | fi | ||
50 | head=`git --git-dir=${S}/.git rev-parse --verify --short HEAD 2> /dev/null` | ||
51 | printf "%s%s%s" $sdkversion +g $head > ${B}/.scmversion | ||
52 | fi | ||
53 | } | ||
54 | |||
55 | # make everything compatible for the time being | ||
56 | COMPATIBLE_MACHINE_$MACHINE = "$MACHINE" | ||