diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:19:58 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:19:58 +0200 |
commit | f98b448ee835646be48f530b3e6fe13b32b093f5 (patch) | |
tree | 9d1062f1e8893e72829df650f5e558c5fb255955 /recipes-bsp/imx-test | |
download | meta-fsl-arm-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'recipes-bsp/imx-test')
-rw-r--r-- | recipes-bsp/imx-test/imx-test-hdcp_3.10.17-1.0.0.bb | 23 | ||||
-rw-r--r-- | recipes-bsp/imx-test/imx-test.inc | 58 | ||||
-rwxr-xr-x | recipes-bsp/imx-test/imx-test/clocks.sh | 29 | ||||
-rw-r--r-- | recipes-bsp/imx-test/imx-test/revert_epdc_hdr_change.patch | 30 | ||||
-rw-r--r-- | recipes-bsp/imx-test/imx-test_00.00.00.bb | 9 | ||||
-rw-r--r-- | recipes-bsp/imx-test/imx-test_3.10.17-1.0.0.bb | 13 |
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 @@ | |||
1 | SUMMARY = "Test programs for IMX BSP" | ||
2 | DESCRIPTION = "Linux HDCP test application for imx6 platform" | ||
3 | SECTION = "base" | ||
4 | LICENSE = "Proprietary" | ||
5 | LIC_FILES_CHKSUM = "file://EULA.txt;md5=93b784b1c11b3fffb1638498a8dde3f6" | ||
6 | |||
7 | SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true" | ||
8 | |||
9 | SRC_URI[md5sum] = "7289f732beac67c50a1857d86e43c6eb" | ||
10 | SRC_URI[sha256sum] = "a64075953103da6a06714bdacb3bfa43845c2bd304d1cd00b5443d3edf02d904" | ||
11 | |||
12 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
13 | |||
14 | inherit fsl-eula-unpack | ||
15 | |||
16 | do_install() { | ||
17 | install -d ${D}/unit_tests | ||
18 | install -m 755 ${S}/*.out ${D}/unit_tests/ | ||
19 | } | ||
20 | |||
21 | FILES_${PN} += "/unit_tests" | ||
22 | |||
23 | COMPATIBLE_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 @@ | |||
1 | SUMMARY = "Test programs for IMX BSP" | ||
2 | DESCRIPTION = "Unit tests for the IMX BSP" | ||
3 | SECTION = "base" | ||
4 | DEPENDS_mx5 = "virtual/kernel imx-lib imx-vpu" | ||
5 | DEPENDS_mx6q = "virtual/kernel imx-lib imx-vpu" | ||
6 | DEPENDS_mx6dl = "virtual/kernel imx-lib imx-vpu" | ||
7 | DEPENDS_mx6sl = "virtual/kernel imx-lib" | ||
8 | DEPENDS_mxs = "virtual/kernel" | ||
9 | |||
10 | LICENSE = "GPLv2" | ||
11 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" | ||
12 | |||
13 | PE = "1" | ||
14 | |||
15 | PLATFORM_mx6 = "IMX6Q" | ||
16 | PLATFORM_mx6sl = "IMX6S" | ||
17 | PLATFORM_mx53 = "IMX53" | ||
18 | PLATFORM_mx51 = "IMX51" | ||
19 | |||
20 | SRC_URI = "${FSL_MIRROR}/imx-test-${PV}.tar.gz" | ||
21 | |||
22 | inherit module-base | ||
23 | |||
24 | INHIBIT_PACKAGE_STRIP = "1" | ||
25 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
26 | |||
27 | INCLUDE_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 | ||
36 | addtask make_scripts after do_patch before do_compile | ||
37 | do_make_scripts[lockfiles] = "${TMPDIR}/kernel-scripts.lock" | ||
38 | do_make_scripts[deptask] = "do_populate_sysroot" | ||
39 | |||
40 | do_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 | |||
46 | do_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 | |||
55 | FILES_${PN} += "/unit_tests" | ||
56 | RDEPENDS_${PN} = "bash" | ||
57 | |||
58 | FILES_${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 | |||
6 | saved_path=$PWD | ||
7 | if ! mount|grep -sq '/sys/kernel/debug'; then | ||
8 | mount -t debugfs none /sys/kernel/debug | ||
9 | fi | ||
10 | |||
11 | printf "%-24s %-20s %3s %9s\n" "clock" "parent" "use" "flags" "rate" | ||
12 | |||
13 | for 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 | ||
29 | done | ||
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 @@ | |||
1 | From e559eb0a9573b9011c03efaf42364dce67af893a Mon Sep 17 00:00:00 2001 | ||
2 | From: Lauren Post <lauren.post@freescale.com> | ||
3 | Date: Tue, 10 Sep 2013 10:58:28 -0500 | ||
4 | Subject: [PATCH] ENGR00279068-2 epdc_test_driver: Update header name change | ||
5 | of mxc_epdc.h | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Signed-off-by: Lauren Post <lauren.post@freescale.com> | ||
10 | Signed-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 | |||
15 | diff --git a/module_test/epdc_test_driver.c b/module_test/epdc_test_driver.c | ||
16 | index 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 | -- | ||
29 | 1.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 @@ | |||
1 | SUMMARY = "Dummy package for SoCs lacking imx-test package" | ||
2 | DESCRIPTION = "Dummy package for SoCs lacking imx-test package" | ||
3 | SECTION = "base" | ||
4 | LICENSE = "MIT" | ||
5 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" | ||
6 | |||
7 | inherit allarch | ||
8 | |||
9 | ALLOW_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 | |||
3 | include imx-test.inc | ||
4 | |||
5 | SRC_URI_append_mx5 = " file://revert_epdc_hdr_change.patch \ | ||
6 | file://clocks.sh" | ||
7 | SRC_URI_append_mxs = " file://revert_epdc_hdr_change.patch \ | ||
8 | file://clocks.sh" | ||
9 | |||
10 | SRC_URI[md5sum] = "3e066a84878b93ee52e54a040a7b2b61" | ||
11 | SRC_URI[sha256sum] = "21bedcbd707e392d8558ec5a73095ca15b4c95ab66deabb06876aaf3f8dac2c4" | ||
12 | |||
13 | COMPATIBLE_MACHINE = "(mxs|mx5|mx6)" | ||