mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 23:49:00 +08:00
en route for the reorg...
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE airframe SYSTEM "airframe.dtd">
|
<!-- <!DOCTYPE airframe SYSTEM "airframe.dtd"> -->
|
||||||
|
|
||||||
<!-- Microjet Multiplex (http://www.multiplex-rc.de/)
|
<!-- Microjet Multiplex (http://www.multiplex-rc.de/)
|
||||||
Tiny 1.1 board (http://paparazzi.enac.fr/wiki/Tiny)
|
Tiny 1.1 board (http://paparazzi.enac.fr/wiki/Tiny)
|
||||||
@@ -158,6 +158,17 @@
|
|||||||
<define name="DEVICE_ADDRESS" value="...."/>
|
<define name="DEVICE_ADDRESS" value="...."/>
|
||||||
</section>
|
</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>
|
<makefile>
|
||||||
BOARD_CFG = \"tiny_1_1.h\"
|
BOARD_CFG = \"tiny_1_1.h\"
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
#
|
||||||
|
# fixed_wings.makefile
|
||||||
|
#
|
||||||
|
#
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
#
|
||||||
|
# tiny_2.11.makefile
|
||||||
|
#
|
||||||
@@ -94,6 +94,23 @@ let extract_makefile = fun airframe_file makefile_ac ->
|
|||||||
end)
|
end)
|
||||||
(Xml.children xml);
|
(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 *)
|
(** Look for modules *)
|
||||||
let files = ref [] in
|
let files = ref [] in
|
||||||
List.iter (fun x ->
|
List.iter (fun x ->
|
||||||
|
|||||||
Reference in New Issue
Block a user