Define linux-am335x-upstream-staging recipe
PATCH 1/1 Define linux-am335x-upstream-staging recipe
AUTOREV recipe for github.com/hvaibhav/am335x-linux.git
Please consider for meta-arago. Thanks,
Carlos
From 193cdfd5104d55d6b71973e41b0874d7cd6f591a Mon Sep 17 00:00:00 2001
From: Carlos Hernandez <[email protected]>
Date: Tue, 4 Dec 2012 17:32:18 -0500
Subject: [PATCH 03/12] Define linux-am335x-upstream-staging recipe
AUTOREV recipe for github.com/hvaibhav/am335x-linux.git
Signed-off-by Carlos Hernandez <[email protected]>
--- .../linux/linux-am335x-upstream-staging_git.bb | 48 ++++++++++++++++++++ 1 files changed, 48 insertions(+), 0 deletions(-) create mode 100644 meta-arago-distro/recipes-kernel/linux/linux-am335x-upstream-staging_git.bb
meta-arago-distro/recipes-kernel/linux/linux-am335x-upstream-staging_git.bb new file +48 -0
@@ -0,0 +1,48 @@ +SECTION = "kernel" +DESCRIPTION = "Linux kernel for TI33x EVM from PSP, based on am335x-kernel" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" +KERNEL_IMAGETYPE = "uImage" + +inherit kernel +require setup-dtb.inc + +# Stage the power management firmware before building the kernel +DEPENDS += "am33x-cm3" + +KERNEL_DEVICETREE_am335x-evm = "arch/arm/boot/dts/am335x-evm.dts" + +COMPATIBLE_MACHINE = "ti33x" + +S = "${WORKDIR}/git" + +BRANCH = "am335x-upstream-staging" + +SRCREV = "${AUTOREV}" +PV = "3.7" + +# Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild +MACHINE_KERNEL_PR_append = "r11+gitr${SRCPV}" + +KVER = "${PV}" +PSPREL = "-prerelease" + +# Override the SRC_URI from the linux-omap3.inc file +SRC_URI = "git://github.com/hvaibhav/am335x-linux.git;protocol=git;branch=${BRANCH} \ +" + +do_setup_defconfig() { + : +} + +do_configure() { + make ARCH=arm omap2plus_defconfig +} + +# Copy the am33x-cm3 firmware if it is available +do_compile_prepend() { + if [ -e "${STAGING_DIR_HOST}/${base_libdir}/firmware/am335x-pm-firmware.bin" ] + then + cp "${STAGING_DIR_HOST}/${base_libdir}/firmware/am335x-pm-firmware.bin" "${S}/firmware" + fi +}
Signature · 1 line
1.7.0.4