en route for the reorg...

This commit is contained in:
Antoine Drouin
2010-08-17 19:06:55 +00:00
parent 63b9c87754
commit 2868024650
4 changed files with 36 additions and 1 deletions
+12 -1
View File
@@ -1,4 +1,4 @@
<!DOCTYPE airframe SYSTEM "airframe.dtd">
<!-- <!DOCTYPE airframe SYSTEM "airframe.dtd"> -->
<!-- Microjet Multiplex (http://www.multiplex-rc.de/)
Tiny 1.1 board (http://paparazzi.enac.fr/wiki/Tiny)
@@ -158,6 +158,17 @@
<define name="DEVICE_ADDRESS" value="...."/>
</section>
<target name="fixed_wings" board="tiny_2.11">
<subsystem name="radio_control" type="ppm"/>
</target>
<!--
include $(PAPARAZZI_SRC)/conf/autopilot/fixed_wing.makefile
include $(PAPARAZZI_SRC)/conf/boards/tiny_2.11.makefile
include $(CFG_FIXED_WINGS)/radio_control_ppm.makefile
-->
<makefile>
BOARD_CFG = \"tiny_1_1.h\"
+4
View File
@@ -0,0 +1,4 @@
#
# fixed_wings.makefile
#
#
+3
View File
@@ -0,0 +1,3 @@
#
# tiny_2.11.makefile
#
+17
View File
@@ -94,6 +94,23 @@ let extract_makefile = fun airframe_file makefile_ac ->
end)
(Xml.children xml);
(** Search and dump target sections *)
List.iter (fun x ->
if ExtXml.tag_is x "target" then begin
begin try
fprintf f "\n# makefile target '%s' board '%s'\n\n" (Xml.attrib x "name") (Xml.attrib x "board");
fprintf f "include $(PAPARAZZI_SRC)/conf/autopilot/%s.makefile\n" (Xml.attrib x "name");
fprintf f "include $(PAPARAZZI_SRC)/conf/boards/%s.makefile\n" (Xml.attrib x "board");
with _ -> () end;
(**
match Xml.children x with
[Xml.PCData s] -> fprintf f "%s\n" s
| _ -> failwith (sprintf "Warning: wrong makefile section in '%s': %s\n" airframe_file (Xml.to_string_fmt x))
**)
end)
(Xml.children xml);
(** Look for modules *)
let files = ref [] in
List.iter (fun x ->