From 619e8de0bf9d7943aa28d41e45a2a46d8bcfcfc5 Mon Sep 17 00:00:00 2001 From: Ting Liu Date: Sat, 14 Jun 2014 12:25:46 +0800 Subject: [PATCH] ceetm: add recipe for sdk v1.6 release Signed-off-by: Ting Liu --- .../recipes-kernel/ceetm/ceetm_git.bb | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 meta-fsl-ppc/recipes-kernel/ceetm/ceetm_git.bb diff --git a/meta-fsl-ppc/recipes-kernel/ceetm/ceetm_git.bb b/meta-fsl-ppc/recipes-kernel/ceetm/ceetm_git.bb new file mode 100644 index 00000000..7620cdbc --- /dev/null +++ b/meta-fsl-ppc/recipes-kernel/ceetm/ceetm_git.bb @@ -0,0 +1,44 @@ +DESCRIPTION = "CEETM TC QDISC" +LICENSE = "GPLv2 & BSD" +LIC_FILES_CHKSUM = "file://COPYING;md5=b5881ecf398da8a03a3f4c501e29d287" + +DEPENDS="virtual/kernel" + +inherit module + +SRC_URI = "git://git.freescale.com/ppc/sdk/ceetm.git;nobranch=1" +SRCREV = "ecf55c9ca0cd42a212653e1f99c19cd611e3a008" + +S = "${WORKDIR}/git" + +EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} SYSROOT=${STAGING_DIR_TARGET}" +export KERNEL_PATH = "${STAGING_KERNEL_DIR}" + +python () { + ma = d.getVar("DISTRO_FEATURES", True) + arch = d.getVar("OVERRIDES", True) + + # the : after the arch is to skip the message on 64b + if not "multiarch" in ma and "e6500:" in arch: + raise bb.parse.SkipPackage("Building the kernel for this arch requires multiarch to be in DISTRO_FEATURES") + + promote_kernel = d.getVar('BUILD_64BIT_KERNEL') + + if promote_kernel == "1": + d.setVar('KERNEL_CC_append', ' -m64') + d.setVar('KERNEL_LD_append', ' -melf64ppc') + + error_qa = d.getVar('ERROR_QA', True) + if 'arch' in error_qa: + d.setVar('ERROR_QA', error_qa.replace(' arch', '')) +} + +do_install(){ + mkdir -p ${D}/usr/driver/ceetm + mkdir -p ${D}/${libdir}/tc + cp ${S}/bin/ceetm.ko ${D}/usr/driver/ceetm + cp ${S}/bin/q_ceetm.so ${D}/${libdir}/tc/. +} + +FILES_${PN} += "/usr/driver/ceetm ${libdir}/tc" +INHIBIT_PACKAGE_STRIP = "1" -- 2.40.1