| Summary: | oe-init-build-env: to receive an argument/variable for appending to local.conf | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Benjamin Esquivel <benjamin.esquivel> |
| Component: | Scripts and Tools | Assignee: | Mariano Lopez <mariano.lopez> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Medium | CC: | mariano.lopez, richard.purdie, ross.burton |
| Version: | unspecified | ||
| Target Milestone: | 2.2 M1 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Yes (doc changes required) | |
|
Description
Benjamin Esquivel
2016-03-10 18:27:42 UTC
I guess I'm wondering why we wouldn't just use the -R and -r options to bitbake which allow the appending or prepending of a configuration file? oe-init-build-env is meant to be simple and I really would prefer not to complicate that script any further. What is the problem we're trying to solve here? The -R or -r bitbake options are good, but is a bit of a pain tospecify the file every time bitbake is run. What we were thinking was when using oe-init-build-env script have an env var with the file name and append the file name to local.conf (at the time the build dir is created). The bitbake case would be to have the env var and bitbake could append the config, instead of using -r or -R. Bitbake has a set environment variables which set values for command line options, e.g. BITBAKE_UI(-u), BBSERVER(--remote-server), BBTOKEN(--token) etc. What do you think about adding two more env variables(BBREAD, BBPOSTREAD?) to set values for -r and -R ? (In reply to comment #3) > Bitbake has a set environment variables which set values for command line > options, e.g. BITBAKE_UI(-u), BBSERVER(--remote-server), BBTOKEN(--token) > etc. > > What do you think about adding two more env variables(BBREAD, BBPOSTREAD?) > to set values for -r and -R ? I'd say that adding such environment variables for -r/-R should work fine for the intended purpose. Richard? I guess we could do this if people would find it really useful, I'd prefer names like BBPRECONF and BBPOSTCONF though. Fix has been sent for review: http://lists.openembedded.org/pipermail/bitbake-devel/2016-April/007349.html The fix has been merged to master: https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=21b314d4d1e5b8fbeb4cc57006f0a110f0b3aa8f The functionality is still missing; there is a typo in the var used. I sent a patch to correct that: http://lists.openembedded.org/pipermail/bitbake-devel/2016-June/007549.html This has been solved in commit: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=40e789d1fee7f0df2d23230fff38325119ad2935 |