Bahadir Balban
3b08ce304d
Merge branch 'linux' of ssh://www.b-labs.co.uk/git/codezero into linux
2009-09-21 14:25:48 +03:00
Bahadir Balban
73653bdc27
Added missing SConstruct.userlibs
2009-09-21 14:25:10 +03:00
Bahadir Balban
db494f244b
Linux build is commented in
2009-09-21 14:03:36 +03:00
Bahadir Balban
f34be923e9
Removed files that doesn't belong to this repo
2009-09-21 13:46:15 +03:00
Bahadir Balban
2e35b7a901
CML2 configuration file is saved and brought up until deleted.
2009-09-20 23:01:17 +03:00
Bahadir Balban
893b68c643
CML2 value width increased to 32.
...
This little patch increases the notorious 8-char wide value width in
the cml2 configurator to 32 characters. Now all values are properly visible.
2009-09-19 21:28:24 +03:00
Bahadir Balban
b2c93979ba
Packing of bare container done.
2009-09-19 20:53:29 +03:00
Bahadir Balban
6c54c3f059
Added default linker script input file for bare containers
2009-09-19 12:37:59 +03:00
Bahadir Balban
19a84b02da
Test program for bare repos now links with libl4 and libc.
...
The userspace bare libc has been re-added to the repo.
2009-09-19 12:30:37 +03:00
Bahadir Balban
e4f80c4579
Added generation of .container informative file for bare containers
2009-09-19 00:01:30 +03:00
Bahadir Balban
99ebb7c50d
Bare container correctly autogenerates from `test' sources and builds.
...
new file: conts/test/SConstruct
new file: conts/test/container.c
new file: conts/test/include/linker.lds
new file: conts/test/include/test.h
new file: conts/test/main.c
new file: conts/test/src/test.c
modified: scripts/bare/bare_generator.py
2009-09-18 18:49:56 +03:00
Bahadir Balban
0d2ec30f9c
Added functionality to create a bare container
2009-09-18 17:47:37 +03:00
Bahadir Balban
34650259da
Default values for container directories determined by container type expression
...
Resolved CML2 language issues such that now default parameters
for containers can be set by expressions on their type.
2009-09-18 12:28:54 +03:00
Bahadir Balban
f99c5108e0
Added container-specific options
2009-09-18 11:48:51 +03:00
Bahadir Balban
28f963517d
Carried container definition to cinfo.c
...
This file is meant to be autogenerated by the configurator
2009-09-18 11:30:53 +03:00
Bahadir Balban
943e4a520c
Loader can now load all containers.
...
The container image addresses seem to clash with kernel.
Currently no checking done for that.
2009-09-18 11:27:03 +03:00
Bahadir Balban
6538e70b39
Fixed few issues with loader and basic image loading.
...
Declaring section of the form:
.align 4
.section "kernel"
.incbin "path-to-kernel"
And defining a linker variable before the section output does not always seem to work.
The linker seems to add padding even though .align directive comes before .section
modified: SConstruct.loader
modified: loader/linker.lds
modified: loader/main.c
2009-09-17 19:19:03 +03:00
Bahadir Balban
6a654a9dc5
Minor mod to run-qemu-insight script
2009-09-17 18:20:59 +03:00
Bahadir Balban
f305d443c3
Added forgotten files and fixed minor build errors
2009-09-17 18:10:38 +03:00
Bahadir Balban
ca3693afdc
Removed the containers SConscript
2009-09-17 15:36:05 +03:00
Bahadir Balban
6aac5332ae
final.axf building from top-level build.py including containers
2009-09-17 12:49:49 +03:00
Bahadir Balban
6b899ebf15
Added untracked scripts. Added script-location relative module import
2009-09-17 11:28:43 +03:00
Bahadir Balban
b2531dc725
Created images.S for loader with a script so that kernel.elf and containers.elf are not hard-coded
2009-09-17 11:14:26 +03:00
Bahadir Balban
b1f3a2bbc7
Removed arch symlink creation. Simply very hard to get SCons to do it.
2009-09-16 19:49:35 +03:00
Bahadir Balban
136bdcdc54
Minor fixes to loader build scripts
2009-09-16 19:40:31 +03:00
Bahadir Balban
0f1dc5a982
Added generation of ksyms.S to loader SConscript as a call to generate_break_virtual
...
File creation and cleanup works correctly.
modified: loader/SConscript
modified: scripts/loader/generate_break_virtual.py
2009-09-16 19:01:57 +03:00
Bahadir Balban
97b15e6e37
Clearer generate_break_virtual script
...
modified: generate_break_virtual.py
2009-09-16 18:15:42 +03:00
Bahadir Balban
1925cd5704
Autogenerating the break_virtual symbol
2009-09-16 18:04:09 +03:00
Bahadir Balban
ee44a2007a
Containers packed in single .elf file
2009-09-16 16:24:56 +03:00
Bahadir Balban
0142677c81
Simplified loader, elf, and c library SConscripts
2009-09-14 19:15:32 +03:00
Bahadir Balban
e08ab58b09
Can now compile loader, libl4, libelf, libc from SConstruct.loader
2009-09-14 19:07:12 +03:00
Bahadir Balban
698e4702ff
Adding libc and libelf as SConscript builds as well
2009-09-14 18:32:39 +03:00
Bahadir Balban
15f12ce38f
Loader building from top-level SConstruct.loader
...
Need to add libc and libelf to it as well.
2009-09-14 17:57:14 +03:00
Bahadir Balban
48351450a6
Container packing works.
...
Able to build container0.axf, container1.axf ... files as required.
2009-09-14 13:48:10 +03:00
Bahadir Balban
90b2815836
libl4 builds with a standalone SConstruct
2009-09-14 11:55:49 +03:00
Bahadir Balban
dd04734491
Top-level SConsctruct can now retrive shelved configuration
...
By moving shelve retrieval details to configuration_retrieve()
into configuration.py, the top-level SConstruct can now get full
configuration object from shelve.
2009-09-14 11:52:01 +03:00
Bahadir Balban
2f8df84cf2
Moved all class-level attributes to instance variables.
2009-09-13 18:38:14 +03:00
Bahadir Balban
403ab75805
Got the buildsystem to build multiple linux instances.
...
modified: config/configuration.py
modified: config/projpaths.py
modified: configure.py
modified: scripts/linux/build_linux.py
modified: scripts/linux/build_rootfs.py
2009-09-13 18:29:57 +03:00
Bahadir Balban
2d2677945f
Building of linux and rootfs as containers nicely getting in shape
...
Created a Linux builder that takes a container object as its parameter.
Build of linux kernel will be coordinated by input from this container parameter
2009-09-13 14:35:04 +03:00
Bahadir Balban
772440baa0
Moved linux/rootfs build scripts to scripts directory.
2009-09-13 12:23:45 +03:00
Bahadir Balban
f7acdc116d
Configuration can now extract container attributes and store in container class.
...
Configuration symbols are stored as container class attributes
CML2 arm.cml has richer container parameters, lma, vma, type etc.
2009-09-13 01:12:20 +03:00
Bahadir Balban
35097b1492
arm.cml sufficiently populated for 2 containers and their parameters
2009-09-12 23:34:28 +03:00
Bahadir Balban
0c9ba47746
Updating arm.cml for more enhanced container parameters
2009-09-12 23:10:35 +03:00
Bahadir Balban
c4c3fb1e6c
Mods for improvements
2009-09-12 18:54:35 +03:00
Bahadir Balban
59f30a175a
More progress on build scripts
...
Created a config directory for configuration files.
Moved all absolute path variables to a projpaths.py file
All scripts can now universally learn absolute paths via projpaths.py
Moved the config_symbols class to the configuration.py file.
Moved libs to loader since they are only referred by the loader
2009-09-12 13:42:30 +03:00
Bahadir Balban
8ffd4537ea
Added newer platform files.
...
The build can now be done with fine-grain conditions on how to determine
drivers, platforms, arch, subarch etc.
2009-09-11 14:29:24 +03:00
Bahadir Balban
942865e6fc
Working compilation, but adding variant_dir = BUILD it doesn't work
2009-09-11 13:55:46 +03:00
Bahadir Balban
cc90efd120
Added SConscripts to SConstruct
2009-09-11 12:38:01 +03:00
Bahadir Balban
13363939ac
Got symbol importing working and decision making carried over to the tree
2009-09-11 11:28:41 +03:00
Bahadir Balban
9f69ba060f
Correct generation of include/l4/config.h
2009-09-10 23:01:43 +03:00