paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [5937] include modules directory for ALL targets and


From: Felix Ruess
Subject: [paparazzi-commits] [5937] include modules directory for ALL targets and not just the defined ones.
Date: Thu, 23 Sep 2010 22:55:53 +0000

Revision: 5937
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5937
Author:   flixr
Date:     2010-09-23 22:55:52 +0000 (Thu, 23 Sep 2010)
Log Message:
-----------
include modules directory for ALL targets and not just the defined ones.
This is needed for the test targets to compile if modules are used in the 
airframe file

Modified Paths:
--------------
    paparazzi3/trunk/sw/tools/gen_aircraft.ml

Modified: paparazzi3/trunk/sw/tools/gen_aircraft.ml
===================================================================
--- paparazzi3/trunk/sw/tools/gen_aircraft.ml   2010-09-23 22:28:37 UTC (rev 
5936)
+++ paparazzi3/trunk/sw/tools/gen_aircraft.ml   2010-09-23 22:55:52 UTC (rev 
5937)
@@ -133,8 +133,12 @@
   fprintf f "\n# include modules directory for all targets\n";
   (* get dir and target list *)
   let dir_list = get_modules_dir modules in
+(**
   let target_list = union_of_lists (List.map (fun (m,_) -> 
get_targets_of_module m) modules) in
   List.iter (fun target -> fprintf f "%s.CFLAGS += -I modules -I 
arch/$(ARCH)/modules\n" target) target_list;
+**)
+  (** include modules directory for ALL targets and not just the defined ones 
**)
+  fprintf f "$(TARGET).CFLAGS += -I modules -I arch/$(ARCH)/modules\n";
   List.iter (fun dir -> let dir_name = (String.uppercase dir)^"_DIR" in 
fprintf f "%s = modules/%s\n" dir_name dir) dir_list;
   (* parse each module *)
   List.iter (fun (m, flags) ->




reply via email to

[Prev in Thread] Current Thread [Next in Thread]