Revision 2bb3bd89
Makefile | ||
---|---|---|
57 | 57 |
|
58 | 58 |
<module>: |
59 | 59 |
Builds the binary only for the specified module. |
60 |
Possible values for <module> are: |
|
61 |
- DiWheelDrive |
|
62 |
- PowerManagement |
|
63 |
- LightRing |
|
64 | 60 |
|
65 | 61 |
|
66 | 62 |
EXAMPLES: |
67 | 63 |
|
68 |
>$$ make DiWheelDrive |
|
69 |
This command will generate the binary file for the DiWheelDrive module. |
|
64 |
>$$ make DiWheelDrive_1-1 |
|
65 |
This command will generate the binary file for the DiWheelDrive module |
|
66 |
(version 1.1). |
|
70 | 67 |
|
71 |
>$$ make DiWheelDrive LightRing
|
|
68 |
>$$ make DiWheelDrive_1-1 LightRing_1-0
|
|
72 | 69 |
This command will generate the binary files for the two modules |
73 |
DiWheelDrive and LightRing.
|
|
70 |
DiWheelDrive (version 1.1) and LightRing (version 1.0).
|
|
74 | 71 |
|
75 | 72 |
>$$ make flash -j |
76 | 73 |
This command will first build all missing binary files and flash all |
... | ... | |
79 | 76 |
|
80 | 77 |
>$$ make clean && make all && make flash |
81 | 78 |
This command will first clean all thee projects. In a second step the |
82 |
binaries for al three modules are build from scratch. Finally all modules
|
|
83 |
are updated with the latest software.
|
|
79 |
binaries for all modules are build from scratch. Finally all modules are
|
|
80 |
updated with the latest software. |
|
84 | 81 |
The following command can be used as a shorter and faster version: |
85 | 82 |
>$$ make clean && make flash -j |
86 | 83 |
|
os/modules/flash.mk | ||
---|---|---|
28 | 28 |
|
29 | 29 |
include $(FLASH_DIR)../../bootloader/bootloader.mk |
30 | 30 |
|
31 |
#FLASH_MODULES = $(PROJECT) |
|
32 |
#FLASH_FILE = build/$(FLASH_MODULES).$(FLASHTOOL_EXT) |
|
33 |
|
|
34 |
# supported modules and according IDs |
|
35 |
#MODULES := DiWheelDrive_1-1 PowerManagement_1-1 LightRing_1-0 |
|
36 |
#DiWheelDrive_1-1 := $(shell printf "%u" 0x01000101) |
|
37 |
#PowerManagement_1-1 := $(shell printf "%u" 0x01010101) |
|
38 |
#LightRing_1-0 := $(shell printf "%u" 0x017F0100) |
|
39 |
|
|
40 | 31 |
# the files to flash |
41 | 32 |
ifdef PROJECT |
42 | 33 |
FLASH_MODULES = $(PROJECT) |
Also available in: Unified diff