Rev 956 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 956 | Rev 961 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #-------------------------------------------------------------------- |
1 | #-------------------------------------------------------------------- |
2 | # MCU name |
2 | # MCU name |
3 | MCU = atmega644 |
3 | #MCU = atmega644 |
4 | #MCU = atmega644p |
4 | MCU = atmega644p |
5 | F_CPU = 20000000 |
5 | F_CPU = 20000000 |
6 | #------------------------------------------------------------------- |
6 | #------------------------------------------------------------------- |
7 | VERSION_MAJOR = 0 |
7 | VERSION_MAJOR = 0 |
8 | VERSION_MINOR = 70 |
8 | VERSION_MINOR = 70 |
9 | VERSION_INDEX = 3 |
9 | VERSION_INDEX = 3 |
Line 14... | Line 14... | ||
14 | # Use one of the extensions for a gps solution |
14 | # Use one of the extensions for a gps solution |
15 | #EXT = KILLAGREG |
15 | #EXT = KILLAGREG |
16 | EXT = NAVICTRL |
16 | EXT = NAVICTRL |
17 | #EXT = MK3MAG |
17 | #EXT = MK3MAG |
18 | #------------------------------------------------------------------- |
18 | #------------------------------------------------------------------- |
- | 19 | # get SVN revision |
|
- | 20 | REV := $(shell sh -c "cat .svn/entries | sed -n '4p'") |
|
Line 19... | Line 21... | ||
19 | 21 | ||
20 | ifeq ($(MCU), atmega644) |
22 | ifeq ($(MCU), atmega644) |
21 | FUSE_SETTINGS = -u -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
23 | FUSE_SETTINGS = -u -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
22 | #FUSE_SETTINGS = -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
24 | #FUSE_SETTINGS = -U lfuse:w:0xff:m -U hfuse:w:0xdf:m |
Line 43... | Line 45... | ||
43 | FORMAT = ihex |
45 | FORMAT = ihex |
Line 44... | Line 46... | ||
44 | 46 | ||
Line 45... | Line 47... | ||
45 | # Target file name (without extension). |
47 | # Target file name (without extension). |
46 | 48 | ||
47 | ifeq ($(VERSION_INDEX), 0) |
49 | ifeq ($(VERSION_INDEX), 0) |
48 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)a |
50 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)a_$(REV) |
49 | endif |
51 | endif |
50 | ifeq ($(VERSION_INDEX), 1) |
52 | ifeq ($(VERSION_INDEX), 1) |
51 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)b |
53 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)b_$(REV) |
52 | endif |
54 | endif |
53 | ifeq ($(VERSION_INDEX), 2) |
55 | ifeq ($(VERSION_INDEX), 2) |
54 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)c |
56 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)c_$(REV) |
55 | endif |
57 | endif |
56 | ifeq ($(VERSION_INDEX), 3) |
58 | ifeq ($(VERSION_INDEX), 3) |
57 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)d |
59 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)d_$(REV) |
58 | endif |
60 | endif |
59 | ifeq ($(VERSION_INDEX), 4) |
61 | ifeq ($(VERSION_INDEX), 4) |
60 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)e |
62 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)e_$(REV) |
61 | endif |
63 | endif |
62 | ifeq ($(VERSION_INDEX), 5) |
64 | ifeq ($(VERSION_INDEX), 5) |
63 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)f |
65 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)f_$(REV) |
64 | endif |
66 | endif |
65 | ifeq ($(VERSION_INDEX), 6) |
67 | ifeq ($(VERSION_INDEX), 6) |
66 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)g |
68 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)g_$(REV) |
67 | endif |
69 | endif |
68 | ifeq ($(VERSION_INDEX), 7) |
70 | ifeq ($(VERSION_INDEX), 7) |
69 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)h |
71 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)h_$(REV) |
70 | endif |
72 | endif |
71 | ifeq ($(VERSION_INDEX), 8) |
73 | ifeq ($(VERSION_INDEX), 8) |
72 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)i |
74 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)i_$(REV) |
73 | endif |
75 | endif |
74 | ifeq ($(VERSION_INDEX), 9) |
76 | ifeq ($(VERSION_INDEX), 9) |
75 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)j |
77 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)j_$(REV) |
76 | endif |
78 | endif |
77 | ifeq ($(VERSION_INDEX), 10) |
79 | ifeq ($(VERSION_INDEX), 10) |
Line 78... | Line 80... | ||
78 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)k |
80 | TARGET = Flight-Ctrl_$(HEX_NAME)_V$(VERSION_MAJOR)_$(VERSION_MINOR)k_$(REV) |
79 | endif |
81 | endif |