From 3e22f2b65208874b2975d840045426bc57617f5b Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Mon, 2 Jan 2012 23:57:06 +0100 Subject: [PATCH] Some documentation for the Makefile system here --- firmware/README.building | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 firmware/README.building diff --git a/firmware/README.building b/firmware/README.building new file mode 100644 index 0000000..954edae --- /dev/null +++ b/firmware/README.building @@ -0,0 +1,32 @@ +make flags supported by this Makefile + +APP= +- builds "application" foo (check .c and the subdir in applications/) + +TABLE=NO +- removes jumptable from the firmware -- firmware will be smaller but will + not support l0dables + +USBSERIAL=YES +- builds with usb serial code instead of usb mass storage code. +NOTE: need to run "make clean" before changing this flag. + +Some examples: + +# build official firmware (firmware.bin) +make + +# build interactive RF test firmware (=serial.bin) +make APP=serial TABLE=NO USBSERIAL=YES clean all + +# build RF bridge firmware (e.g. game server r0ket) (=bridge.bin) +make APP=bridge TABLE=NO USBSERIAL=YES clean all + +# build one l0dable as a firmware (for standalone testing or simulat0r) +make APP=l0dable LAPP= (=l0dable.bin) + +# build all l0dables +make l0dables + +#build one l0dable +cd l0dables && make .c0d