Enable native
target for cross-compiling -
by now it would have worked if you set CC via command line (e.g. `make CC=clang`, though it wouldn't work when CC is set in the platform makefile which includes `Makefile.native`.
This commit is contained in:
parent
6690c5f13e
commit
092c69639c
|
@ -3,12 +3,12 @@ CONTIKI_CPU_DIRS = . net
|
||||||
CONTIKI_SOURCEFILES += mtarch.c rtimer-arch.c elfloader-stub.c watchdog.c
|
CONTIKI_SOURCEFILES += mtarch.c rtimer-arch.c elfloader-stub.c watchdog.c
|
||||||
|
|
||||||
### Compiler definitions
|
### Compiler definitions
|
||||||
CC = gcc
|
CC ?= gcc
|
||||||
LD = gcc
|
LD ?= gcc
|
||||||
AS = as
|
AS ?= as
|
||||||
NM = nm
|
NM ?= nm
|
||||||
OBJCOPY = objcopy
|
OBJCOPY ?= objcopy
|
||||||
STRIP = strip
|
STRIP ?= strip
|
||||||
ifdef WERROR
|
ifdef WERROR
|
||||||
CFLAGSWERROR=-Werror -pedantic -std=c99 -Werror
|
CFLAGSWERROR=-Werror -pedantic -std=c99 -Werror
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue