mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-06 07:53:43 +08:00
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
This commit is contained in:
@@ -133,8 +133,12 @@ let dump_module_section = fun xml f ->
|
||||
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) ->
|
||||
|
||||
Reference in New Issue
Block a user