aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-12-04 16:40:46 +0100
committerThomas Gubler <thomasgubler@gmail.com>2014-12-04 16:40:46 +0100
commit6f9cbd97510dce4d0bfe715fa77af3b99d282659 (patch)
tree8260a13d2935f64ae4b6d80689078cb79d8c6b55 /Makefile
parent9b680ebeb6200d0229b9dcb0f223ceb3b14822d5 (diff)
downloadpx4-firmware-6f9cbd97510dce4d0bfe715fa77af3b99d282659.tar.gz
px4-firmware-6f9cbd97510dce4d0bfe715fa77af3b99d282659.tar.bz2
px4-firmware-6f9cbd97510dce4d0bfe715fa77af3b99d282659.zip
add genmsg and gencpp python modules, ros not required anymore for message generation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bdbc18be5..f2e467e5a 100644
--- a/Makefile
+++ b/Makefile
@@ -228,12 +228,15 @@ MSG_DIR = $(PX4_BASE)msg/px4_msgs
MSG_TEMPLATE_DIR = $(PX4_BASE)msg/templates
TOPICS_DIR = $(PX4_BASE)src/modules/uORB/topics
TOPICS_TEMPORARY_DIR = $(BUILD_DIR)topics_temporary
+GENMSG_PYTHONPATH = $(PX4_BASE)/Tools/genmsg/src
+GENCPP_PYTHONPATH = $(PX4_BASE)/Tools/gencpp/src
.PHONY: generateuorbtopicheaders
generateuorbtopicheaders:
@$(ECHO) "Generating uORB topic headers"
- $(Q) ($(PX4_BASE)/Tools/px_generate_uorb_topic_headers.py -d $(MSG_DIR) \
- -o $(TOPICS_DIR) -e $(MSG_TEMPLATE_DIR) -t $(TOPICS_TEMPORARY_DIR))
+ $(Q) (PYTHONPATH=$(GENMSG_PYTHONPATH):$(GENCPP_PYTHONPATH) $(PYTHON) \
+ $(PX4_BASE)Tools/px_generate_uorb_topic_headers.py \
+ -d $(MSG_DIR) -o $(TOPICS_DIR) -e $(MSG_TEMPLATE_DIR) -t $(TOPICS_TEMPORARY_DIR))
# clean up temporary files
$(Q) (rm -r $(TOPICS_TEMPORARY_DIR))