]> code.ossystems Code Review - meta-freescale.git/commitdiff
ceetm: add recipe for sdk v1.6 release
authorTing Liu <b28495@freescale.com>
Sat, 14 Jun 2014 04:25:46 +0000 (12:25 +0800)
committerZhenhua Luo <zhenhua.luo@freescale.com>
Tue, 8 Jul 2014 10:14:47 +0000 (18:14 +0800)
Signed-off-by: Ting Liu <b28495@freescale.com>
meta-fsl-ppc/recipes-kernel/ceetm/ceetm_git.bb [new file with mode: 0644]

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 (file)
index 0000000..7620cdb
--- /dev/null
@@ -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"