From: Jose Dapena Paz Date: Fri, 20 May 2022 15:30:53 +0000 (+0200) Subject: chromium: do not build with Swiftshader and Dawn. X-Git-Tag: 13.91.0~34 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=84c446d08eff4b519986946ac89b0f742aab1381;p=AGL%2Fmeta-agl-demo.git chromium: do not build with Swiftshader and Dawn. We want to use the native GL implementation in our targets. So there is no use for Swiftshader, and it increases building time. We also drop Dawn, though that will imply we do not support WebGPU. That should be reenabled later. Bug-AGL: SPEC-4391 Change-Id: I8dddf66d39f58db005f1fbddc0acc4008c8ce3ab Signed-off-by: Jose Dapena Paz --- diff --git a/recipes-wam/chromium/chromium.inc b/recipes-wam/chromium/chromium.inc index be8136049..d9500bcd5 100644 --- a/recipes-wam/chromium/chromium.inc +++ b/recipes-wam/chromium/chromium.inc @@ -99,6 +99,11 @@ GN_ARGS += "use_thin_lto=false" # let Yocto handle everything. GN_ARGS += "use_sysroot=false" +# Reduce the size of the build by removing swiftshader and dawn. +# This will effectively block support for WebGPU. +# TODO(jdapena): reenable WebGPU support +GN_ARGS += "use_swiftshader=false enable_swiftshader_vulkan=false use_dawn=false" + # ARM builds need special additional flags (see ${S}/build/config/arm.gni). # If we do not pass |arm_arch| and friends to GN, it will deduce a value that # will then conflict with TUNE_CCARGS and CC. @@ -216,7 +221,7 @@ install_webruntime() { # mv ${D}${CBE_DATA_PATH}/neva_locales ${D}${CBE_DATA_LOCALES_PATH} install -d ${D}${libdir} - install -d ${D}${libdir}/swiftshader + # install -d ${D}${libdir}/swiftshader install -d ${D}${includedir}/${BPN} install -d ${D}${CBE_DATA_PATH} install -d ${D}${CBE_DATA_LOCALES_PATH} @@ -224,7 +229,7 @@ install_webruntime() { # Install webos webview files ${S}/depot_tools/ninja ${PARALLEL_MAKE} -C ${OUT_DIR} webos/install/weboswebruntime - install -v -m 0644 ${OUT_DIR}/swiftshader/*.so ${D}${libdir}/swiftshader + # install -v -m 0644 ${OUT_DIR}/swiftshader/*.so ${D}${libdir}/swiftshader cp -R --no-dereference --preserve=mode,links -v ${OUT_DIR}/image/${includedir}/${BPN}/* ${D}${includedir}/${BPN}/ install -v -m 0644 ${OUT_DIR}/image/${libdir}/*.so ${D}${libdir} @@ -252,7 +257,6 @@ RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_gpu-libs}" FILES:${PN} = " \ ${libdir}/*.so \ - ${libdir}/swiftshader/*.so \ ${CBE_DATA_PATH}/* \ ${libdir}/${BPN}/*.so \ "