Skip to content

Commit

Permalink
Changed paparazzi and sw/simulator/launchsitl to be build from source…
Browse files Browse the repository at this point in the history
… files with are modified. This removes the need to have a paparazzi.osx which only has different paths to ocamlrun and ocaml
  • Loading branch information
rbdavison committed Jan 18, 2011
1 parent 7c94a3d commit 8117e93
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 21 deletions.
19 changes: 15 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ XSENS_XML = $(CONF)/xsens_MTi-G.xml
TOOLS=$(PAPARAZZI_SRC)/sw/tools
HAVE_ARM_NONE_EABI_GCC := $(shell which arm-none-eabi-gcc)
ifeq ($(strip $(HAVE_ARM_NONE_EABI_GCC)),)
#ARMGCC=/opt/paparazzi/bin/arm-elf-gcc
ARMGCC=/usr/bin/arm-elf-gcc
ARMGCC=$(shell which arm-elf-gcc)
else
ARMGCC=$(HAVE_ARM_NONE_EABI_GCC)
endif
OCAML=$(shell which ocaml)
OCAMLRUN=$(shell which ocamlrun)


all: static conf
all: commands static conf

static : lib center tools cockpit multimon tmtc logalizer lpc21iap sim_static static_h usb_lib

Expand Down Expand Up @@ -211,6 +211,7 @@ clean:
rm -f $(MESSAGES_H) $(MESSAGES2_H) $(UBX_PROTOCOL_H) $(DL_PROTOCOL_H)
find . -mindepth 2 -name Makefile -exec sh -c '$(MAKE) -C `dirname {}` $@' \;
find . -name '*~' -exec rm -f {} \;
rm -f paparazzi sw/simulator/launchsitl

cleanspaces:
find ./sw/airborne -name '*.[ch]' -exec sed -i {} -e 's/[ \t]*$$//' \;
Expand All @@ -232,3 +233,13 @@ test_all_example_airframes:
$(MAKE) AIRCRAFT=HITL clean_ac ap
$(MAKE) AIRCRAFT=DM clean_ac ap sim
$(MAKE) AIRCRAFT=CSC clean_ac ap

commands: paparazzi sw/simulator/launchsitl

paparazzi:
cat src/paparazzi | sed s#OCAMLRUN#$(OCAMLRUN)# | sed s#OCAML#$(OCAML)# > $@
chmod a+x $@

sw/simulator/launchsitl:
cat src/$(@F) | sed s#OCAMLRUN#$(OCAMLRUN)# | sed s#OCAML#$(OCAML)# > $@
chmod a+x $@
15 changes: 0 additions & 15 deletions paparazzi.osx

This file was deleted.

2 changes: 1 addition & 1 deletion sw/simulator/launchsitl → src/launchsitl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/ocamlrun /usr/bin/ocaml
#!OCAMLRUN OCAML
#load "unix.cma";;
let (//) = Filename.concat
let paparazzi_home =
Expand Down
2 changes: 1 addition & 1 deletion paparazzi → src/paparazzi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/ocamlrun /usr/bin/ocaml
#!OCAMLRUN OCAML
#load "unix.cma";;
let (//) = Filename.concat
let dirname = Filename.dirname Sys.argv.(0)
Expand Down

0 comments on commit 8117e93

Please sign in to comment.