diff options
author | px4dev <px4@purgatory.org> | 2013-02-20 21:12:59 -0800 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-02-23 22:00:59 -0800 |
commit | abe48bd7149fee4d18d709e7325cc70ca7230cb8 (patch) | |
tree | f22d4b9651c769426bbdc648500d23c636d740bf /makefiles/setup.mk | |
parent | d3a6f448c93aaf6d611f1aa3d3af60788eb0ff7a (diff) | |
download | px4-firmware-abe48bd7149fee4d18d709e7325cc70ca7230cb8.tar.gz px4-firmware-abe48bd7149fee4d18d709e7325cc70ca7230cb8.tar.bz2 px4-firmware-abe48bd7149fee4d18d709e7325cc70ca7230cb8.zip |
Auto-generate builtin command prototypes.
Tidy up path configuration, etc.
Diffstat (limited to 'makefiles/setup.mk')
-rw-r--r-- | makefiles/setup.mk | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/makefiles/setup.mk b/makefiles/setup.mk new file mode 100644 index 000000000..97893921d --- /dev/null +++ b/makefiles/setup.mk @@ -0,0 +1,42 @@ +# +# Path and tool setup +# + +# +# Some useful paths. +# +export PX4_APP_SRC = $(PX4_BASE)/src/apps +export PX4_LIB_SRC = $(PX4_BASE)/src/libs +export NUTTX_SRC = $(PX4_BASE)/nuttx +export NUTTX_APP_SRC = $(PX4_BASE)/apps +export MAVLINK_SRC = $(PX4_BASE)/mavlink +export ROMFS_SRC = $(PX4_BASE)/ROMFS +export IMAGE_DIR = $(PX4_BASE)/Images +export BUILD_DIR = $(PX4_BASE)/Build +export ARCHIVE_DIR = $(PX4_BASE)/Archives + +# +# Tools +# +MKFW = $(PX4_BASE)/Tools/px_mkfw.py +UPLOADER = $(PX4_BASE)/Tools/px_uploader.py +COPY = cp +REMOVE = rm -f +RMDIR = rm -rf +GENROMFS = genromfs + +# +# Host-specific paths, hacks and fixups +# +SYSTYPE := $(shell uname -s) + +ifeq ($(SYSTYPE),Darwin) +# Eclipse may not have the toolchain on its path. +export PATH := $(PATH):/usr/local/bin +endif + +# +# Makefile debugging. +# +Q := $(if $(V),,@) + |