Changes

Target Firmware Build System

858 bytes added, 15:53, 21 March 2017
no edit summary
Note there is two build systems - Release 3.3.0 and later use the newer build system. The old build system is described later, and should not be used for current development.
The build system generally has the following important folders/Makefiles:
application-specific-folder/Makefile
application-specific-folder/Makefile.platform [OPTIONAL]
crypto/Makefile.crypto
hal/Makefile.hal
Makefile.inc
To build an application, you run make in that application's folder. You can either specify the platform to build for at the command prompt, or you can save it to a specific file. For example to build simpleserial-aes for the XMEGA Target (used in CW-Lite):
$ cd chipwhisperer/hardware/victims/firmware/simpleserial-aes
$ make PLATFORM=CW303
= Old Build System =
The old build system could only work with AVR/XMEGA targets. It had the following files defining what was built:
application-folder/Makefile
hal/PLATFORM_INCLUDE.mk
   = Old Build System = The old build system could only work with AVR/XMEGA targetsWhere the application Makefile (e. It had g., simpleserial-aes/Makefile) described both the following build commands to use and what files:to build. The PLATFORM_INCLUDE.mk was only used to pull in hardware-specific files (the HAL).
Approved_users, bureaucrat, administrator
1,956
edits