summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2021-11-02 15:51:14 -0300
committerGitHub <noreply@github.com>2021-11-02 15:51:14 -0300
commit0ec8e48e6062679582cf1f3d5810985022507b61 (patch)
treeaf7133d558a1a2f63eb07da4a020e86d642f2375
parent2cda103796e567d6ce17874df37f9bcfed13a69f (diff)
parent3d5338c8859e80fcf626ddc7ab039ad1e357783e (diff)
downloadmeta-freescale-0ec8e48e6062679582cf1f3d5810985022507b61.tar.gz
Merge pull request #906 from MaxKrummenacher/master-isp-imx
Draft: Master isp imx
-rw-r--r--recipes-bsp/isp-imx/isp-imx/0001-isp-imx-drop-use-of-__TIME__-__DATE__.patch30
-rw-r--r--recipes-bsp/isp-imx/isp-imx_4.2.2.15.0.bb10
-rw-r--r--recipes-bsp/isp-imx/libtinyxml2-8_8.0.0.bb22
3 files changed, 44 insertions, 18 deletions
diff --git a/recipes-bsp/isp-imx/isp-imx/0001-isp-imx-drop-use-of-__TIME__-__DATE__.patch b/recipes-bsp/isp-imx/isp-imx/0001-isp-imx-drop-use-of-__TIME__-__DATE__.patch
index d8d12267..c3ee088f 100644
--- a/recipes-bsp/isp-imx/isp-imx/0001-isp-imx-drop-use-of-__TIME__-__DATE__.patch
+++ b/recipes-bsp/isp-imx/isp-imx/0001-isp-imx-drop-use-of-__TIME__-__DATE__.patch
@@ -1,6 +1,6 @@
1From accaeb1ae77eb40b89e70df3efcb00d0dc2af758 Mon Sep 17 00:00:00 2001 1From ea5ce303fa5bc7b6a17c522b4caf49d349adb12b Mon Sep 17 00:00:00 2001
2From: Max Krummenacher <max.krummenacher@toradex.com> 2From: Max Krummenacher <max.krummenacher@toradex.com>
3Date: Mon, 14 Jun 2021 08:20:48 +0000 3Date: Sat, 30 Oct 2021 17:26:42 +0200
4Subject: [PATCH] isp-imx: drop use of __TIME__, __DATE__ 4Subject: [PATCH] isp-imx: drop use of __TIME__, __DATE__
5 5
6With reproducible build enabled the compiler is configured to throw 6With reproducible build enabled the compiler is configured to throw
@@ -21,7 +21,7 @@ Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
21 2 files changed, 7 insertions(+), 4 deletions(-) 21 2 files changed, 7 insertions(+), 4 deletions(-)
22 22
23diff --git a/mediacontrol/CMakeLists.txt b/mediacontrol/CMakeLists.txt 23diff --git a/mediacontrol/CMakeLists.txt b/mediacontrol/CMakeLists.txt
24index 48cd7633e..f587758e0 100755 24index 5849c163e..8a8e1a4a0 100755
25--- a/mediacontrol/CMakeLists.txt 25--- a/mediacontrol/CMakeLists.txt
26+++ b/mediacontrol/CMakeLists.txt 26+++ b/mediacontrol/CMakeLists.txt
27@@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.1.0) 27@@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.1.0)
@@ -35,38 +35,38 @@ index 48cd7633e..f587758e0 100755
35 if(DEFINED PLATFORM) 35 if(DEFINED PLATFORM)
36 if(${PLATFORM} STREQUAL ARM64) 36 if(${PLATFORM} STREQUAL ARM64)
37diff --git a/mediacontrol/daemon/main_v4l2.cpp b/mediacontrol/daemon/main_v4l2.cpp 37diff --git a/mediacontrol/daemon/main_v4l2.cpp b/mediacontrol/daemon/main_v4l2.cpp
38index a3033cf83..d08dee127 100644 38index d3d1c2423..dd0514358 100644
39--- a/mediacontrol/daemon/main_v4l2.cpp 39--- a/mediacontrol/daemon/main_v4l2.cpp
40+++ b/mediacontrol/daemon/main_v4l2.cpp 40+++ b/mediacontrol/daemon/main_v4l2.cpp
41@@ -96,7 +96,7 @@ int main(int argc, char* argv[]) { 41@@ -105,7 +105,7 @@ int main(int argc, char* argv[]) {
42 if (argc == 2){
43 if(!(string2Version.find(argv[1])==string2Version.end())){ 42 if(!(string2Version.find(argv[1])==string2Version.end())){
44 std::cout << "Version : "<<MEDIA_SERVER_VERSION<<std::endl; 43 std::cout << "Version : "<<MEDIA_SERVER_VERSION<<std::endl;
44 #ifndef ANDROID
45- std::cout << "Build Time : "<<__DATE__<<", "<<__TIME__<<std::endl; 45- std::cout << "Build Time : "<<__DATE__<<", "<<__TIME__<<std::endl;
46+ std::cout << "Build Time : "<<BUILD_DATE<<std::endl; 46+ std::cout << "Build Time : "<<BUILD_DATE<<std::endl;
47 #endif
47 return 0; 48 return 0;
48 } 49 }
49 } 50@@ -116,8 +116,8 @@ int main(int argc, char* argv[]) {
50@@ -105,8 +105,8 @@ int main(int argc, char* argv[]) {
51 if(fd_running >= 0)
52 { 51 {
53 ALOGI("******************************************************************"); 52 ALOGI("******************************************************************");
53 #ifndef ANDROID
54- ALOGI("VIV ISP Media Control Framework V%s (%s, %s)", 54- ALOGI("VIV ISP Media Control Framework V%s (%s, %s)",
55- MEDIA_SERVER_VERSION, __DATE__, __TIME__); 55- MEDIA_SERVER_VERSION, __DATE__, __TIME__);
56+ ALOGI("VIV ISP Media Control Framework V%s (%s)", 56+ ALOGI("VIV ISP Media Control Framework V%s (%s)",
57+ MEDIA_SERVER_VERSION, BUILD_DATE); 57+ MEDIA_SERVER_VERSION, BUILD_DATE);
58 ALOGI("******************************************************************\n"); 58 #else
59 59 ALOGI("VIV ISP Media Control Framework V%s", MEDIA_SERVER_VERSION);
60 if (argc < 2) { 60 #endif
61@@ -123,7 +123,7 @@ int main(int argc, char* argv[]) { 61@@ -138,7 +138,7 @@ int main(int argc, char* argv[]) {
62 while( i < argc ){
63 if(!(string2Version.find(argv[i])==string2Version.end())){ 62 if(!(string2Version.find(argv[i])==string2Version.end())){
64 std::cout << "Version : "<<MEDIA_SERVER_VERSION<<std::endl; 63 std::cout << "Version : "<<MEDIA_SERVER_VERSION<<std::endl;
64 #ifndef ANDROID
65- std::cout << "Build Time : "<<__DATE__<<", "<<__TIME__<<std::endl; 65- std::cout << "Build Time : "<<__DATE__<<", "<<__TIME__<<std::endl;
66+ std::cout << "Build Time : "<<BUILD_DATE<<std::endl; 66+ std::cout << "Build Time : "<<BUILD_DATE<<std::endl;
67 #endif
67 i++; 68 i++;
68 continue; 69 continue;
69 }
70-- 70--
712.20.1 712.20.1
72 72
diff --git a/recipes-bsp/isp-imx/isp-imx_4.2.2.15.0.bb b/recipes-bsp/isp-imx/isp-imx_4.2.2.15.0.bb
index 9f975511..9ede07bd 100644
--- a/recipes-bsp/isp-imx/isp-imx_4.2.2.15.0.bb
+++ b/recipes-bsp/isp-imx/isp-imx_4.2.2.15.0.bb
@@ -2,8 +2,8 @@
2 2
3DESCRIPTION = "i.MX Verisilicon Software ISP" 3DESCRIPTION = "i.MX Verisilicon Software ISP"
4LICENSE = "Proprietary" 4LICENSE = "Proprietary"
5LIC_FILES_CHKSUM = "file://COPYING;md5=e565271ec9a80ce47abbddc4bffe56fa" 5LIC_FILES_CHKSUM = "file://COPYING;md5=e565271ec9a80ce47abbddc4bffe56fa"
6DEPENDS = "python3 libdrm virtual/libg2d libtinyxml2" 6DEPENDS = "python3 libdrm virtual/libg2d libtinyxml2-8"
7 7
8SRC_URI = " \ 8SRC_URI = " \
9 ${FSL_MIRROR}/${BP}.bin;fsl-eula=true \ 9 ${FSL_MIRROR}/${BP}.bin;fsl-eula=true \
@@ -25,6 +25,7 @@ OECMAKE_GENERATOR = "Unix Makefiles"
25SYSTEMD_SERVICE:${PN} = "imx8-isp.service" 25SYSTEMD_SERVICE:${PN} = "imx8-isp.service"
26 26
27EXTRA_OECMAKE += " \ 27EXTRA_OECMAKE += " \
28 -DSDKTARGETSYSROOT=${STAGING_DIR_HOST} \
28 -DCMAKE_BUILD_TYPE=release \ 29 -DCMAKE_BUILD_TYPE=release \
29 -DISP_VERSION=ISP8000NANO_V1802 \ 30 -DISP_VERSION=ISP8000NANO_V1802 \
30 -DPLATFORM=ARM64 \ 31 -DPLATFORM=ARM64 \
@@ -46,6 +47,10 @@ do_configure:prepend() {
46 export SDKTARGETSYSROOT=${STAGING_DIR_HOST} 47 export SDKTARGETSYSROOT=${STAGING_DIR_HOST}
47} 48}
48 49
50do_compile:prepend() {
51 ln -sf ${RECIPE_SYSROOT}/${libdir}/libtinyxml2.so.?.?.? ${RECIPE_SYSROOT}/${libdir}/libtinyxml2.so
52}
53
49do_install() { 54do_install() {
50 install -d ${D}/${libdir} 55 install -d ${D}/${libdir}
51 install -d ${D}/${includedir} 56 install -d ${D}/${includedir}
@@ -55,7 +60,6 @@ do_install() {
55 cp -r ${WORKDIR}/build/generated/release/bin/*2775* ${D}/opt/imx8-isp/bin 60 cp -r ${WORKDIR}/build/generated/release/bin/*2775* ${D}/opt/imx8-isp/bin
56 cp -r ${WORKDIR}/build/generated/release/bin/isp_media_server ${D}/opt/imx8-isp/bin 61 cp -r ${WORKDIR}/build/generated/release/bin/isp_media_server ${D}/opt/imx8-isp/bin
57 cp -r ${WORKDIR}/build/generated/release/bin/vvext ${D}/opt/imx8-isp/bin 62 cp -r ${WORKDIR}/build/generated/release/bin/vvext ${D}/opt/imx8-isp/bin
58 cp -r ${WORKDIR}/${BP}/dewarp/dewarp_config/ ${D}/opt/imx8-isp/bin
59 cp -r ${WORKDIR}/build/generated/release/lib/*.so* ${D}/${libdir} 63 cp -r ${WORKDIR}/build/generated/release/lib/*.so* ${D}/${libdir}
60 cp -r ${WORKDIR}/build/generated/release/include/* ${D}/${includedir} 64 cp -r ${WORKDIR}/build/generated/release/include/* ${D}/${includedir}
61 65
diff --git a/recipes-bsp/isp-imx/libtinyxml2-8_8.0.0.bb b/recipes-bsp/isp-imx/libtinyxml2-8_8.0.0.bb
new file mode 100644
index 00000000..363f7305
--- /dev/null
+++ b/recipes-bsp/isp-imx/libtinyxml2-8_8.0.0.bb
@@ -0,0 +1,22 @@
1SUMMARY = "TinyXML-2 is a simple, small, efficient, C++ XML parser that can be easily integrating into other programs"
2HOMEPAGE = "http://www.grinninglizard.com/tinyxml2/"
3SECTION = "libs"
4LICENSE = "Zlib"
5LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=135624eef03e1f1101b9ba9ac9b5fffd"
6
7SRC_URI = "git://github.com/leethomason/tinyxml2.git"
8
9SRCREV = "bf15233ad88390461f6ab0dbcf046cce643c5fcb"
10
11S = "${WORKDIR}/git"
12
13inherit cmake
14
15# make sure we don't provide files which are also present in the
16# current libtinyxml2 version's -dev package.
17do_install:append() {
18 rm -rf ${D}/${includedir}
19 rm -rf ${D}/${libdir}/cmake
20 rm -rf ${D}/${libdir}/libtinyxml2.so
21 rm -rf ${D}/${libdir}/pkgconfig
22}