Skip to content

Android.mk: Rename libyuv->libyuv_chromium, remove unused targets

Mattijs Korpershoek requested to merge mkorpershoek/ti-android-12 into ti-android-12

Original source: https://chromium.googlesource.com/libyuv/libyuv/+/refs/heads/main

AOSP has some old and modified version of libyuv library, which can't be used with mainline libcamera.

To use libcamera in AOSP both AOSP libyuv and Chromium libyuv needs to coexist in a single build.

AOSP libyuv does not implement NV12Scale() so we can't use it for building libcamera.

CrOS libyuv does not build in AOSP because of:

error: external/webrtc/Android.bp:336:1: dependency "libyuv" of "webrtc_modules__module_api" missing variant: os:linux_glibc,arch:x86_64,link:static available variants:

Signer-off-by: Roman Stratiienko r.stratiienko@gmail.com [mkorpershoek: added more justifications] Signed-off-by: Mattijs Korpershoek mkorpershoek@baylibre.com

This is based on Glodroid's work done here: https://github.com/GloDroid/glodroid_forks/commit/0e419c1b22c4f8827205ffcd8e53e3bd8edd8d34

/cc @glaroque

Edited by Mattijs Korpershoek

Merge request reports