| Summary: | bitbake-setup "--non-interactive" ignores "top-dir-prefix" | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | David Reyna <david.reyna> |
| Component: | bitbake | Assignee: | David Reyna <david.reyna> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | JPEWhacker, poky.bs.watcher, poky.watcher, randy.macleod |
| Version: | 5.3 | ||
| Target Milestone: | 5.3 M4 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
David Reyna
2025-11-11 16:29:34 UTC
David,
I ran into the same problem. The issue is that top-dir-prefix only makes sense to be set globally, so your "bitbake-setup settings set default top-dir-prefix $PWD" doesn't do anything.
This was fixed just recently in 0c92c9ca4 ("bitbake-setup: Only set top-dir-prefix and top-dir-name in global settings"), please make sure you have that commit, then run your "bitbake-setup settings" command again and let us know if you still have a problem.
Fixed, right David ? I have these observations. 1) The new behavior is that "top-dir-prefix" for bitbake-setup will show the CWD. $ ./bitbake/bin/bitbake-setup settings list default top-dir-prefix /opt/dreyna/yp_5_3_no_interactive ... $ cd bitbake $ ./bin/bitbake-setup settings list default top-dir-prefix /opt/dreyna/yp_5_3_no_interactive/bitbake ... This matches my expectation for "least surprise". 2) If I explicitly set a new default value, that value sticks $ ./bitbake/bin/bitbake-setup settings set default top-dir-prefix $PWD/my_install $ ./bitbake/bin/bitbake-setup settings list default top-dir-prefix /opt/dreyna/yp_5_3_no_interactive/my_install ... $ cd bitbake $ ./bin/bitbake-setup settings list default top-dir-prefix /opt/dreyna/yp_5_3_no_interactive/my_install ... This matches my expectation for "least surprise". 3) If I now run "bitbake-setup init --non-interactive", it installs where it is supposed to $ ./bitbake/bin/bitbake-setup init --non-interactive poky-master poky distro/poky machine/qemux86-64 $ ls /opt/dreyna/yp_5_3_no_interactive/my_install/bitbake-builds/poky-master-poky-distro_poky-machine_qemux86-64/ build config layers $ This passes my tests. I recommend that this case be moved to "Resolved". It passed my tests. I am happy :-) |