summaryrefslogtreecommitdiffstats
path: root/scripts/genenv
Commit message (Collapse)AuthorAgeFilesLines
* Fix spelling: pathes -> pathsWadim Egorov2015-01-281-2/+2
| | | | | Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* genenv: fix tempdir creation when target is a relative pathSascha Hauer2014-04-291-1/+20
| | | | | | | | | | when $target is a path relative to $objtree the script fails. This is because we cd to $basedir and then copy to $tempdir which then is no longer valid. Fix this by converting $tempdir to an absolute path first. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Tested-by: Christoph Fritz <chf.fritz@googlemail.com>
* defaultenv: simplify env dependenciesSascha Hauer2014-02-181-2/+10
| | | | | | | | | | Finding out whether to rebuild the environment is a difficult task since we have to track all files in a directory. Instead of trying this, just rebuild the environment during every build and only if it differs to the last one overwrite the target. This way make only sees a change when the environment is changed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* small tweeks to build system for compatibility on MacOS XDarren Garnier2013-09-031-1/+1
| | | | | Signed-off-by: Darren Garnier <dgarnier@reinrag.net> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/defaultenv-deps'Sascha Hauer2012-10-031-6/+11
|\
| * environment generation: Fix dependenciesSascha Hauer2012-09-281-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The dependencies for generating the environment do not work properly: - If files are removed from the defaultenv, a subsequent make will not update the default environment. - If CONFIG_DEFAULT_ENVIRONMENT_PATH changes, the default environment also will not be regenerated. This patch fixes this by introducing a cmd_env which has the content of $(ENV_FILES) in the command so that the if_changed mechanism recognizes a change when $(ENV_FILE) changes. This also results in a nice " ENV " string in the build process. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | genenv: Allow to also specify files for the environment instead of only ↵Jean-Christophe PLAGNIOL-VILLARD2012-09-111-1/+5
|/ | | | | | | | | directories we may specify file in the defconfig Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* scripts/genenv: always pass template to mktempDirk Hörner2012-06-051-1/+1
| | | | | | | Passing a template to mktemp is mandatory on OS X. Signed-off-by: Dirk Hörner <dirker@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* scripts/getenv: delete backup files from enviroment directoryHubert Feurstein2011-06-011-1/+2
| | | | | | | | Also add the '--no-run-if-empty' option to xargs to avoid an error message when no files/folders were found. Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fix genenv when using svn based enviroment directoryTim Sander2011-05-231-0/+2
| | | | | | | | | | | | | | Hi When setting the default env of barebox to a svn directory the build stops with questions on removal and the barebox env is polluted with svn files. The patch below fixes that. Tested with 2011.03.1. Newer versions don't boot anymore on my pcm043 :-(. Signed-off-by: Tim Sander <tim.sander@hbm.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* barebox_default_env: fix out of tree buildJean-Christophe PLAGNIOL-VILLARD2010-07-221-3/+5
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Allow to merge default environment from more than one directorySascha Hauer2010-06-221-0/+17
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>