Commit Graph

51 Commits

Author SHA1 Message Date
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
Russel Winder
a1dfd0b876 Change to shorter all lowercase targets for SCons command line invocation. 2009-08-05 09:28:20 +01:00
Russel Winder
7cf85c4428 Remove a few redundant paths from the include path. 2009-08-05 07:44:05 +01:00
Russel Winder
162941c645 Add some comments and TODOs. Update the help text. 2009-08-05 07:32:26 +01:00
Russel Winder
376fb32d48 Change the way tasks and task libraries are processed. 2009-08-05 06:32:58 +01:00
Russel Winder
e7820903d9 Add in the task support libraries. 2009-08-02 13:46:07 +01:00
Russel Winder
26b3ea58a6 Ensure all the library compilation depends on the configuration files. 2009-08-02 11:35:21 +01:00
Russel Winder
27c0c50728 Make a start on building the tasks. 2009-08-01 18:14:34 +01:00
Russel Winder
9b2ff087d0 Add in all the amendments and new files needed to get the kernel building. 2009-08-01 17:50:59 +01:00
Russel Winder
ce8d060d21 Change the way in which the CML2 configuration is handled to separate it out from the build. 2009-08-01 12:40:45 +01:00
Russel Winder
a79206f8d9 First pass at processing the CML2 configuration. 2009-07-31 18:35:30 +01:00
Russel Winder
198022b4d4 Correct the copyright notices, B Labs Ltd is the copyright holder. 2009-07-28 18:40:37 +01:00
Russel Winder
82ba62a78f Add compilation of the Elf code. 2009-07-28 16:49:16 +01:00
Russel Winder
083d9e7864 Correct the mode line syntax. 2009-07-28 16:33:02 +01:00
Russel Winder
7936ee6775 Add in creation of the c libraries. 2009-07-28 16:31:51 +01:00
Russel Winder
d40c76de84 Remove all the SCons files pending starting a new build system. 2009-07-28 14:47:00 +01:00
Bahadir Balban
f7b768ee16 More changes for cleaner initialization and support for containers. 2009-07-25 17:44:29 +03:00