diff options
author | Zhenhua Luo <zhenhua.luo@freescale.com> | 2015-08-12 22:42:29 +0800 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2016-04-19 15:03:15 -0300 |
commit | 4bd6734f92989c1402cfa163b555e6ce3bfa1231 (patch) | |
tree | 421824435690df766bcc482ce8e343682c55c135 /recipes-kernel/linux/linux-qoriq.inc | |
parent | 828c64ab4d11aa0777855918abb78be820cdc4b6 (diff) | |
download | meta-freescale-4bd6734f92989c1402cfa163b555e6ce3bfa1231.tar.gz |
linux-qoriq: Unify recipe for QorIQ ARM and QorIQ PPC
* update linux-qoriq recipe to support both QorIQ ARM and QorIQ PPC
* move PREFERRED_PROVIDER_virtual/linux to qoriq-base.inc
* remove linux-ls1 recipes
Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
Acked-by: Daiane Angolini <daiane.angolini@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-kernel/linux/linux-qoriq.inc')
-rw-r--r-- | recipes-kernel/linux/linux-qoriq.inc | 65 |
1 files changed, 36 insertions, 29 deletions
diff --git a/recipes-kernel/linux/linux-qoriq.inc b/recipes-kernel/linux/linux-qoriq.inc index a832b46a..6c925de3 100644 --- a/recipes-kernel/linux/linux-qoriq.inc +++ b/recipes-kernel/linux/linux-qoriq.inc | |||
@@ -1,46 +1,53 @@ | |||
1 | inherit kernel qoriq_build_64bit_kernel | 1 | inherit kernel kernel-arch qoriq_build_64bit_kernel |
2 | inherit fsl-kernel-localversion | ||
2 | require recipes-kernel/linux/linux-dtb.inc | 3 | require recipes-kernel/linux/linux-dtb.inc |
3 | 4 | ||
4 | DESCRIPTION = "Linux kernel for Freescale platforms" | 5 | DESCRIPTION = "Linux kernel for Freescale platforms" |
5 | SECTION = "kernel" | ||
6 | LICENSE = "GPLv2" | 6 | LICENSE = "GPLv2" |
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" |
8 | 8 | ||
9 | KSRC ?= "" | 9 | S = "${WORKDIR}/git" |
10 | S = '${@base_conditional("KSRC", "", "${WORKDIR}/git", "${KSRC}", d)}' | ||
11 | 10 | ||
12 | DEPENDS_append = " libgcc" | 11 | DEPENDS_append = " libgcc" |
12 | # not put uImage into /boot of rootfs, install kernel-image if needed | ||
13 | RDEPENDS_kernel-base = "" | ||
14 | |||
13 | KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}" | 15 | KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}" |
14 | KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}" | 16 | KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}" |
15 | 17 | ||
18 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" | ||
19 | ZIMAGE_BASE_NAME = "zImage-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}" | ||
20 | |||
16 | SCMVERSION ?= "y" | 21 | SCMVERSION ?= "y" |
17 | DELTA_KERNEL_DEFCONFIG ?= "" | 22 | DELTA_KERNEL_DEFCONFIG ?= "" |
23 | |||
18 | do_configure_prepend() { | 24 | do_configure_prepend() { |
19 | # copy desired defconfig so we pick it up for the real kernel_do_configure | 25 | # copy desired defconfig so we pick it up for the real kernel_do_configure |
20 | cp ${KERNEL_DEFCONFIG} ${B}/.config | 26 | cp ${KERNEL_DEFCONFIG} ${B}/.config |
21 | 27 | cp ${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig | |
22 | # add config fragments | 28 | # add config fragments |
23 | for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do | 29 | for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do |
24 | if [ -f "${deltacfg}" ]; then | 30 | if [ -f "${deltacfg}" ]; then |
25 | ${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg} | 31 | ${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg} |
26 | elif [ -f "${S}/arch/powerpc/configs/${deltacfg}" ]; then | 32 | elif [ -f "${S}/arch/${ARCH}/configs/${deltacfg}" ]; then |
27 | ${S}/scripts/kconfig/merge_config.sh -m .config \ | 33 | ${S}/scripts/kconfig/merge_config.sh -m .config \ |
28 | ${S}/arch/powerpc/configs/${deltacfg} | 34 | ${S}/arch/powerpc/configs/${deltacfg} |
29 | fi | 35 | fi |
30 | done | 36 | done |
31 | 37 | ||
32 | #add git revision to the local version | ||
33 | if [ "${SCMVERSION}" = "y" ]; then | ||
34 | # append sdk version if SDK_VERSION is defined | ||
35 | sdkversion='' | ||
36 | if [ -n "${SDK_VERSION}" ]; then | ||
37 | sdkversion="-${SDK_VERSION}" | ||
38 | fi | ||
39 | head=`git --git-dir=${S}/.git rev-parse --verify --short HEAD 2> /dev/null` | ||
40 | printf "%s%s%s" $sdkversion +g $head > ${B}/.scmversion | ||
41 | fi | ||
42 | } | 38 | } |
43 | 39 | ||
44 | # make everything compatible for the time being | 40 | do_install_append_qoriq-arm() { |
45 | COMPATIBLE_MACHINE_$MACHINE = "$MACHINE" | 41 | install -m 0644 arch/${ARCH}/boot/zImage ${D}/boot/zImage-${KERNEL_VERSION} |
42 | } | ||
43 | |||
44 | do_deploy_append_qoriq-arm() { | ||
45 | install -m 0644 arch/${ARCH}/boot/zImage ${DEPLOYDIR}/${ZIMAGE_BASE_NAME}.bin | ||
46 | ln -sf ${ZIMAGE_BASE_NAME}.bin ${DEPLOYDIR}/zImage-${MACHINE}.bin | ||
47 | ln -sf ${ZIMAGE_BASE_NAME}.bin ${DEPLOYDIR}/zImage | ||
48 | } | ||
46 | 49 | ||
50 | FILES_kernel-image += "/boot/zImage*" | ||
51 | |||
52 | # make everything compatible for the time being | ||
53 | COMPATIBLE_MACHINE = "(qoriq)" | ||