kodev improvements.

Allow KORE_SOURCE and KORE_FLAVOR to come from the environment,
overriding any configured kore_source or kore_flavor configuration
setting from the build.conf for the application.

I wanted an easier way of switching between Kore trees while hacking
on some of my apps, this is it.
This commit is contained in:
Joris Vink 2018-05-03 21:27:52 +02:00
parent 46633e3978
commit 68f5e33768
1 changed files with 7 additions and 0 deletions

View File

@ -1553,6 +1553,7 @@ static void
cli_buildopt_parse(const char *path)
{
FILE *fp;
const char *env;
struct buildopt *bopt;
char buf[BUFSIZ], *p, *t;
@ -1613,6 +1614,12 @@ parse_option:
}
fclose(fp);
if ((env = getenv("KORE_SOURCE")) != NULL)
cli_buildopt_kore_source(NULL, env);
if ((env = getenv("KORE_FLAVOR")) != NULL)
cli_buildopt_kore_flavor(NULL, env);
}
static struct buildopt *