build: prevent warnings about missing opticharger

Change-Id: I58d8c8805cfb00672ead98e7f3a850942e76ef76