Merge "build: allow MEDIA_PERFORMANCE_CLASS for R" into sc-dev