Return-Path: Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by arago-project.org (Postfix) with ESMTPS id D1E8552A29 for ; Thu, 12 Mar 2015 02:23:41 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id t2C2NeTp021865 for ; Wed, 11 Mar 2015 21:23:40 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id t2C2Ndii030022 for ; Wed, 11 Mar 2015 21:23:39 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.224.2; Wed, 11 Mar 2015 21:23:39 -0500 Received: from udb0862859.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id t2C2NcZl013371; Wed, 11 Mar 2015 21:23:39 -0500 From: Sam Nelson To: Date: Wed, 11 Mar 2015 22:23:32 -0400 Message-ID: <1426127016-21527-1-git-send-email-sam.nelson@ti.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Subject: [PATCH 1/5] recovery-kernel: recovery kernel build for keystone X-BeenThere: meta-arago@arago-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Arago metadata layer for TI SDKs - OE-Core/Yocto compatible List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Mar 2015 02:23:43 -0000 Content-Type: text/plain From: Hao Zhang Build recovery kernel image and k2hk-evm dtb image for Keystone II devices. Normally when kernel is booted by u-boot, u-boot takes care to reserve free memory space in the DTB, which is required for kernel. For recovery image, user has to add the free space manually using dtc compiler. Signed-off-by: Hao Zhang --- .../recovery-kernel/recovery-kernel_1.0.bb | 39 ++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 meta-arago-extras/recipes-kernel/recovery-kernel/recovery-kernel_1.0.bb diff --git a/meta-arago-extras/recipes-kernel/recovery-kernel/recovery-kernel_1.0.bb b/meta-arago-extras/recipes-kernel/recovery-kernel/recovery-kernel_1.0.bb new file mode 100644 index 0000000..634f7c5 --- /dev/null +++ b/meta-arago-extras/recipes-kernel/recovery-kernel/recovery-kernel_1.0.bb @@ -0,0 +1,39 @@ +DESCRIPTION = "Recovery kernel building for Keystone EVM" +LICENSE = "GPLv2" + +PR = "r2" +EXTRA_OEMAKE += " KALLSYMS_EXTRA_PASS=1" +DEFAULT_PREFERENCE = "1" +COMPATIBLE_MACHINE = "keystone" +BRANCH = "master" +SRCREV = "9bc93706b37c39c3a95593dc3d56773e9b7425ad" +SRC_URI = "git://git.ti.com/keystone-linux/linux.git;protocol=git;branch=${BRANCH}" +S = "${WORKDIR}/git" +LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" + +FILES_${PN} += "${bindir}/crashdump" +LINUX_ZIMAGE = "zImage" +KERNEL_MACHINE ?= "keystone2_recovery_defconfig" +KERNEL_DTBTYPE = "k2hk-evm-recovery.dtb" +CRASHDIR = "crashdump" +ARCH = "${TARGET_ARCH}" +CROSS_COMPILE = "${TARGET_PREFIX}" + +export ARCH +export CROSS_COMPILE + +do_configure () { + make ${KERNEL_MACHINE} +} + +do_compile() { + make ${LINUX_ZIMAGE} KALLSYMS_EXTRA_PASS=1 + make ${KERNEL_DTBTYPE} + dtc -I dtb -O dtb -p 2048 -o ${KERNEL_DTBTYPE} arch/arm/boot/dts/${KERNEL_DTBTYPE} +} + +do_install () { + install -d ${D}${bindir}/${CRASHDIR}/ + install ${S}/arch/arm/boot/${LINUX_ZIMAGE} ${D}${bindir}/${CRASHDIR} + install ${S}/${KERNEL_DTBTYPE} ${D}${bindir}/${CRASHDIR} +} -- 1.7.9.5