From 707070a811636bba729cf19d1ef23b0e2b60372c Mon Sep 17 00:00:00 2001 From: Michel Promonet Date: Sun, 20 Aug 2023 23:09:41 +0200 Subject: [PATCH] try to fix armv6 build --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6121c635..61e2903d 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,8 +67,10 @@ if (NOT EXISTS ${WEBRTCOBJS}/${CMAKE_STATIC_LIBRARY_PREFIX}webrtc${CMAKE_STATIC_ string(REPLACE "--enable-armv6t2" "--disable-armv6t2" filecontent "${filecontent}") string(REPLACE "--enable-thumb" "--disable-thumb" filecontent "${filecontent}") string(REPLACE "--extra-cflags=-march=armv7-a" "--extra-cflags=-march=armv6" filecontent "${filecontent}") - string(REPLACE "debian_bullseye_arm-sysroot" "debian_bullseye_armhf-sysroot" filecontent "${filecontent}") file(WRITE ${WEBRTCROOT}/src/third_party/ffmpeg/chromium/scripts/build_ffmpeg.py "${filecontent}") + file(READ ${WEBRTCROOT}/src/third_party/ffmpeg/chromium/scripts/robo_lib/config.py filecontent) + string(REPLACE "rodete" "" filecontent "${filecontent}") + file(WRITE ${WEBRTCROOT}/src/third_party/ffmpeg/chromium/scripts/robo_lib/config.py "${filecontent}") EXECUTE_PROCESS(WORKING_DIRECTORY ${WEBRTCROOT}/src/third_party/ffmpeg COMMAND python3 chromium/scripts/build_ffmpeg.py linux arm --config-only) EXECUTE_PROCESS(WORKING_DIRECTORY ${WEBRTCROOT}/src/third_party/ffmpeg COMMAND chromium/scripts/copy_config.sh) endif()