build: allow define remote

Change-Id: I28f532995423ec30df6b2154db2e79726c3150f4