mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-26 16:30:07 +08:00
[generators] gen_aircraft: actually add modules which are children of targets
e.g. make this work as expected:
<target name="nps" board="pc">
<module name="fdm" type="jsbsim"/>
</target>
which should be the same as
<target name="nps" board="pc">
<subsystem name="fdm" type="jsbsim"/>
</target>
This commit is contained in:
@@ -222,6 +222,7 @@ let parse_firmware = fun makefile_ac ac_xml firmware ->
|
||||
List.iter (fun def -> define_xml2mk makefile_ac def) t_defines;
|
||||
List.iter (module_xml2mk makefile_ac target_name) modules;
|
||||
List.iter (mod_or_subsys_xml2mk makefile_ac [] firmware target_name) mods;
|
||||
List.iter (mod_or_subsys_xml2mk makefile_ac [] firmware target_name) t_mods;
|
||||
List.iter (subsystem_xml2mk makefile_ac firmware) t_subsystems;
|
||||
List.iter (subsystem_xml2mk makefile_ac firmware) subsystems;
|
||||
fprintf makefile_ac "\nendif # end of target '%s'\n\n" target_name
|
||||
|
||||
Reference in New Issue
Block a user