Patchwork [meta-fsl-ppc,v2,36/38] skmm-host: add recipe for sdk v1.6

login
register
mail settings
Submitter ting.liu@freescale.com
Date July 3, 2014, 9:42 a.m.
Message ID <1404380572-14814-37-git-send-email-ting.liu@freescale.com>
Download mbox | patch
Permalink /patch/74943/
State Accepted
Headers show

Comments

ting.liu@freescale.com - July 3, 2014, 9:42 a.m.
From: Zhenhua Luo <zhenhua.luo@freescale.com>

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
---
 recipes-kernel/skmm-host/skmm-host_git.bb |   34 +++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 recipes-kernel/skmm-host/skmm-host_git.bb

Patch

diff --git a/recipes-kernel/skmm-host/skmm-host_git.bb b/recipes-kernel/skmm-host/skmm-host_git.bb
new file mode 100644
index 0000000..9ce8a1d
--- /dev/null
+++ b/recipes-kernel/skmm-host/skmm-host_git.bb
@@ -0,0 +1,34 @@ 
+DESCRIPTION = "skmm host driver offload data to PCIe EP and push the data en-decrypted back to application"
+SECTION = "c293-skmm-host"
+LICENSE = "Freescale-EULA"
+LIC_FILES_CHKSUM = "file://Makefile;endline=7;md5=edffaac1da9e809ade0d2fcfcc18d8df"
+
+inherit  module
+
+SRC_URI = "git://git.freescale.com/ppc/sdk/skmm-host.git;nobranch=1"
+SRCREV = "97c9241a359edccdf8913cb9accbfe4ceb511523"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${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', ''))
+}
+
+FILES_${PN} += "/etc/skmm/"