[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:
Felix Ruess
2016-02-03 23:31:45 +01:00
parent e3e92dfaeb
commit c8d208af4d
+1
View File
@@ -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