build a new project - XradioTech/XR871-OLD GitHub Wiki
Configuration
- Edit "gcc.mk" to define GCC path to your own path, eg.
CC_DIR = ~/tools/gcc-arm-none-eabi-4_9-2015q2/bin
Building
Building commands
Note: Execute the following commands in Cygwin or Ubuntu terminal.
- Change working directory to your project's path, all the following commands are executed in this path
$ cd ${prj_gcc_path} # eg. cd project/wlan_demo/gcc
- Build libraries and copy them to "lib"
$ make lib
- Remove files in "src" generated by
make lib
$ make lib_clean
- Remove libraries in "lib" generated by
make lib
$ make lib_install_clean
- Build the executable binary
$ make
- Remove files generated by
make
$ make clean
- Create the image file
$ make image
- Remove files generated by
make image
$ make image_clean
- Generate the disassembled file
$ make objdump
- Build all in one command, the same as
make lib && make && make image
$ make build
- Clean all in one command, the same as
make image_clean clean lib_clean lib_install_clean
$ make build_clean
Building examples
- Building "wlan_demo" project
$ cd project/wlan_demo/gcc
$ make build_clean
$ make build
- Building bootloader
$ cd project/bootloader/gcc
$ make build_clean
$ make build