Commit Graph
49 Commits
Author SHA1 Message Date
Bahadir Balban 7e38e70f93 Added conditional configuration flag -c to build.py 2009-10-08 19:07:59 +03:00
Bahadir Balban 68d3aa4212 Changed ncontainers type to int from string. 2009-10-05 22:41:29 +03:00
Bahadir Balban 8919c4bfa5 CML2 suppress bug caused number of containers to be misconfigured.
Now worked around.

CML2 seems to forget supressing derived symbols that are derived from
suppressed symbols. (Expected behaviour) This caused the configuration parser
to recognize the illegally visible symbols to be from those containers.

Now worked around by adding the extra check for CONFIG_CONTAINERS have been parsed.

A real solution requires fixing CML2 symbol visibility function.
2009-10-05 22:33:29 +03:00
Bahadir Balban ed9199a972 Added parsing of memory region capability bits. 2009-10-03 15:34:39 +03:00
Bahadir Balban b2f508c8b7 Added the accidentally missing defaults for virt/phys mem capabilities 2009-10-02 20:36:16 +03:00
Bahadir Balban f3bca7ba00 Created a way to generate 0 and 1's while retaining Yes and No in CML
CML boolean type compiles into #define and #undefs.
This is not useful for capabilities since a value of 0 or 1 can be
used automatically for setting or unsetting bits in permission words.

Meanwhile using an integer type with 0 - 1 range has a worse usability
experience than the boolean Y, N.

Also moved parsing of container.template.cml to newer Python argument
parsing format.
2009-10-02 20:03:25 +03:00
Bahadir Balban d3b96ca646 Moved kernel autogeneration function to a meaningful directory
Als updated parse options to save oldconfig file when -r option is used.
2009-10-02 15:22:52 +03:00
Bahadir Balban 3602b5a785 Uppercase and description fixes 2009-10-01 19:54:27 +03:00
Bahadir Balban 17f7207996 Moved VIRTMEM PHYSMEM start/end symbols into relevant capabilities menu. 2009-10-01 19:34:26 +03:00
Bahadir Balban e6439517e9 Introducing virtual/physical memory permission capabilities. Half-way done. 2009-10-01 19:09:08 +03:00
Bahadir Balban f6e759c3f0 Changed container configuration parameter DIRNAME to NAME
Dirname was not a precise description as the name did not always
get used as a directory name.
2009-10-01 17:04:17 +03:00
Bahadir Balban e5cde20ca9 Fixed a fault with posix tasks not getting their LMA correctly 2009-10-01 13:13:27 +03:00
Bahadir Balban b642fc5cd3 Updated container configuration cml for posix container 2009-10-01 00:21:21 +03:00
Bahadir Balban 4e7d8ddc25 Integrated building of posix images as a container
Issues:
Some intermediate .elf files should not go into final container image.
Perhaps those will be built with different or no extension
2009-09-30 19:04:35 +03:00
Bahadir Balban 73225a0119 Bootdesc building working 2009-09-30 16:31:34 +03:00
Bahadir Balban 2f2e448667 Removed TEXT_OFFSET parameter from linux configuration
This parameter does not significantly pose a restriction on configuration.
It can be adjusted depending on phys_offset. Therefore we don't maintain it.
2009-09-28 14:13:16 +03:00
Bahadir Balban fb1de576cb Fixed hexadecimal conversions where output has the most significant bit as 1
If hex converted had a 1 in the MSB, an L was appended to the number.
The conversion routine removes this.
2009-09-28 14:04:19 +03:00
Bahadir Balban aae84b5eb3 Fixed updating of reconfigured bare projects
Reconfigured bare projects now update with config data
correctly. A path issue was fixed.
2009-09-26 21:52:29 +03:00
Bahadir Balban a1fa446ef2 Improved on option parsing help + added it to configure.py as well. 2009-09-26 17:01:44 +03:00
Bahadir Balban 10d2d7269f CML2 rule file is autogenerated from arm.cml and the containers template
Container rules are too many and repetitive for each container. With this
change, the cml file is autogenerated from a container template cml and
the architecture cml, e.g. arm.cml. -c option determines the number of
containers. See build.py -h for more.
2009-09-26 16:39:04 +03:00
Bahadir Balban fbb1800562 Updated projpaths to have cml rule file paths. 2009-09-25 16:29:55 +03:00
Bahadir Balban 37507c006a All address parameters in class Container converted to integers 2009-09-24 19:07:29 +03:00
Bahadir Balban fdb5ec15de Merge branch 'linux' of git://www.b-labs.co.uk/home/bora/web/git/codezero into linux 2009-09-24 18:10:26 +03:00
Bahadir Balban 8e3852473f Added linux configuration parameters to configuration class 2009-09-24 18:09:50 +03:00
Bora Sahin eaf3face47 Removes CONFIG_ prefix from arm.cml, the main configuration file. 2009-09-24 17:20:51 +03:00
Bahadir Balban 2c003da964 Changed configuration background to black on white...
Seemed fairly difficult, but luckily it works.
2009-09-23 17:55:03 +03:00
Bahadir Balban b39d2abb39 Relevant change to last change 2009-09-23 16:24:30 +03:00
Bahadir Balban 8e0080be16 Included a mapsize field for LINUX pager parameters
This is to determine how much the kernel should map from the container
during initialization.
2009-09-23 15:30:31 +03:00
Bahadir Balban a2d2676303 Removed unnecessary shutil.rmtree for CONFIG_SHELVE file. 2009-09-23 15:19:36 +03:00
Bahadir Balban 9bd265c7ec Cannot straightforwardly derive symbols conditionally from multiple sources in CML2
Ternary expressions on derive statements cause type errors (CML2 Bug?).
	modified:   config/cml/arm.cml
	modified:   scripts/conts/generate_kernel_cinfo.py
2009-09-23 12:57:43 +03:00
Bahadir Balban 041190b5f2 More fixes to arm.cml, particularly deriving symbols work
Deriving symbols didn't work because cml2 silently ignored symbols
that were declared previously for derivations. Not pre-declaring derived
symbols have solved the problem.
2009-09-23 11:16:53 +03:00
Bahadir Balban 9bdd951cae Integrated cinfo generation to configure.py 2009-09-22 22:01:25 +03:00
Bahadir Balban f29d86b5ff Added autogeneration of cinfo.c with memory capabilities
Also fixed a bug with configurator in that the containers
were not sorted properly and consequently an already filled
in container was getting overwritten by the new one.
	modified:   config/configuration.py
	modified:   configure.py
	new file:   generate_kernel_cinfo.py
	deleted:    src/generic/cinfo.c
2009-09-22 19:35:18 +03:00
Bahadir Balban 4f65fc0fa9 Added visibility rules for container virtual/physical memory regions
Virtual and physical memory region symbols are now visible depending
on the number of such regions defined.
2009-09-22 15:32:33 +03:00
Bahadir Balban 7c84aefecc Added multiple physical and virtual memory regions to configuration and parsing 2009-09-22 15:08:06 +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 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 6aac5332ae final.axf building from top-level build.py including containers 2009-09-17 12:49: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 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