summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-qoriq.inc
diff options
context:
space:
mode:
authorZhenhua Luo <zhenhua.luo@freescale.com>2015-08-12 22:42:29 +0800
committerOtavio Salvador <otavio@ossystems.com.br>2016-04-19 15:03:15 -0300
commit4bd6734f92989c1402cfa163b555e6ce3bfa1231 (patch)
tree421824435690df766bcc482ce8e343682c55c135 /recipes-kernel/linux/linux-qoriq.inc
parent828c64ab4d11aa0777855918abb78be820cdc4b6 (diff)
downloadmeta-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.inc65
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 @@
1inherit kernel qoriq_build_64bit_kernel 1inherit kernel kernel-arch qoriq_build_64bit_kernel
2inherit fsl-kernel-localversion
2require recipes-kernel/linux/linux-dtb.inc 3require recipes-kernel/linux/linux-dtb.inc
3 4
4DESCRIPTION = "Linux kernel for Freescale platforms" 5DESCRIPTION = "Linux kernel for Freescale platforms"
5SECTION = "kernel"
6LICENSE = "GPLv2" 6LICENSE = "GPLv2"
7LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" 7LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
8 8
9KSRC ?= "" 9S = "${WORKDIR}/git"
10S = '${@base_conditional("KSRC", "", "${WORKDIR}/git", "${KSRC}", d)}'
11 10
12DEPENDS_append = " libgcc" 11DEPENDS_append = " libgcc"
12# not put uImage into /boot of rootfs, install kernel-image if needed
13RDEPENDS_kernel-base = ""
14
13KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}" 15KERNEL_CC_append = " ${TOOLCHAIN_OPTIONS}"
14KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}" 16KERNEL_LD_append = " ${TOOLCHAIN_OPTIONS}"
15 17
18KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
19ZIMAGE_BASE_NAME = "zImage-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
20
16SCMVERSION ?= "y" 21SCMVERSION ?= "y"
17DELTA_KERNEL_DEFCONFIG ?= "" 22DELTA_KERNEL_DEFCONFIG ?= ""
23
18do_configure_prepend() { 24do_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 40do_install_append_qoriq-arm() {
45COMPATIBLE_MACHINE_$MACHINE = "$MACHINE" 41 install -m 0644 arch/${ARCH}/boot/zImage ${D}/boot/zImage-${KERNEL_VERSION}
42}
43
44do_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
50FILES_kernel-image += "/boot/zImage*"
51
52# make everything compatible for the time being
53COMPATIBLE_MACHINE = "(qoriq)"