67 Commits

Author SHA1 Message Date
Bahadir Balban
6fa4884a5a Changes since April
Clean up of build directories.
Simplifications to capability model.
2010-06-01 15:08:13 +03:00
Bahadir Balban
403a038845 Changes between 16 March 2010 - 6 April 2010
Mutex system call fixed for multiple contenders
Userspace irq support extended to keyboard/mouse.
Scheduler modified for real-time irq tasks
2010-04-06 19:47:12 +03:00
Amit Mahajan
ab728dd1d5 Added separate toolchains for userspace and kernel. 2010-03-30 20:15:39 +05:30
Bahadir Balban
74b5963fcb Kernel updates since December 2009 2010-03-25 01:12:40 +02:00
Amit Mahajan
532b65fbd9 Added dependency on config.h, for src/ folders 2009-11-02 21:29:55 +05:30
Amit Mahajan
91c617d0b2 Removed hard coded values of toolchain and gcc cpu flags 2009-11-02 21:29:54 +05:30
Bahadir Balban
3660ba9528 Some more minor fixes. 2009-10-19 20:21:23 +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
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
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
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
223f6d30fe Separated config.h update to a new function. 2009-09-10 17:00:58 +03:00
Bahadir Balban
f5b770dcad Configuration & build working 2009-09-10 15:45:10 +03:00
Bahadir Balban
42bd01946f Started adding a new configure.py 2009-09-09 17:33:35 +03:00
Bahadir Balban
8697a824be Managed to connect container SConstruct to main one 2009-09-08 17:30:18 +03:00
Bahadir Balban
e1a119e373 Top-level SConstruct has problems yet. Added conts/linux/SConscript 2009-09-07 10:48:52 +03:00
Russel Winder
b0f248a866 Put back the full list of default build products so that "scons -U" from subdirectories works as expected. 2009-09-01 11:33:48 +01:00
Russel Winder
399f1d530d Pull out the toolchains specification as a separate file and extend to cover the new options in the configuration file. 2009-08-30 13:47:16 +01:00
Russel Winder
5974a327d0 Various changes post sorting out some of the issues regarding task ordering.
test0 cannot be the first task in the list as it must have a prior physical_base.lds in order to create test_exec_linker.lds.
mm0 appears to have to precede fs0 for the tests to execute on start.  This should be considered a bug.
2009-08-30 10:12:12 +01:00
Russel Winder
5987773f3c First attempt at splitting out the containers build from the SConstruct.
This creates a runnable final.axf, but the load is not correct and the tests fail to execute.
2009-08-29 08:07:50 +01:00
Russel Winder
9e894274a3 Refactor the build to try and get as much material as possible out of SConstruct. 2009-08-28 14:10:24 +01:00
Russel Winder
c311cf72e6 Rearrange the environment construction to support changing toolchain. 2009-08-28 11:49:05 +01:00
Russel Winder
03205855cc Generalize the configuration processing so that the top-level SConstruct only processes the ARCH symbol and prepares the PLATFORM and SUBARCH entries so as to write the config.h. Everything is now entered in the environment so the SConscript files can be responsible fo rthe processing. 2009-08-28 10:39:19 +01:00
Russel Winder
f6707e3ca7 Simplify the configuration file parsing so as to prepare for more generality. 2009-08-28 10:19:45 +01:00
Russel Winder
591cac56cf Change the name of the IRQ symbol in the CML2 configuration so that the DRIVER_... symbol name structure matches the name structure of the kernel source hierarchy. 2009-08-28 09:55:20 +01:00
Russel Winder
34a804eb4d Trivial changes to sync up. 2009-08-28 09:28:24 +01:00
Russel Winder
673b41c3a6 Simplify the top-level SConstruct a bit by transfering responsibility for ensuring the dependency on the configuration files to the SConscript files. 2009-08-27 16:59:52 +01:00
Russel Winder
6ca0f2607a Switch to using a different strategy for building the kernel. 2009-08-27 16:43:47 +01:00
Bahadir Balban
a41caeebd2 Created libc under containers/posix which now all tasks use to build.
There is a problem in the new libc that test0 now misbehaves. Going to be fixed.
2009-08-27 12:00:04 +03:00
Bahadir Balban
87e2aeaf58 Moved tasks/* into containers/posix 2009-08-25 14:34:21 +03:00
Russel Winder
ce62459d13 Correct the problem of not loading test_exec.
Remove the linker script and assembler load source in favour of generating
the source so that the correct path is in the source.
2009-08-17 19:24:18 +01:00
Russel Winder
1c9dfe8030 Add the constructed config.h file as a dependency of the compiled objects so that it actually gets built. 2009-08-15 08:05:28 +01:00
Bahadir Balban
0bfe0071f8 Changed linker script name to linker.lds from mylink.lds 2009-08-14 17:13:25 +03:00
Bahadir Balban
5bee43ae99 Merge branch 'newBuild' of /opt/c0-trees/codezero-russel into devel
Conflicts:

	SConstruct
	src/api/SConscript
	src/arch/arm/SConscript
	src/generic/SConscript
	tasks/bootdesc/SConstruct
2009-08-14 17:09:58 +03:00
Russel Winder
e5a0da2bbe Add in the import to allow the with statement in Python 2.5. 2009-08-11 11:55:39 +01:00
Russel Winder
9cb2b7470f Generate the final link linker scripts. 2009-08-10 11:30:53 +01:00
Russel Winder
5fcf173ae6 Get the baremetal crt0 included in the final link. 2009-08-10 09:43:09 +01:00
Russel Winder
163baa31ea Got the first part of the packing phase in place.
Generate kernel.S rather than have it as a manually maintained file.
2009-08-10 09:33:05 +01:00
Russel Winder
0613d5cf38 Update the help. 2009-08-05 18:41:09 +01:00
Russel Winder
6f3d3fdf49 Got the bootdesc building. 2009-08-05 18:33:37 +01:00
Russel Winder
38a0fdd4e2 Got the tasks linking. 2009-08-05 16:24:13 +01:00
Russel Winder
eb45780f16 Safety check-in of the next stage in getting the tasks linked. 2009-08-05 12:21:02 +01:00
Russel Winder
8b9b254f6c Make the coding style more consistent with PEP-8. 2009-08-05 11:15:26 +01:00
Russel Winder
a14ff1be5c Rearrange include path and linker script specification so as to get a successful compile.
Link not yet successful since physical_base.lds is not yet made.
2009-08-05 10:23:00 +01:00
Russel Winder
02d3c9f07c Correct the include path so that task compilation succeeds. 2009-08-05 10:06:39 +01:00