René Kijewski
2f66319a3a
make: OSX: don't fail for empty .a archives
...
Fixes issue #1333 .
9 years ago
René Kijewski
d19fc447ed
make: make DIRS usable for applications
9 years ago
René Kijewski
35e74ad725
make: refactor make system (parallelism, deduplication)
...
Almost everything was build sequentially in RIOT, because we employed
explicit for-loops to build directories (DIRS). This PR makes our make
system use normal dependencies to build directories.
All our compiling rules were duplicated, once for the application, once
for modules. This PR makes the application a normal module, removing
this duplication.
9 years ago
René Kijewski
35d024fff0
Merge pull request #1340 from Kijewski/evaluate-git-sha-once
...
make: evaluate the Git SHA only once
9 years ago
René Kijewski
1d34522703
make: evaluate the Git SHA only once
9 years ago
Ludwig Ortmann
de4677eb60
make: s/PROJDEPS/APPDEPS/
...
fixes https://github.com/RIOT-OS/RIOT/issues/1284
9 years ago
Oleg Hahm
bd94bd22f6
Merge pull request #1209 from Kijewski/buildinfo
...
make: add comprehensive `buildinfo` list
9 years ago
Thomas Eichinger
1e983c9670
s/PROJECT/APPLICATION/g
...
fixes #548
9 years ago
René Kijewski
054f9fd026
make: fix clean together with TLSF
9 years ago
René Kijewski
4198b7518c
make: add `BOARD_INSUFFICIENT_RAM` blacklisting
...
Currently most blacklistings for examples and tests are done because the
board provides too little RAM or ROM. Besides of the actual linking all
the compiling should nevertheless work just fine.
This PR adds the variable `BOARD_INSUFFICIENT_RAM` to tell the
`buildtest` to compile the code for a board, but omit the linking step.
9 years ago
René Kijewski
27ae094413
make: remove clutter
...
Remove some outdated example code.
9 years ago
René Kijewski
9f40d019e3
Merge pull request #1201 from Kijewski/exclusive-make-clean
...
make: make clean usable together with `-j`
9 years ago
René Kijewski
5cb1d03ef4
make: add comprehensive `buildinfo` list
...
Sometimes it is difficult to track down build errors for boards that you
are unfamiliar with.
This change adds `make buildinfo` that prints out all the relevant build
information for the selected board and project:
```
PROJECT: default
BOARD: msba2
CPU: lpc2387
MCU: lpc2387
RIOTBASE: /home/kijewski/RIOT/RIOT
RIOTBOARD: /home/kijewski/RIOT/RIOT/boards
RIOTCPU: /home/kijewski/RIOT/RIOT/cpu
DEFAULT_MODULE: auto_init core cpu sys
DISABLE_MODULE:
USEMODULE: arm_common cc110x_ng cc110x_spi config defaulttransceiver gpioint lib lpc_common ltc4150 mci net_help posix protocol_multiplex ps random rtc shell shell_commands sht11 timex transceiver uart0 vtimer
ELFFILE: /home/kijewski/RIOT/RIOT/examples/default/bin/msba2/default.elf
HEXFILE: /home/kijewski/RIOT/RIOT/examples/default/bin/msba2/default.hex
CC: arm-none-eabi-gcc
CFLAGSS:
-DBOARD_MSBA2
-DCPU_LPC2387
-DMODULE_ARM_COMMON
-DMODULE_AUTO_INIT
-DMODULE_CC110X_NG
-DMODULE_CC110X_SPI
-DMODULE_CONFIG
-DMODULE_CORE
-DMODULE_CPU
-DMODULE_DEFAULTTRANSCEIVER
-DMODULE_GPIOINT
-DMODULE_LIB
-DMODULE_LPC_COMMON
-DMODULE_LTC4150
-DMODULE_MCI
-DMODULE_NET_HELP
-DMODULE_POSIX
-DMODULE_PROTOCOL_MULTIPLEX
-DMODULE_PS
-DMODULE_RANDOM
-DMODULE_RTC
-DMODULE_SHELL
-DMODULE_SHELL_COMMANDS
-DMODULE_SHT11
-DMODULE_SYS
-DMODULE_TIMEX
-DMODULE_TRANSCEIVER
-DMODULE_UART0
-DMODULE_VTIMER
-O2
-Wall
-Wstrict-prototypes
-mcpu=arm7tdmi-s
-gdwarf-2
-std=gnu99
-fno-delete-null-pointer-checks
-Wstrict-prototypes
-Werror=strict-prototypes
-Wold-style-definition
-Werror=old-style-definition
LINK: arm-none-eabi-gcc
LINKFLAGS:
-gdwarf-2
-mcpu=arm7tdmi-s
-static
-lgcc
-nostartfiles
-T/home/kijewski/RIOT/RIOT/cpu/lpc2387/linkerscript.x
OBJCOPY: arm-none-eabi-objcopy
OFLAGS: -O ihex
FLASHER: lpc2k_pgm
FFLAGS: /dev/ttyUSB0 /home/kijewski/RIOT/RIOT/examples/default/bin/msba2/default.hex
TERMPROG: /home/kijewski/RIOT/RIOT/dist/tools/pyterm/pyterm.py
PORT: /dev/ttyUSB0
DEBUGGER:
DEBUGGER_FLAGS:
MAKEFILE_LIST:
/home/kijewski/RIOT/RIOT/examples/default/Makefile
/home/kijewski/RIOT/RIOT/Makefile.include
/home/kijewski/RIOT/RIOT/Makefile.modules
/home/kijewski/RIOT/RIOT/Makefile.pseudomodules
/home/kijewski/RIOT/RIOT/Makefile.defaultmodules
/home/kijewski/RIOT/RIOT/boards/msba2/Makefile.include
/home/kijewski/RIOT/RIOT/boards/msba2-common/Makefile.include
/home/kijewski/RIOT/RIOT/boards/msba2-common/Makefile.dep
/home/kijewski/RIOT/RIOT/cpu/lpc2387/Makefile.include
/home/kijewski/RIOT/RIOT/cpu/arm_common/Makefile.include
/home/kijewski/RIOT/RIOT/cpu/lpc_common/Makefile.include
/home/kijewski/RIOT/RIOT/Makefile.dep
/home/kijewski/RIOT/RIOT/Makefile.cflags
/home/kijewski/RIOT/RIOT/sys/Makefile.include
/home/kijewski/RIOT/RIOT/drivers/Makefile.include
/home/kijewski/RIOT/RIOT/Makefile.buildtests
```
9 years ago
René Kijewski
3d6c7008e5
make: make clean usable together with `-j`
9 years ago
René Kijewski
66a3d7da77
make: fix #1197
...
Partial revert of 85b7eca19e
Fixes #1197 .
9 years ago
René Kijewski
e189064171
make: print error if make was executed in the root
...
Fixes #1104 , alternative to #1178 .
9 years ago
Martine Lenders
47373a9e4a
Merge pull request #1098 from authmillenon/make-addon
...
make: Make make more flexible
9 years ago
René Kijewski
fe8710ce05
make: put buildtest goals into an own file
...
`Makefile.include` is too long as is.
9 years ago
Martin Lenders
8fd09c575c
Make directory creation in object compilation more makey
9 years ago
Martin Lenders
85b7eca19e
Move .elf file to it's own target
9 years ago
Martin Lenders
c710062f86
Introduce macro to define files that should be deleted on make clean
9 years ago
René Kijewski
073bdfe9ec
make: add own file for CFLAGS feature tests
9 years ago
René Kijewski
f02e5b97e2
make: show diffence in buildsizes for two folders
9 years ago
René Kijewski
bb3b3bffa7
make: add maketarget to to show the biggest obj files
9 years ago
René Kijewski
f2e73863cb
make: comprehensive list of the boards' filesizes
9 years ago
René Kijewski
542a2e5d9d
Merge pull request #995 from Kijewski/issue-993
...
Make: exterminate 'clean' buildtarget clutter
9 years ago
René Kijewski
300d6b3e35
Make: exterminate 'clean' buildtarget
...
Closes #993 .
We do not need to descend into the modules to know what to do on
`make clean BOARD=blub`. We can just invoke `rm -rf bin/blub`.
This PR only keeps the descending into the USEPKGs, since they might
want to delete cached/downloaded/extracted data.
9 years ago
René Kijewski
49c3fd666c
Make: fix linebreaks in buildtest
9 years ago
Oleg Hahm
4fd851bccf
Merge pull request #855 from authmillenon/board_macro
...
make: Fix BOARD and CPU macros
9 years ago
René Kijewski
e740fbc800
make: Add DEFAULT_MODULE and DISABLE_MODULE
...
Closes #926
9 years ago
René Kijewski
de29e4184c
Add include paths automatocally for USEMODULES
...
Application developers use `$(USEMODULES)` in their Makefiles to have
the relevant functionally automagically added to their apps. This even
does basic dependency tracking by means of `Makefile.dep`.
But an important thing is missing: the automatic adding of include
paths. This is inconvenient, error prone, and will hinder the RIOT core
developers in future to change folder structures.
9 years ago
Ludwig Ortmann
f1dafdb062
include warnings
...
addresses https://github.com/RIOT-OS/RIOT/pull/883#issuecomment-37833467
9 years ago
Ludwig Ortmann
91cc4a2771
make/buildtest: print errors
...
Display all stderr output but suppress warnings.
implements https://github.com/RIOT-OS/RIOT/issues/835
9 years ago
Ludwig Ortmann
9b61d95545
make: don't ignore failures in for loops
...
Add `|| exit 1` to all constructs like `@for i in $(DIRS) ; do "$(MAKE)" -C $$i ; done ;`, so that compilation stops on the first error.
9 years ago
Martin Lenders
c26f2c9d70
Fix BOARD macro
9 years ago
Martin Lenders
e7c3282886
Replace '-' with '_' in BOARD and CPU_… macros
9 years ago
René Kijewski
f58369ff91
Don't build PKGs twice
9 years ago
Oleg Hahm
c1bcfb3516
Merge pull request #722 from Kijewski/fixup-664
...
First apply board includes, then det. CC caps
9 years ago
Christian Mehlis
cb9c5d00de
repace project by application in documentation
9 years ago
René Kijewski
d7834ecbf8
First apply board includes, then det. CC caps
...
In #664 I added a test that determines if the supplied compiler
understands the `-fno-delete-null-pointer-checks` flag. The problem is
that the `$(CC)` supplied on command line or in the application's
Makefile is used, but not the one the `$(BOARD)`'s Makefile sets.
That problem was overlooked as all the boards use GCC, and GCC happens
to know the flag. But if some future board does not use GCC, then the
wrong order of the checks could pose a problem.
9 years ago
Ludwig Ortmann
d3901529c6
use filter instead of findstring in BOARD_BLACKLIST checking
9 years ago
Martin Lenders
b41e36de3a
Merge pull request #535 from authmillenon/board-blacklists-whitelists
...
Introduce board blacklists and board whitelists
9 years ago
René Kijewski
4b012dfa54
Merge pull request #576 from Kijewski/usepkg
...
Add USEPKG variable for Makefiles
9 years ago
René Kijewski
7f4fb027db
Merge pull request #692 from Kijewski/std-flag
...
Do not mandate input language
9 years ago
Martin Lenders
e6d5af4b8f
Introduce board blacklists and board whitelists
9 years ago
René Kijewski
caea069bcf
Do not mandate input language
...
An application might want to use C11 features. The user would assume
that setting `CFLAGS=-std=gnu11` in the Makefile would work. It does not
since the board's Makefile.include shadows the `-std` flag.
This patch removes the `-std=gnu99` from the various Makefile.includes,
and sets the flag in the common Makefile.include of RIOT instead.
If an `-std` flag was provided by an earlier Makefile (the application,
the board, or the CPU [whilst only the former one should]), then no
additional flag is set. It is first tested if the supplied compiler
understands `-std=gnu99`, then `-std=c99`.
9 years ago
Martin Lenders
378b85bfd0
Always use absolute paths with configurable paths variables
9 years ago
René Kijewski
84cffaa0a0
Use include path convention for PKGs
...
Packages have to define a Makefile.include target in pkg/%/Makefile.
pkg/%/Makefile.include will be loaded after all other dependencies.
9 years ago
René Kijewski
5906f18a81
Add USEPKG variable for Makefiles
...
Currently pkg/USING says one should use
`EXTERNAL+=$(RIOTBASE)/pkg/<pkg_name>` to enable PKG modules.
Using this line the PKG will be compiled but not linked.
This change adds a USEPKG variable to be used like
`USEPKG += <pkg_name>`, which looks less clumsy and gets the PKG linked
in the binary.
9 years ago
Christian Mehlis
07c5ae3ca9
Merge pull request #664 from Kijewski/conditional-fno-delete-null-pointer-checks
...
clang does not know fno-delete-null-pointer-checks
9 years ago