Patchwork [meta-fsl-ppc,24/26] qoriq-debug: add recipe

login
register
mail settings
Submitter Ting Liu
Date June 27, 2013, 9:25 a.m.
Message ID <1372325114-4423-15-git-send-email-b28495@freescale.com>
Download mbox | patch
Permalink /patch/52445/
State Accepted
Delegated to: Zhenhua Luo
Headers show

Comments

Ting Liu - June 27, 2013, 9:25 a.m.
From: Zhenhua Luo <zhenhua.luo@freescale.com>

QorIQ Debug File System Module

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 recipes-kernel/qoriq-debug/qoriq-debug_git.bb |   34 +++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)
 create mode 100644 recipes-kernel/qoriq-debug/qoriq-debug_git.bb

Patch

diff --git a/recipes-kernel/qoriq-debug/qoriq-debug_git.bb b/recipes-kernel/qoriq-debug/qoriq-debug_git.bb
new file mode 100644
index 0000000..a8d2e96
--- /dev/null
+++ b/recipes-kernel/qoriq-debug/qoriq-debug_git.bb
@@ -0,0 +1,34 @@ 
+DESCRIPTION = "QorIQ Debug File System Module"
+SECTION = "qoriq-debug"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=e29234dd5d40dc352cc60cc0c93437ba"
+
+inherit module autotools
+
+SRC_URI = "git://git.freescale.com/ppc/sdk/qoriq-debug.git"
+SRCREV = "08de2902af9a79ba9e436a284b8d7754b351f608"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OECONF += "--with-linux=${STAGING_KERNEL_DIR}"
+EXTRA_OEMAKE += 'SYSROOT="${D}"'
+
+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 ("e5500:" in arch or "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', ''))
+}
+