summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/imx-test
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-bsp/imx-test')
-rw-r--r--recipes-bsp/imx-test/imx-test-hdcp_3.10.17-1.0.0.bb23
-rw-r--r--recipes-bsp/imx-test/imx-test.inc58
-rwxr-xr-xrecipes-bsp/imx-test/imx-test/clocks.sh29
-rw-r--r--recipes-bsp/imx-test/imx-test/revert_epdc_hdr_change.patch30
-rw-r--r--recipes-bsp/imx-test/imx-test_00.00.00.bb9
-rw-r--r--recipes-bsp/imx-test/imx-test_3.10.17-1.0.0.bb13
6 files changed, 162 insertions, 0 deletions
diff --git a/recipes-bsp/imx-test/imx-test-hdcp_3.10.17-1.0.0.bb b/recipes-bsp/imx-test/imx-test-hdcp_3.10.17-1.0.0.bb
new file mode 100644
index 0000000..b326b08
--- /dev/null
+++ b/recipes-bsp/imx-test/imx-test-hdcp_3.10.17-1.0.0.bb
@@ -0,0 +1,23 @@
1SUMMARY = "Test programs for IMX BSP"
2DESCRIPTION = "Linux HDCP test application for imx6 platform"
3SECTION = "base"
4LICENSE = "Proprietary"
5LIC_FILES_CHKSUM = "file://EULA.txt;md5=93b784b1c11b3fffb1638498a8dde3f6"
6
7SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true"
8
9SRC_URI[md5sum] = "7289f732beac67c50a1857d86e43c6eb"
10SRC_URI[sha256sum] = "a64075953103da6a06714bdacb3bfa43845c2bd304d1cd00b5443d3edf02d904"
11
12INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
13
14inherit fsl-eula-unpack
15
16do_install() {
17 install -d ${D}/unit_tests
18 install -m 755 ${S}/*.out ${D}/unit_tests/
19}
20
21FILES_${PN} += "/unit_tests"
22
23COMPATIBLE_MACHINE = "(mx6)"
diff --git a/recipes-bsp/imx-test/imx-test.inc b/recipes-bsp/imx-test/imx-test.inc
new file mode 100644
index 0000000..94dbdc3
--- /dev/null
+++ b/recipes-bsp/imx-test/imx-test.inc
@@ -0,0 +1,58 @@
1SUMMARY = "Test programs for IMX BSP"
2DESCRIPTION = "Unit tests for the IMX BSP"
3SECTION = "base"
4DEPENDS_mx5 = "virtual/kernel imx-lib imx-vpu"
5DEPENDS_mx6q = "virtual/kernel imx-lib imx-vpu"
6DEPENDS_mx6dl = "virtual/kernel imx-lib imx-vpu"
7DEPENDS_mx6sl = "virtual/kernel imx-lib"
8DEPENDS_mxs = "virtual/kernel"
9
10LICENSE = "GPLv2"
11LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
12
13PE = "1"
14
15PLATFORM_mx6 = "IMX6Q"
16PLATFORM_mx6sl = "IMX6S"
17PLATFORM_mx53 = "IMX53"
18PLATFORM_mx51 = "IMX51"
19
20SRC_URI = "${FSL_MIRROR}/imx-test-${PV}.tar.gz"
21
22inherit module-base
23
24INHIBIT_PACKAGE_STRIP = "1"
25INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
26
27INCLUDE_DIR="-I${STAGING_INCDIR} \
28 -I${S}/include \
29 -I${STAGING_KERNEL_DIR}/include/uapi \
30 -I${STAGING_KERNEL_DIR}/include \
31 -I${STAGING_KERNEL_DIR}/arch/arm/include \
32 -I${STAGING_KERNEL_DIR}/drivers/mxc/security/rng/include \
33 -I${STAGING_KERNEL_DIR}/drivers/mxc/security/sahara2/include"
34
35# Required so the fixdep binary is generated
36addtask make_scripts after do_patch before do_compile
37do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock"
38do_make_scripts[deptask] = "do_populate_sysroot"
39
40do_compile() {
41 LDFLAGS="" make PLATFORM=${PLATFORM} LINUXPATH=${STAGING_KERNEL_DIR} \
42 KBUILD_OUTPUT=${STAGING_KERNEL_DIR} CROSS_COMPILE=${TARGET_PREFIX} V=1 \
43 INC="${INCLUDE_DIR}"
44}
45
46do_install() {
47 install -d ${D}/unit_tests
48 install -m 755 test-utils.sh ${D}/unit_tests/test-utils.sh
49 install -m 755 ${S}/platform/${PLATFORM}/* ${D}/unit_tests/
50 if [ -e ${WORKDIR}/clocks.sh ]; then
51 install -m 755 ${WORKDIR}/clocks.sh ${D}/unit_tests/clocks.sh
52 fi
53}
54
55FILES_${PN} += "/unit_tests"
56RDEPENDS_${PN} = "bash"
57
58FILES_${PN}-dbg += "/unit_tests/.debug"
diff --git a/recipes-bsp/imx-test/imx-test/clocks.sh b/recipes-bsp/imx-test/imx-test/clocks.sh
new file mode 100755
index 0000000..2121bef
--- /dev/null
+++ b/recipes-bsp/imx-test/imx-test/clocks.sh
@@ -0,0 +1,29 @@
1#!/bin/bash
2
3# This script is taken directly from the section 5.10 of the Freescale Application Note
4# AN4509 and it simple prints the CPU clocks in a nice format
5
6saved_path=$PWD
7if ! mount|grep -sq '/sys/kernel/debug'; then
8 mount -t debugfs none /sys/kernel/debug
9fi
10
11printf "%-24s %-20s %3s %9s\n" "clock" "parent" "use" "flags" "rate"
12
13for foo in $(find /sys/kernel/debug/clock -type d); do
14 if [ "$foo" = '/sys/kernel/debug/clock' ]; then
15 continue
16 fi
17 cd $foo
18 ec="$(cat usecount)"
19 rate="$(cat rate)"
20 flag="$(cat flags)"
21 clk="$(basename $foo)"
22 cd ..
23 parent="$(basename $PWD)"
24 if [ "$parent" = 'clock' ]; then
25 parent=" ---"
26 fi
27 printf "%-24s %-24s %2d %2d %10d\n" "$clk" "$parent" "$ec" "$flag" "$rate"
28 cd $saved_path
29done
diff --git a/recipes-bsp/imx-test/imx-test/revert_epdc_hdr_change.patch b/recipes-bsp/imx-test/imx-test/revert_epdc_hdr_change.patch
new file mode 100644
index 0000000..4fb0564
--- /dev/null
+++ b/recipes-bsp/imx-test/imx-test/revert_epdc_hdr_change.patch
@@ -0,0 +1,30 @@
1From e559eb0a9573b9011c03efaf42364dce67af893a Mon Sep 17 00:00:00 2001
2From: Lauren Post <lauren.post@freescale.com>
3Date: Tue, 10 Sep 2013 10:58:28 -0500
4Subject: [PATCH] ENGR00279068-2 epdc_test_driver: Update header name change
5 of mxc_epdc.h
6
7Upstream-Status: Pending
8
9Signed-off-by: Lauren Post <lauren.post@freescale.com>
10Signed-off-by: Frank Li <Frank.li@freescale.com>
11---
12 module_test/epdc_test_driver.c | 4 ++--
13 1 file changed, 1 insertions(+), 1 deletions(-)
14
15diff --git a/module_test/epdc_test_driver.c b/module_test/epdc_test_driver.c
16index fb15aec..447246f 100644
17--- a/module_test/epdc_test_driver.c
18+++ b/module_test/epdc_test_driver.c
19@@ -36,7 +36,7 @@
20
21 #include <linux/device.h>
22 #include <linux/mxcfb.h>
23-#include <linux/mxcfb_epdc.h>
24+#include <linux/mxcfb_epdc_kernel.h>
25
26 /* major number of device */
27 static int gMajor;
28--
291.7.9.5
30
diff --git a/recipes-bsp/imx-test/imx-test_00.00.00.bb b/recipes-bsp/imx-test/imx-test_00.00.00.bb
new file mode 100644
index 0000000..1f6a275
--- /dev/null
+++ b/recipes-bsp/imx-test/imx-test_00.00.00.bb
@@ -0,0 +1,9 @@
1SUMMARY = "Dummy package for SoCs lacking imx-test package"
2DESCRIPTION = "Dummy package for SoCs lacking imx-test package"
3SECTION = "base"
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
6
7inherit allarch
8
9ALLOW_EMPTY_${PN} = "1"
diff --git a/recipes-bsp/imx-test/imx-test_3.10.17-1.0.0.bb b/recipes-bsp/imx-test/imx-test_3.10.17-1.0.0.bb
new file mode 100644
index 0000000..77b51c7
--- /dev/null
+++ b/recipes-bsp/imx-test/imx-test_3.10.17-1.0.0.bb
@@ -0,0 +1,13 @@
1# Copyright (C) 2013, 2014 Freescale Semiconductor
2
3include imx-test.inc
4
5SRC_URI_append_mx5 = " file://revert_epdc_hdr_change.patch \
6 file://clocks.sh"
7SRC_URI_append_mxs = " file://revert_epdc_hdr_change.patch \
8 file://clocks.sh"
9
10SRC_URI[md5sum] = "3e066a84878b93ee52e54a040a7b2b61"
11SRC_URI[sha256sum] = "21bedcbd707e392d8558ec5a73095ca15b4c95ab66deabb06876aaf3f8dac2c4"
12
13COMPATIBLE_MACHINE = "(mxs|mx5|mx6)"