Commit Graph

8 Commits

Author SHA1 Message Date
Suraj Ravichandran
80453d8124 Add general purpose mechanism to build system to allow config var
override via environment variables.

Example usage:
`env dsl.config.repos.middleware.branch=update_diffreduc_and_flakefix make update`

Things to note:
	1. `dsl.config.` is a general purpose prefix to identify build system config
	    related env vars amidst the rest of them
	2. This mechanism is not additive and will not allow you to add new config
	   config vars instead just edit existing ones.
	3. It will inform you via a log of a misformed env var that has `dsl.config.` prefix.
	4. It will also log a successful override of a var.

Feel free to review/comment for correctness and/or complexity.

Ticket: #16118
2016-07-08 05:15:46 -07:00
William Grzybowski
9b1036191d Small fixes for py3k 2015-11-04 13:22:51 +01:00
Jakub Klama
678b2178ef Set GIT_REVISION variable only if freenas repository is checked out 2015-04-28 10:02:24 +02:00
Jakub Klama
2f0321f8ba Adapt more build scripts to use profile config. Remove now useless e() calls in .pyd files. 2015-04-23 23:32:15 +02:00
Jakub Klama
244110e611 Use some AST magic to accomplish following goals:
* Automatically expand $VARIABLES inside strings without calling e() on string.
* Automatically convert dicts to ConfigDicts. ConfigDict members can be accessed using dot syntax (eg. dict.member instead of dict["member"])
2015-04-23 19:24:54 +02:00
Jakub Klama
9a1d81843a Add initial support for build profiles.
* Build profiles are stored in build/profiles/ directory (one subdirectory per profile)
* Main profile config file is called config.pyd
* Profiles other than default should inherit default profile config and modify it
* DSL syntax changed to more readable and more flexible
2015-04-23 17:04:52 +02:00
Jakub Klama
afe5e55f95 Simplify build-ports script; disable pcbsd-appweb build until we resolve how it should be done. 2015-04-22 16:42:16 +02:00
Jakub Klama
acea4ee59b Initial drop-in of FreeNAS 10 build system. 2015-04-22 11:57:31 +02:00