Commit Graph

15 Commits

Author SHA1 Message Date
Mark Charlebois 520459062d Initial Linux support including execution shell
Uncomment the following line in setup.mk and comment out the line above
to enable the Linux build.

   export PX4_TARGET_OS	 = linux

The build uses the clang compiler by default. The final bundled executable
is mainapp located in:

   Build/linux_default.build/mainapp

When you run mainapp it will provide a list of the built-in apps. You can
type in the commands to run such as:

   hello_main start

Because the Linux build is threaded and does not support tasks or processes,
it cannot call errx, exit() _exit(), etc. It also requires unique scoped
variables to test if a thread is running or if an application should exit.
The px4::AppMgr class was added in px4_app.h for this purpose. The
hello sample app demonstrates how this is used.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:46:43 -07:00
px4dev 56d355414c Fix handling of board config files. Treat CONFIG_BOARD like CONFIG_ARCH in the toolchain configuration. 2013-08-13 00:34:11 -07:00
px4dev 2135628254 Hotfix: dependency scanning for modules was totally broken. Fix it so that changes to depended headers correctly cause modules to be rebuilt. 2013-05-23 00:08:35 +02:00
px4dev 3a1c9f14f6 Teach the PX4 build system how to handle pre-built libraries. 2013-05-20 00:26:41 +02:00
px4dev 196ee8b16f Change the way modules are built so that object paths are relative and use vpath for locating sources (so source paths are also shorter).
Add some basic documentation for the build system files while we're at it.
2013-05-11 11:32:05 -07:00
Andrew Tridgell 6e8c1148d5 build: allow absolute paths for module sources 2013-05-04 11:44:38 +10:00
px4dev edf96fc808 Remove some naked command invocations. 2013-04-28 12:47:34 -07:00
Lorenz Meier 13fc670386 Moved last libs, drivers and headers, cleaned up IO build 2013-04-28 09:54:11 +02:00
Lorenz Meier f57439b90e Moved all drivers to new world, PX4IO completely in new world 2013-04-28 01:30:14 +02:00
px4dev 01e427b17c Merge working changes into export-build branch. 2013-04-26 16:14:32 -07:00
px4dev a457a45239 Pass the module name in to the module makefile.
Refer to the module command name with MODULE_COMMAND to avoid confusion with the module's actual name.
2013-03-20 23:55:30 -07:00
px4dev b6218794c6 Stick copyrights on the major moving parts of the build system 2013-02-23 22:01:00 -08:00
px4dev ddc405935e Cosmetic tweaks to variable output.
Comment on the need to retain the double-slash at the WORK_DIR boundary.
More toolchain documentation.
2013-02-23 22:01:00 -08:00
px4dev 6b215be739 Use indirect calls for all commands (echo, make, etc.)
Replace our dependency on xxd with a toolchain call, and implement the backend using objcopy evil for the default toolchain.
2013-02-23 22:01:00 -08:00
px4dev d24599931a APP -> MODULE
remove as many duplicate slashes, etc. as seems practical
2013-02-23 22:01:00 -08:00