px4-firmware/makefiles
Mark Charlebois 1cdc44828d Linux - revert to preferentially use clang over gcc
Removed hardcoded requirement to use gcc

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:13:24 -07:00
..
linux Linux: added HRT test, moved tests to linux/tests 2015-04-20 11:07:00 -07:00
nuttx Refactoring for multiplatform support 2015-04-20 10:46:43 -07:00
README.txt Refactoring for multiplatform support 2015-04-20 10:46:43 -07:00
board_px4-stm32f4discovery.mk Add STM32F4 discovery config. 2015-04-16 22:51:08 +02:00
config_px4-stm32f4discovery_default.mk Add STM32F4 discovery config. 2015-04-16 22:51:08 +02:00
firmware.mk Refactoring for multiplatform support 2015-04-20 10:46:43 -07:00
firmware_linux.mk Refactoring for multiplatform support 2015-04-20 10:46:43 -07:00
firmware_nuttx.mk checksubmodules target needed for Linux build 2015-04-20 10:46:44 -07:00
gumstix-aerocore.cfg Added aerocore upload target. 2014-12-18 15:21:29 -05:00
library.mk Refactoring for multiplatform support 2015-04-20 10:46:43 -07:00
linux.mk Refactoring for multiplatform support 2015-04-20 10:46:43 -07:00
linux_elf.mk Refactoring for multiplatform support 2015-04-20 10:46:43 -07:00
module.mk Initial Linux support including execution shell 2015-04-20 10:46:43 -07:00
nuttx.mk Refactoring for multiplatform support 2015-04-20 10:46:43 -07:00
nuttx_romfs.mk Refactoring for multiplatform support 2015-04-20 10:46:43 -07:00
setup.mk Linux: support gcc-4.6 and c++0x 2015-04-20 11:00:16 -07:00
toolchain_gnu-arm-eabi.mk Refactoring for multiplatform support 2015-04-20 10:46:43 -07:00
toolchain_native.mk Linux - revert to preferentially use clang over gcc 2015-04-20 11:13:24 -07:00
upload.mk Add STM32F4 discovery config. 2015-04-16 22:51:08 +02:00

README.txt

PX4 Build System
================

The files in this directory implement the PX4 runtime firmware build system
and configuration for the standard PX4 boards and software, in conjunction
with Makefile in the parent directory.

../Makefile

	Top-level makefile for the PX4 build system. 
	This makefile supports building NuttX archives for the NuttX based
	configurations, as well as supervising the building of all
	of the defined PX4 firmware configurations.

	Try 'make help' in the parent directory for documentation.

firmware.mk

	Manages the build for one specific firmware configuration. 
	See the comments at the top of this file for detailed documentation.

	Builds modules, builtin command lists and the ROMFS (if configured).

	This is the makefile directly used by external build systems; it can
	be configured to compile modules both inside and outside the PX4
	source tree. When used in this mode, at least BOARD, MODULES and 
	CONFIG_FILE must be set.

firmware_nuttx.mk

	Called by firmware.mk to build NuttX based firmware.

firmware_linux.mk

	Called by firmware.mk to build Linux (non-ROS) based firmware.

module.mk

	Called by firmware.mk to build individual modules.
	See the comments at the top of this file for detailed documentation.

	Not normally used other than by firmware.mk.

nuttx.mk

	Called by ../Makefile to build or download the NuttX archives if 
	PX4_TARGET_OS is set to "nuttx".

linux.mk

	Called by ../Makefile to set Linux specific parameters if 
	PX4_TARGET_OS is set to "linux".

upload.mk

	Called by ../Makefile to upload files to a target board. Can be used
	by external build systems as well. (NuttX targets only)

setup.mk

	Provides common path and tool definitions. Implements host 
	system-specific compatibility hacks. Sets PX4_TARGET_OS.

board_<boardname>.mk

	Board-specific configuration for <boardname>. Typically sets 
	CONFIG_ARCH and then includes the toolchain definition for the board.

config_<boardname>_<configname>.mk

	Parameters for a specific configuration on a specific board.
	The board name is derived from the filename.  Sets MODULES to select
	source modules to be included in the configuration, may also set
	ROMFS_ROOT to build a ROMFS and BUILTIN_COMMANDS to include non-module
	commands (e.g. from NuttX)

toolchain_<toolchainname>.mk

	Provides macros used to compile and link source files.
	Accepts EXTRADEFINES to add additional pre-processor symbol definitions,
	EXTRACFLAGS, EXTRACXXFLAGS, EXTRAAFLAGS and EXTRALDFLAGS to pass
	additional flags to the C compiler, C++ compiler, assembler and linker
	respectively.

	Defines the COMPILE, COMPILEXX, ASSEMBLE, PRELINK, ARCHIVE and LINK
	macros that are used elsewhere in the build system.