ms-iot / RPi-UEFI

Please file issues at: https://github.com/MicrosoftDocs/windows-iotcore-docs
Other
98 stars 36 forks source link

Can't Build for Release #20

Closed scout208 closed 4 years ago

scout208 commented 4 years ago

According to the readme, to build for release:

go to: %EDK_ROOT%\Conf\target.txt and locate the line with TARGET = DEBUG and change that to TARGET = RELEASE and rebuild. The output path DEBUG_ARMGCC part will change to RELEASE_ARMGCC.

However the current version of the repo doesn't have a conf\target.txt file. How are we supposed to build for Release now? Thanks.

christopherco commented 4 years ago

The EDK2 build system is a bit odd. Basically Conf\target.txt gets generated at build time from the template in BaseTools\Conf\target.template. This only happens if there isn't a target.txt file already present from a previous build. If there is a target.txt file already there, the build system will just use it as is.

So to build Release, I recommend one of two methods:

  1. You could edit the BaseTools\Conf\target.template file, delete the Conf\target.txt file if present, and build. This should force the generation of a new target.txt file with your Release setting.
  2. Or run the build once, edit Conf\target.txt with Release, and rebuild. The build system will use your current Conf\target.txt for the rebuild.
scout208 commented 4 years ago

@christopherco Okay, I built it once in Debug then saw the conf\target.txt got created and then I was able to change to release. Thanks.