Update platform_build to make miniperf-record conditional

Change-Id: I8e966c73390726fbaa2b914a265697228da84235