Rev 7 | Rev 10 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7 | Rev 9 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | 36 | ||
37 | SHELL = /bin/bash |
37 | SHELL = /bin/bash |
38 | TARGET = avr32 |
38 | TARGET = avr32 |
39 | 39 | ||
40 | TODAY = $(shell date "+%Y%m%d") |
40 | TODAY = $(shell date "+%Y%m%d") |
41 | GIT_REV = $(shell git rev-parse --verify HEAD --short) |
41 | GIT_REV = $(shell git rev-parse --verify HEAD --short 2> /dev/null) |
- | 42 | SVN_REV = $(shell head -1 ReleaseNotes 2> /dev/null | cut -f 1 -d " ") |
|
42 | 43 | ||
43 | ifeq ($(strip $(GIT_REV)),) |
44 | ifeq ($(strip $(GIT_REV)),) |
- | 45 | ifeq ($(strip $(SVN_REV)),) |
|
44 | PREFIX ?= $(HOME)/avr32-tools-$(TODAY) |
46 | PREFIX ?= $(HOME)/avr32-tools-$(TODAY) |
- | 47 | TOOL_REV = $(TODAY) |
|
- | 48 | else |
|
- | 49 | PREFIX ?= $(HOME)/avr32-tools-$(SVN_REV) |
|
- | 50 | TOOL_REV = $(SVN_REV) |
|
- | 51 | BUG_URL = jasmin@anw.at |
|
- | 52 | endif |
|
45 | else |
53 | else |
46 | PREFIX ?= $(HOME)/avr32-tools-$(GIT_REV) |
54 | PREFIX ?= $(HOME)/avr32-tools-$(GIT_REV) |
- | 55 | TOOL_REV = $(GIT_REV) |
|
47 | endif |
56 | endif |
48 | 57 | ||
49 | ifeq ($(UNAME), Linux) |
58 | ifeq ($(UNAME), Linux) |
50 | PROCS ?= $(shell grep -c ^processor /proc/cpuinfo) |
59 | PROCS ?= $(shell grep -c ^processor /proc/cpuinfo) |
51 | else ifeq ($(UNAME), Darwin) |
60 | else ifeq ($(UNAME), Darwin) |
Line 57... | Line 66... | ||
57 | SUPP_PREFIX = $(CURDIR)/supp |
66 | SUPP_PREFIX = $(CURDIR)/supp |
58 | PATH := ${PREFIX}/bin:${SUPP_PREFIX}/bin:${PATH} |
67 | PATH := ${PREFIX}/bin:${SUPP_PREFIX}/bin:${PATH} |
59 | AUTOCONF = $(SUPP_PREFIX)/bin/autoconf |
68 | AUTOCONF = $(SUPP_PREFIX)/bin/autoconf |
60 | AUTOMAKE = $(SUPP_PREFIX)/bin/automake |
69 | AUTOMAKE = $(SUPP_PREFIX)/bin/automake |
61 | 70 | ||
- | 71 | ifeq ($(strip $(BUG_URL)),) |
|
62 | BUG_URL = https://github.com/jsnyder/avr32-toolchain |
72 | BUG_URL = https://github.com/jsnyder/avr32-toolchain |
- | 73 | endif |
|
63 | PKG_VERSION = "AVR 32 bit GNU Toolchain-$(AVR_PATCH_REV)-$(GIT_REV)" |
74 | PKG_VERSION = "AVR 32 bit GNU Toolchain-$(AVR_PATCH_REV)-$(TOOL_REV)" |
64 | 75 | ||
65 | 76 | ||
66 | #### PRIMARY TOOLCHAIN URLS ##### |
77 | #### PRIMARY TOOLCHAIN URLS ##### |
67 | 78 | ||
68 | GCC_ARCHIVE = gcc-$(GCC_VERSION).tar.bz2 |
79 | GCC_ARCHIVE = gcc-$(GCC_VERSION).tar.bz2 |
Line 125... | Line 136... | ||
125 | endif |
136 | endif |
126 | 137 | ||
127 | 138 | ||
128 | .PHONY: tst |
139 | .PHONY: tst |
129 | tst: |
140 | tst: |
130 | @echo $(PREFIX) |
141 | @echo "PREFIX=$(PREFIX)" |
- | 142 | @echo "PKG_VERSION=$(PKG_VERSION)" |
|
- | 143 | @echo "BUG_URL=$(BUG_URL)" |
|
131 | 144 | ||
132 | .PHONY: install-note |
145 | .PHONY: install-note |
133 | install-note: install-tools |
146 | install-note: install-tools |
134 | @echo |
147 | @echo |
135 | @echo ====== INSTALLATION NOTE ====== |
148 | @echo ====== INSTALLATION NOTE ====== |
Line 193... | Line 206... | ||
193 | .PHONY: clean-autoconf |
206 | .PHONY: clean-autoconf |
194 | clean-autoconf: |
207 | clean-autoconf: |
195 | rm -rf build/autoconf stamps/*-autoconf autoconf-* |
208 | rm -rf build/autoconf stamps/*-autoconf autoconf-* |
196 | 209 | ||
197 | .PHONY: realclean-autoconf |
210 | .PHONY: realclean-autoconf |
198 | realclean-gdb: clean-autoconf |
211 | realclean-autoconf: clean-autoconf |
199 | rm downloads/$(AUTOCONF_ARCHIVE) |
212 | rm downloads/$(AUTOCONF_ARCHIVE) |
200 | 213 | ||
201 | 214 | ||
202 | ############ SUPP: AUTOMAKE ############ |
215 | ############ SUPP: AUTOMAKE ############ |
203 | 216 |