Andrew Tridgell
c8d6311047
waf: added -Werror=switch
...
match the stm32 build, so errors are found in SITL
2017-04-19 20:48:42 +10:00
Eugene Shamaev
59ef501a19
waf: add support for building with UAVCAN
2017-04-10 22:38:13 +01:00
Lucas De Marchi
fab0358a0f
build: document special fields in px4 boards
2017-03-24 12:06:19 +11:00
Lucas De Marchi
81a9a70910
ROMFS: use different UART for errors in aerofc
2017-03-24 12:06:19 +11:00
Lucas De Marchi
3eb16fd881
build: PX4: install rc.<board-name> as init script
2017-03-24 12:06:19 +11:00
Lucas De Marchi
b17acfee12
Add aerofc support
...
Flight Controller board that comes on Intel Aero RTF Drone.
2017-03-24 12:06:19 +11:00
Lucas De Marchi
1bf17fa50f
build: remove version that is not required anymore
...
Now bootloader, board name and px4io pass the name directly to the PX4
build system so we don't need to keep the version.
2017-01-30 18:59:34 -08:00
Lucas De Marchi
1a58d3c447
build: px4: pass px4io name directly
2017-01-30 18:59:34 -08:00
Lucas De Marchi
da297d2028
build: px4: pass board name directly
2017-01-30 18:59:34 -08:00
Lucas De Marchi
c81d32a0b2
build: px4: pass bootloader name directly
...
Don't derive the bootloader name from the version. Other boards using
the PX4 layer may not necessarily have "px4fmu" name, let alone the
version.
2017-01-30 18:59:34 -08:00
mirkix
61a88a9b5e
ardupilotwaf: Add BeagleBone Blue
2017-01-26 23:15:52 -08:00
Andrew Tridgell
b7081f42cd
waf: exclude some files from ROMFS
...
no need to include oreoled on FMUv2 as its Solo only
2016-12-19 08:07:13 +11:00
Andrew Tridgell
74a871576c
waf: added FMUv3 to build
2016-12-19 08:07:12 +11:00
Lucas De Marchi
57aec40acb
build: disable O_CLOEXEC for PX4 and VRBRAIN
2016-11-07 12:37:30 -03:00
Lucas De Marchi
217da05c64
build: Add Urus board to waf
2016-10-27 11:53:26 -02:00
Martin Evans
c0b913a975
build: Add Dark board to waf
2016-10-24 10:01:55 -02:00
Lucas De Marchi
95d5752011
build: fix configure check for headers
...
When we are checking if a header is available we can't pass -I argument
to our missing/ directory. Otherwise we would end up telling the build
that a header is available when it actually isn't.
This fixes the build of sitl in MacOS with clang.
2016-09-03 01:19:14 -03:00
José Roberto de Souza
6a9addb2a8
waf: Add Intel Aero to waf build
...
This will be the first board that only build with waf.
2016-09-03 01:03:17 -03:00
Lucas De Marchi
e31a06cfdb
waf: fix programs searches
...
Here we do the following:
1) Move the pkg-config check to boards.py so we only check of it for
linux boards
2) Use cfg.find_toolchain_program() if possible, for example, for AR
2016-08-24 12:15:42 -03:00
Andrew Tridgell
3769e0fc64
waf: build support for Disco
2016-07-20 13:28:28 +10:00
Gustavo Jose de Sousa
9a9b59a97f
waf: boards: fix funny CXXFLAGS typo
2016-07-18 15:26:07 -03:00
Andrew Tridgell
a5adae5fb4
waf: make linux check for libdl
...
needed for libiio
2016-07-13 15:24:42 -03:00
Andrew Tridgell
3322d7c321
waf: don't build bebop static
...
need dynamic for libiio
2016-07-13 15:24:42 -03:00
Lucas De Marchi
ee62b61fc7
waf: use STDC format macros
2016-07-13 14:18:27 +10:00
Siddharth Bharat Purohit
71c2f69a63
waf: add support for sitl build on mac
2016-07-07 11:35:17 -03:00
Lucas De Marchi
3a5bc141bb
build: use format macros in all linux boards
...
This doesn't work for px4 since it manually defines __STDC_FORMAT_MACROS
in some px4 modules, which needs to be updated.
2016-06-25 12:51:55 -03:00
Gustavo Jose de Sousa
844222870c
waf: boards: bind get_board() to configure and build contexts
...
A convenience, since we don't expect the board to change for a given
configuration.
2016-05-25 17:47:00 -03:00
Lucas De Marchi
563614e84b
waf: check for libiio for all linux boards
2016-05-23 12:06:42 -03:00
Lucas De Marchi
04fc1e22da
waf: check for lttng-ust for all linux boards
2016-05-23 12:06:42 -03:00
Lucas De Marchi
9ac6c399e9
waf: accept env variable to append library
...
Change check_librt() to do everything it needs to check for librt.
2016-05-23 12:06:42 -03:00
Gustavo Jose de Sousa
0f60c8ed4f
waf: boards: check for librt when necessary
2016-05-19 18:15:06 -03:00
Gustavo Jose de Sousa
e630c2b33f
waf: cxx_checks: define ap_common_checks() instead of configure()
...
That allow loading the cxx_checks tool before the calls to configure_env().
That way, we can add check functions to be used across boards.
2016-05-19 18:15:06 -03:00
Gustavo Jose de Sousa
ff46384258
waf: add --debug configuration option
...
That sets a variant <board>-debug.
2016-05-07 22:55:03 -03:00
Lucas De Marchi
9e3ec3a16d
waf: define git versions in a generated ap_version.h header
2016-05-06 13:11:28 -03:00
Julien Beraud
5418f71aae
waf: add libiio support for bebop
...
check for the presence of libiio to enable the compilation of
the bebop rangefinder that needs it.
If the build remains static, there needs to be a rootfs that contains
the libiio.a file because it is not included in the debian package.
A solution can be to compile libiio and copy libiio.a in /usr/lib[/arch]
2016-05-03 16:43:39 -03:00
Lucas De Marchi
e6907a607b
waf: link with winmm on cygwin
...
Otherwise it fails to link:
[335/335] Linking build/sitl/bin/arducopter-quad.exe
ArduCopter/libArduCopter_libs.a(SIM_Aircraft.cpp.4.o):SIM_Aircraft.cpp:(.text$_ZN4SITL8AircraftC2EPKcS2_+0x230): undefined reference to `_imp__timeGetTime@0'
ArduCopter/libArduCopter_libs.a(SIM_Aircraft.cpp.4.o):SIM_Aircraft.cpp:(.text$_ZN4SITL8Aircraft16setup_frame_timeEff+0x9f): undefined reference to `_imp__timeGetTime@0'
ArduCopter/libArduCopter_libs.a(SIM_Aircraft.cpp.4.o):SIM_Aircraft.cpp:(.text$_ZN4SITL8Aircraft16setup_frame_timeEff+0x125): undefined reference to `_imp__timeGetTime@0'
ArduCopter/libArduCopter_libs.a(SIM_Aircraft.cpp.4.o):SIM_Aircraft.cpp:(.text$_ZN4SITL8Aircraft15sync_frame_timeEv+0x21): undefined reference to `_imp__timeGetTime@0'
ArduCopter/libArduCopter_libs.a(SIM_Aircraft.cpp.4.o):SIM_Aircraft.cpp:(.text$_ZN4SITL8Aircraft15sync_frame_timeEv+0x152): undefined reference to `_imp__timeGetTime@0'
ArduCopter/libArduCopter_libs.a(SIM_Aircraft.cpp.4.o):SIM_Aircraft.cpp:(.text$_ZNK4SITL8Aircraft16get_wall_time_usEv+0xe): more undefined references to `_imp__timeGetTime@0' follow
collect2: error: ld returned 1 exit status
2016-04-19 19:02:25 -03:00
Ricardo de Almeida Gonzaga
5e45c9dfb0
waf: add cxx_checks tool
...
In order to start generating AP_Config header and detect
parameter such as the existence of cmath functions.
2016-04-05 20:44:15 -07:00
Ricardo de Almeida Gonzaga
14dbc16d46
waf: start using 'AP_Common/missing' to all boards
2016-04-05 20:44:15 -07:00
Francisco Ferreira
d54a22baaa
waf: boards: change no-unknown-pragmas to all compilers instead of only Clang
2016-03-30 01:32:45 -03:00
Gustavo Jose de Sousa
95aeb0346e
waf: load compilers tools in toolchain tool
...
It makes more sense the toolchain Waf tool to be responsible of loading the
compilers. Furthermore, that allows toolchain tool to have control on doing
configuration before and after loading compiler tools.
2016-03-23 17:11:02 -03:00
Francisco Ferreira
a8aae048c2
waf: boards: change toolchain to a board class attribute
2016-03-20 00:17:02 -03:00
Francisco Ferreira
f8727f7362
waf: boards: fix bug in boards environment merge
2016-03-20 00:17:02 -03:00
Francisco Ferreira
bf3dda9156
waf: boards: support Clang by adding necessary flags
...
Don't add unsupported flag when compiler is Clang
2016-03-20 00:17:02 -03:00
Francisco Ferreira
3b3d59efd1
waf: boards: load toolchain and compiler before configuring env
2016-03-20 00:17:02 -03:00
Gustavo Jose de Sousa
95848488e7
waf: boards: define PX4 boards
2016-03-14 11:54:31 -03:00
Gustavo Jose de Sousa
841771096d
waf: let toolchain loading in charge of the Board class
...
That allows boards (i.e. subclasses of Board) to use toolchain related
information for configuration. The upcoming PX4 build is an example.
2016-03-14 11:54:31 -03:00
Gustavo Jose de Sousa
8664c0344d
waf: allow boards to tweak build
...
We define a function build() that can be overrode by Board subclasses.
2016-03-14 11:54:30 -03:00
Gustavo Jose de Sousa
1fe795f283
waf: boards: set Board as an abstract board
...
Let's have a unified way to do that - no need for checking the board name
anymore.
2016-03-14 11:54:30 -03:00
Gustavo Jose de Sousa
93156e4325
waf: boards: allow defining abstract boards
...
That avoids instantiation of wrong board classes and also listing invalid board
names in the help message.
2016-03-14 11:54:30 -03:00
Gustavo Jose de Sousa
b53f38bb02
waf: boards: cache board in a variable
...
That allows subsequent calls to get_board() to work nicely, with no need of
instantiating a board on every single call.
2016-03-14 11:54:30 -03:00