In order to successfully build PX4 for different boards you need to configure them first by running the `boardconfig` option with the command.