Opened 16 years ago

Closed 16 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 by Joël Porquet, 16 years ago

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 by Joël Porquet, 16 years ago

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 by Joël Porquet, 16 years ago

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 by Nicolas Pouillon, 16 years ago

Cc: Nicolas Pouillon added

comment:5 by Nicolas Pouillon, 16 years ago

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 by Nicolas Pouillon, 16 years ago

Cc: nipo@… added; Nicolas Pouillon removed

comment:7 by Nicolas Pouillon, 16 years ago

Resolution: fixed
Status: newclosed

Done as of [1120]

Note: See TracTickets for help on using tickets.