firmware: Fix to compile prebuild firmware only once

Change-Id: Ie97daab79c1982d8726024f7ee82be9df0d1a16a