media: Only build when no variant is set

Change-Id: Ib8ded029cb53f4c9835f4bb353a06306d57a94f8