Introduce 'spec' subdirectories to outline aspects

Instead of holding SPEC-variable dependent files and directories inline
within the repository structure, move them into 'spec' subdirectories
at the corresponding levels, e.g.:

  repos/base/include/spec
  repos/base/mk/spec
  repos/base/lib/mk/spec
  repos/base/src/core/spec
  ...

Moreover, this commit removes the 'platform' directories. That term was
used in an overloaded sense. All SPEC-relative 'platform' directories are
now named 'spec'. Other files, like for instance those related to the
kernel/architecture specific startup library, where moved from 'platform'
directories to explicit, more meaningful places like e.g.: 'src/lib/startup'.

Fix #1673
This commit is contained in:
Stefan Kalkowski
2015-09-03 14:55:05 +02:00
committed by Christian Helmuth
parent 6cdb823187
commit ed52d5a211
786 changed files with 1240 additions and 1202 deletions

View File

@@ -39,7 +39,7 @@ proc run_power_on { } {
append qemu_args " -serial mon:stdio " }
# tweak emulated platform for specific platforms
if {[have_spec platform_pbxa9]} {
if {[have_spec pbxa9]} {
#
# For PBXA9 qemu adjusts provided RAM chips to the -m arg. Thus we
# filter user values and force value that enables all chips that Genode
@@ -49,15 +49,15 @@ proc run_power_on { } {
append qemu_args " -m 768"
append qemu_args " -M realview-pbx-a9"
}
if {[have_spec platform_vpb926]} { append qemu_args " -M versatilepb -m 128 " }
if {[have_spec platform_zynq]} { append qemu_args " -M xilinx-zynq-a9 -cpu cortex-a9 -m 256 " }
if {[have_spec vpb926]} { append qemu_args " -M versatilepb -m 128 " }
if {[have_spec zynq_qemu]} { append qemu_args " -M xilinx-zynq-a9 -cpu cortex-a9 -m 256 " }
if {[have_spec hw_x86_64]} {
regsub -all {\-m ([0-9])+} $qemu_args "" qemu_args
append qemu_args " -m 512 "
}
# add devices for specific platforms
if {[have_spec platform_zynq] && [have_spec cadence_gem]} { append qemu_args " -net nic,model=cadence_gem" }
if {[have_spec zynq] && [have_spec cadence_gem]} { append qemu_args " -net nic,model=cadence_gem" }
# on x86, we support booting via pxe or iso/disk image
if {[have_spec x86]} {

View File

@@ -23,9 +23,9 @@ proc qemu_args { } {
proc is_qemu_available { } {
if {[have_spec linux]} { return false }
if {[have_spec platform_panda]
|| [have_spec platform_arndale]
|| [have_spec platform_rpi]} {
if {[have_spec panda]
|| [have_spec arndale]
|| [have_spec rpi]} {
puts stderr "skipping execution because platform is not supported by qemu"
return false
}