diff options
| -rw-r--r-- | classes/imx-boot-container.bbclass | 7 | ||||
| -rw-r--r-- | conf/machine/imx8mq-evk.conf | 1 | ||||
| -rw-r--r-- | conf/machine/include/imx-base.inc | 5 | ||||
| -rw-r--r-- | conf/machine/include/imx8mm-evk.inc | 1 | ||||
| -rw-r--r-- | conf/machine/include/imx8mn-evk.inc | 1 | ||||
| -rw-r--r-- | conf/machine/include/imx8mp-evk.inc | 1 | ||||
| -rw-r--r-- | recipes-bsp/isp-imx/isp-imx/0001-isp-imx-drop-use-of-__TIME__-__DATE__.patch | 72 | ||||
| -rw-r--r-- | recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-NR_DEVICE_TREE_BASLER-variable.patch | 41 | ||||
| -rw-r--r-- | recipes-graphics/wayland/weston-init.bbappend | 4 |
9 files changed, 13 insertions, 120 deletions
diff --git a/classes/imx-boot-container.bbclass b/classes/imx-boot-container.bbclass index 19b433128..a3496e8b4 100644 --- a/classes/imx-boot-container.bbclass +++ b/classes/imx-boot-container.bbclass | |||
| @@ -33,16 +33,9 @@ do_resolve_and_populate_binaries[depends] += " \ | |||
| 33 | ${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'optee-os:do_deploy', '', d)} \ | 33 | ${@bb.utils.contains('MACHINE_FEATURES', 'optee', 'optee-os:do_deploy', '', d)} \ |
| 34 | " | 34 | " |
| 35 | 35 | ||
| 36 | # Append make flags to include ATF load address | ||
| 37 | EXTRA_OEMAKE += "ATF_LOAD_ADDR=${ATF_LOAD_ADDR}" | ||
| 38 | |||
| 39 | # Define an additional task that collects binary output from dependent packages | 36 | # Define an additional task that collects binary output from dependent packages |
| 40 | # and deploys them into the U-Boot build folder | 37 | # and deploys them into the U-Boot build folder |
| 41 | do_resolve_and_populate_binaries() { | 38 | do_resolve_and_populate_binaries() { |
| 42 | if [ ! -n "${ATF_LOAD_ADDR}" ]; then | ||
| 43 | bberror "ATF_LOAD_ADDR is undefined, result binary would be unusable!" | ||
| 44 | fi | ||
| 45 | |||
| 46 | if [ -n "${UBOOT_CONFIG}" ]; then | 39 | if [ -n "${UBOOT_CONFIG}" ]; then |
| 47 | for config in ${UBOOT_MACHINE}; do | 40 | for config in ${UBOOT_MACHINE}; do |
| 48 | i=$(expr $i + 1); | 41 | i=$(expr $i + 1); |
diff --git a/conf/machine/imx8mq-evk.conf b/conf/machine/imx8mq-evk.conf index e20d3f2a5..1e8146a87 100644 --- a/conf/machine/imx8mq-evk.conf +++ b/conf/machine/imx8mq-evk.conf | |||
| @@ -67,7 +67,6 @@ UBOOT_DTB_NAME = "imx8mq-evk.dtb" | |||
| 67 | 67 | ||
| 68 | # Set ATF platform name | 68 | # Set ATF platform name |
| 69 | ATF_PLATFORM = "imx8mq" | 69 | ATF_PLATFORM = "imx8mq" |
| 70 | ATF_LOAD_ADDR = "0x910000" | ||
| 71 | 70 | ||
| 72 | # Extra firmware package name, that is required to build boot container for fslc bsp | 71 | # Extra firmware package name, that is required to build boot container for fslc bsp |
| 73 | IMX_EXTRA_FIRMWARE = "firmware-imx-8m" | 72 | IMX_EXTRA_FIRMWARE = "firmware-imx-8m" |
diff --git a/conf/machine/include/imx-base.inc b/conf/machine/include/imx-base.inc index c32402daa..9a8d9ad2f 100644 --- a/conf/machine/include/imx-base.inc +++ b/conf/machine/include/imx-base.inc | |||
| @@ -165,10 +165,11 @@ MACHINEOVERRIDES_EXTENDER:mx8dxl:use-nxp-bsp = "imx-generic-bsp:imx-nxp-bsp:mx8- | |||
| 165 | ### Mainline BSP specific overrides | 165 | ### Mainline BSP specific overrides |
| 166 | ####### | 166 | ####### |
| 167 | 167 | ||
| 168 | MACHINEOVERRIDES_EXTENDER:mx27:use-mainline-bsp = "imx-generic-bsp:imx-mainline-bsp:mx27-generic-bsp:mx27-mainline-bsp" | 168 | MACHINEOVERRIDES_EXTENDER:mx23:use-mainline-bsp = "imx-generic-bsp:imx-mainline-bsp:mxs-generic-bsp:mxs-mainline-bsp:mx23-generic-bsp:mx23-mainline-bsp" |
| 169 | |||
| 170 | MACHINEOVERRIDES_EXTENDER:mx28:use-mainline-bsp = "imx-generic-bsp:imx-mainline-bsp:mxs-generic-bsp:mxs-mainline-bsp:mx28-generic-bsp:mx28-mainline-bsp" | 169 | MACHINEOVERRIDES_EXTENDER:mx28:use-mainline-bsp = "imx-generic-bsp:imx-mainline-bsp:mxs-generic-bsp:mxs-mainline-bsp:mx28-generic-bsp:mx28-mainline-bsp" |
| 171 | 170 | ||
| 171 | MACHINEOVERRIDES_EXTENDER:mx27:use-mainline-bsp = "imx-generic-bsp:imx-mainline-bsp:mx27-generic-bsp:mx27-mainline-bsp" | ||
| 172 | |||
| 172 | MACHINEOVERRIDES_EXTENDER:mx51:use-mainline-bsp = "imx-generic-bsp:imx-mainline-bsp:mx5-generic-bsp:mx5-mainline-bsp:mx51-generic-bsp:mx51-mainline-bsp" | 173 | MACHINEOVERRIDES_EXTENDER:mx51:use-mainline-bsp = "imx-generic-bsp:imx-mainline-bsp:mx5-generic-bsp:mx5-mainline-bsp:mx51-generic-bsp:mx51-mainline-bsp" |
| 173 | MACHINEOVERRIDES_EXTENDER:mx53:use-mainline-bsp = "imx-generic-bsp:imx-mainline-bsp:mx5-generic-bsp:mx5-mainline-bsp:mx53-generic-bsp:mx53-mainline-bsp" | 174 | MACHINEOVERRIDES_EXTENDER:mx53:use-mainline-bsp = "imx-generic-bsp:imx-mainline-bsp:mx5-generic-bsp:mx5-mainline-bsp:mx53-generic-bsp:mx53-mainline-bsp" |
| 174 | 175 | ||
diff --git a/conf/machine/include/imx8mm-evk.inc b/conf/machine/include/imx8mm-evk.inc index d6778caaa..eba4ac9f3 100644 --- a/conf/machine/include/imx8mm-evk.inc +++ b/conf/machine/include/imx8mm-evk.inc | |||
| @@ -39,7 +39,6 @@ UBOOT_CONFIG[mfgtool] = "${UBOOT_CONFIG_BASENAME}_defconfig" | |||
| 39 | SPL_BINARY = "spl/u-boot-spl.bin" | 39 | SPL_BINARY = "spl/u-boot-spl.bin" |
| 40 | 40 | ||
| 41 | ATF_PLATFORM = "imx8mm" | 41 | ATF_PLATFORM = "imx8mm" |
| 42 | ATF_LOAD_ADDR = "0x920000" | ||
| 43 | 42 | ||
| 44 | # Extra firmware package name, that is required to build boot container for fslc bsp | 43 | # Extra firmware package name, that is required to build boot container for fslc bsp |
| 45 | IMX_EXTRA_FIRMWARE = "firmware-imx-8m" | 44 | IMX_EXTRA_FIRMWARE = "firmware-imx-8m" |
diff --git a/conf/machine/include/imx8mn-evk.inc b/conf/machine/include/imx8mn-evk.inc index 0f886c007..1404abd2d 100644 --- a/conf/machine/include/imx8mn-evk.inc +++ b/conf/machine/include/imx8mn-evk.inc | |||
| @@ -40,7 +40,6 @@ UBOOT_CONFIG[mfgtool] = "${UBOOT_CONFIG_BASENAME}_defconfig" | |||
| 40 | SPL_BINARY = "spl/u-boot-spl.bin" | 40 | SPL_BINARY = "spl/u-boot-spl.bin" |
| 41 | 41 | ||
| 42 | ATF_PLATFORM = "imx8mn" | 42 | ATF_PLATFORM = "imx8mn" |
| 43 | ATF_LOAD_ADDR = "0x960000" | ||
| 44 | 43 | ||
| 45 | # Extra firmware package name, that is required to build boot container for fslc bsp | 44 | # Extra firmware package name, that is required to build boot container for fslc bsp |
| 46 | IMX_EXTRA_FIRMWARE = "firmware-imx-8m" | 45 | IMX_EXTRA_FIRMWARE = "firmware-imx-8m" |
diff --git a/conf/machine/include/imx8mp-evk.inc b/conf/machine/include/imx8mp-evk.inc index fccfe0aa4..3e98d3c17 100644 --- a/conf/machine/include/imx8mp-evk.inc +++ b/conf/machine/include/imx8mp-evk.inc | |||
| @@ -36,7 +36,6 @@ UBOOT_CONFIG[mfgtool] = "${UBOOT_CONFIG_BASENAME}_defconfig" | |||
| 36 | SPL_BINARY = "spl/u-boot-spl.bin" | 36 | SPL_BINARY = "spl/u-boot-spl.bin" |
| 37 | 37 | ||
| 38 | ATF_PLATFORM = "imx8mp" | 38 | ATF_PLATFORM = "imx8mp" |
| 39 | ATF_LOAD_ADDR = "0x970000" | ||
| 40 | 39 | ||
| 41 | # Extra firmware package name, that is required to build boot container for fslc bsp | 40 | # Extra firmware package name, that is required to build boot container for fslc bsp |
| 42 | IMX_EXTRA_FIRMWARE = "firmware-imx-8m" | 41 | IMX_EXTRA_FIRMWARE = "firmware-imx-8m" |
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 deleted file mode 100644 index c3ee088fc..000000000 --- a/recipes-bsp/isp-imx/isp-imx/0001-isp-imx-drop-use-of-__TIME__-__DATE__.patch +++ /dev/null | |||
| @@ -1,72 +0,0 @@ | |||
| 1 | From ea5ce303fa5bc7b6a17c522b4caf49d349adb12b Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Max Krummenacher <max.krummenacher@toradex.com> | ||
| 3 | Date: Sat, 30 Oct 2021 17:26:42 +0200 | ||
| 4 | Subject: [PATCH] isp-imx: drop use of __TIME__, __DATE__ | ||
| 5 | |||
| 6 | With reproducible build enabled the compiler is configured to throw | ||
| 7 | an error if __TIME__, __DATE__ preprocessor macros are used. | ||
| 8 | |||
| 9 | | isp-imx-4.2.2.11.0/mediacontrol/daemon/main_v4l2.cpp:99:44: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time] | ||
| 10 | | 99 | std::cout << "Build Time : "<<__DATE__<<", "<<__TIME__<<std::endl; | ||
| 11 | | | ^~~~~~~~ | ||
| 12 | |||
| 13 | Fix this by replacing __DATE__, __TIME__ with BUILD_DATE and setting | ||
| 14 | BUILD_DATE from CMakeLists.txt to either SOURCE_DATE_EPOCH if present | ||
| 15 | or the local time otherwise. | ||
| 16 | |||
| 17 | Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> | ||
| 18 | --- | ||
| 19 | mediacontrol/CMakeLists.txt | 3 +++ | ||
| 20 | mediacontrol/daemon/main_v4l2.cpp | 8 ++++---- | ||
| 21 | 2 files changed, 7 insertions(+), 4 deletions(-) | ||
| 22 | |||
| 23 | diff --git a/mediacontrol/CMakeLists.txt b/mediacontrol/CMakeLists.txt | ||
| 24 | index 5849c163e..8a8e1a4a0 100755 | ||
| 25 | --- a/mediacontrol/CMakeLists.txt | ||
| 26 | +++ b/mediacontrol/CMakeLists.txt | ||
| 27 | @@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.1.0) | ||
| 28 | |||
| 29 | project(ISP_MEDIA_CONTROL) | ||
| 30 | |||
| 31 | +string(TIMESTAMP BUILD_DATE "%b %d %Y" UTC) | ||
| 32 | +add_compile_definitions(BUILD_DATE="${BUILD_DATE}") | ||
| 33 | + | ||
| 34 | if( NOT DEFINED APPSHELL_TOP_COMPILE) | ||
| 35 | if(DEFINED PLATFORM) | ||
| 36 | if(${PLATFORM} STREQUAL ARM64) | ||
| 37 | diff --git a/mediacontrol/daemon/main_v4l2.cpp b/mediacontrol/daemon/main_v4l2.cpp | ||
| 38 | index d3d1c2423..dd0514358 100644 | ||
| 39 | --- a/mediacontrol/daemon/main_v4l2.cpp | ||
| 40 | +++ b/mediacontrol/daemon/main_v4l2.cpp | ||
| 41 | @@ -105,7 +105,7 @@ int main(int argc, char* argv[]) { | ||
| 42 | if(!(string2Version.find(argv[1])==string2Version.end())){ | ||
| 43 | std::cout << "Version : "<<MEDIA_SERVER_VERSION<<std::endl; | ||
| 44 | #ifndef ANDROID | ||
| 45 | - std::cout << "Build Time : "<<__DATE__<<", "<<__TIME__<<std::endl; | ||
| 46 | + std::cout << "Build Time : "<<BUILD_DATE<<std::endl; | ||
| 47 | #endif | ||
| 48 | return 0; | ||
| 49 | } | ||
| 50 | @@ -116,8 +116,8 @@ int main(int argc, char* argv[]) { | ||
| 51 | { | ||
| 52 | ALOGI("******************************************************************"); | ||
| 53 | #ifndef ANDROID | ||
| 54 | - ALOGI("VIV ISP Media Control Framework V%s (%s, %s)", | ||
| 55 | - MEDIA_SERVER_VERSION, __DATE__, __TIME__); | ||
| 56 | + ALOGI("VIV ISP Media Control Framework V%s (%s)", | ||
| 57 | + MEDIA_SERVER_VERSION, BUILD_DATE); | ||
| 58 | #else | ||
| 59 | ALOGI("VIV ISP Media Control Framework V%s", MEDIA_SERVER_VERSION); | ||
| 60 | #endif | ||
| 61 | @@ -138,7 +138,7 @@ int main(int argc, char* argv[]) { | ||
| 62 | if(!(string2Version.find(argv[i])==string2Version.end())){ | ||
| 63 | std::cout << "Version : "<<MEDIA_SERVER_VERSION<<std::endl; | ||
| 64 | #ifndef ANDROID | ||
| 65 | - std::cout << "Build Time : "<<__DATE__<<", "<<__TIME__<<std::endl; | ||
| 66 | + std::cout << "Build Time : "<<BUILD_DATE<<std::endl; | ||
| 67 | #endif | ||
| 68 | i++; | ||
| 69 | continue; | ||
| 70 | -- | ||
| 71 | 2.20.1 | ||
| 72 | |||
diff --git a/recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-NR_DEVICE_TREE_BASLER-variable.patch b/recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-NR_DEVICE_TREE_BASLER-variable.patch index 950098cd7..bfea33a7b 100644 --- a/recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-NR_DEVICE_TREE_BASLER-variable.patch +++ b/recipes-bsp/isp-imx/isp-imx/0001-start_isp.sh-fix-NR_DEVICE_TREE_BASLER-variable.patch | |||
| @@ -1,17 +1,17 @@ | |||
| 1 | From 9c65e20b82cfd9e82b849b3140eec7b8c18922dc Mon Sep 17 00:00:00 2001 | 1 | From a48c605b9f3860ee7abaca1a37add444a1b4001a Mon Sep 17 00:00:00 2001 |
| 2 | From: Chris Dimich <Chris.Dimich@boundarydevices.com> | 2 | From: Chris Dimich <chris.dimich@boundarydevices.com> |
| 3 | Date: Mon, 13 Sep 2021 17:56:02 -0700 | 3 | Date: Tue, 8 Mar 2022 14:45:28 -0800 |
| 4 | Subject: [PATCH 1/1] start_isp.sh: fix NR_DEVICE_TREE_BASLER variable | 4 | Subject: [PATCH 1/1] start_isp.sh: fix NR_DEVICE_TREE_BASLER variable |
| 5 | 5 | ||
| 6 | Also remove uneeded -lm option from run.sh script. | 6 | The NR_DEVICE_TREE_BASLER variable has the wrong path. |
| 7 | 7 | ||
| 8 | Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com> | 8 | Signed-off-by: Chris Dimich <chris.dimich@boundarydevices.com> |
| 9 | --- | 9 | --- |
| 10 | imx/start_isp.sh | 8 ++++---- | 10 | imx/start_isp.sh | 2 +- |
| 11 | 1 file changed, 4 insertions(+), 4 deletions(-) | 11 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 12 | 12 | ||
| 13 | diff --git a/imx/start_isp.sh b/imx/start_isp.sh | 13 | diff --git a/imx/start_isp.sh b/imx/start_isp.sh |
| 14 | index 6daabc59c..250226935 100755 | 14 | index 6daabc59c..8a07acfed 100755 |
| 15 | --- a/imx/start_isp.sh | 15 | --- a/imx/start_isp.sh |
| 16 | +++ b/imx/start_isp.sh | 16 | +++ b/imx/start_isp.sh |
| 17 | @@ -7,7 +7,7 @@ | 17 | @@ -7,7 +7,7 @@ |
| @@ -23,31 +23,6 @@ index 6daabc59c..250226935 100755 | |||
| 23 | NR_DEVICE_TREE_OV5640=$(grep ov5640 /sys/firmware/devicetree/base/soc@0/*/i2c@*/*/compatible -l | wc -l 2> /dev/null) | 23 | NR_DEVICE_TREE_OV5640=$(grep ov5640 /sys/firmware/devicetree/base/soc@0/*/i2c@*/*/compatible -l | wc -l 2> /dev/null) |
| 24 | 24 | ||
| 25 | # check if the basler device has been enabled in the device tree | 25 | # check if the basler device has been enabled in the device tree |
| 26 | @@ -21,13 +21,13 @@ if [ $NR_DEVICE_TREE_BASLER -eq 1 ]; then | ||
| 27 | |||
| 28 | # Default configuration for Basler daA3840-30mc: basler_4k | ||
| 29 | # Available configurations: basler_4k, basler_1080p60, basler_4khdr, basler_1080p60hdr | ||
| 30 | - exec ./run.sh -c basler_4k -lm | ||
| 31 | + exec ./run.sh -c basler_4k | ||
| 32 | |||
| 33 | elif [ $NR_DEVICE_TREE_OV5640 -eq 1 ]; then | ||
| 34 | |||
| 35 | # Default configuration for Basler daA3840-30mc: basler_1080p60 | ||
| 36 | # Available configurations: basler_1080p60, basler_1080p60hdr | ||
| 37 | - exec ./run.sh -c basler_1080p60 -lm | ||
| 38 | + exec ./run.sh -c basler_1080p60 | ||
| 39 | |||
| 40 | fi | ||
| 41 | |||
| 42 | @@ -38,7 +38,7 @@ elif [ $NR_DEVICE_TREE_BASLER -eq 2 ]; then | ||
| 43 | cd $RUNTIME_DIR | ||
| 44 | # Default configuration for Basler daA3840-30mc: dual_basler_1080p60 | ||
| 45 | # Available configurations: dual_basler_1080p60, dual_basler_1080p60hdr, dual_basler_1080p25hdr | ||
| 46 | - exec ./run.sh -c dual_basler_1080p60 -lm | ||
| 47 | + exec ./run.sh -c dual_basler_1080p60 | ||
| 48 | |||
| 49 | else | ||
| 50 | # no device tree found exit with code no device or address | ||
| 51 | -- | 26 | -- |
| 52 | 2.31.1 | 27 | 2.31.1 |
| 53 | 28 | ||
diff --git a/recipes-graphics/wayland/weston-init.bbappend b/recipes-graphics/wayland/weston-init.bbappend index 7aceb6b17..6a2aabec4 100644 --- a/recipes-graphics/wayland/weston-init.bbappend +++ b/recipes-graphics/wayland/weston-init.bbappend | |||
| @@ -28,8 +28,8 @@ INI_UNCOMMENT_ASSIGNMENTS:append:mx8mq-nxp-bsp = " \ | |||
| 28 | # Ideally, this should be seamless and Vivante ought to handle it internally and take the fastest | 28 | # Ideally, this should be seamless and Vivante ought to handle it internally and take the fastest |
| 29 | # rendering code. | 29 | # rendering code. |
| 30 | INI_UNCOMMENT_USE_G2D:imxgpu2d ?= "use-g2d=1" | 30 | INI_UNCOMMENT_USE_G2D:imxgpu2d ?= "use-g2d=1" |
| 31 | INI_UNCOMMENT_USE_G2D:mx8qm-nxp-bsp = "" | 31 | INI_UNCOMMENT_USE_G2D:imxgpu2d:mx8qm-nxp-bsp = "" |
| 32 | INI_UNCOMMENT_USE_G2D:mx8qxp-nxp-bsp = "" | 32 | INI_UNCOMMENT_USE_G2D:imxgpu2d:mx8qxp-nxp-bsp = "" |
| 33 | INI_UNCOMMENT_ASSIGNMENTS:append:imxgpu2d = " \ | 33 | INI_UNCOMMENT_ASSIGNMENTS:append:imxgpu2d = " \ |
| 34 | ${INI_UNCOMMENT_USE_G2D} \ | 34 | ${INI_UNCOMMENT_USE_G2D} \ |
| 35 | " | 35 | " |
