Change condition to use TARGET_BOARD_PLATFORM

Change-Id: I8d8b3874cf50867b9d1633acb62cc12f53b7b8ce
1 file changed