Opened 14 years ago

Closed 14 years ago

#9 closed enhancement (fixed)

Split platform/application configuration file

Reported by: Nicolas Pouillon Owned by: Nicolas Pouillon
Priority: minor Milestone:
Component: Build system Keywords:
Cc: nipo@…

Description

Configuration files contain both the platform definition and the libraries used by the application. Splitting them could allow reusing application definitions from different examples, and creating only one definition per application.

Change History (7)

comment:1 Changed 14 years ago by Joël Porquet

Do you think of specifying two files to the build system, or maybe adding an "include" directive in the configuration syntax, or something else?

comment:2 Changed 14 years ago by Joël Porquet

Another idea could be merely to specify several config files when invocating the makefile: make CONF=conf_sys,conf_libs,conf_app In the internal buildsystem, we just have to 'cat' all those config file into one.

This way, one can have independent config files for each part of the kernel:

  • config_arm_proc, config_mips_proc
  • config_mono, config_smp2
  • config_soclib
  • config_migration, config_static
  • config_elf, config_libtermui, config_lua
  • etc

and build kernel in a very modular way: make CONF=config_mips_proc,config_smp2,config_soclib,etc

comment:3 Changed 14 years ago by Joël Porquet

My bad, I should have look at the preview first...

Another idea could be merely to specify several config files when invocating the makefile:

make CONF=conf_sys,conf_libs,conf_app

In the internal buildsystem, we just have to cat all those config file into one.

This way, one can have independent config files for each part of the kernel:

  • config_arm_proc, config_mips_proc
  • config_mono, config_smp2
  • config_soclib
  • config_migration, config_static
  • config_elf, config_libtermui, config_lua
  • etc

and build kernel in a very modular way:

make CONF=config_mips_proc,config_smp2,config_soclib,etc

comment:4 Changed 14 years ago by Nicolas Pouillon

Cc: Nicolas Pouillon added

comment:5 Changed 14 years ago by Nicolas Pouillon

I dont think we want to split them too deep, or we'll end up with configuration file contents on the command line :) and create shell scripts containing configuration command line :)

The build system already uses multiple configuration file for heterogeneous builds...

comment:6 Changed 14 years ago by Nicolas Pouillon

Cc: nipo@… added; Nicolas Pouillon removed

comment:7 Changed 14 years ago by Nicolas Pouillon

Resolution: fixed
Status: newclosed

Done as of [1120]

Note: See TracTickets for help on using tickets.