Skip to contentSkip to conversation

My bitbake-setup testing notes so far

DISCUSSION Richard Purdie 5 participants 7 messages Nov 11, 2025 – Nov 12, 2025

lore
Share & tools
lore
#0 lore raw

I've noted down a summary of my recent bitbake-setup testing notes:

"bitbake-setup update" moves local.conf changes out the way. I think by default there should be a warning about out of date conf files and a y/n to move. There should be a command line option not to do this as it really isn't what most users expect/want. I do understand why it is doing it from an upgrade perspective.

As Joshua mentions, we should just error for non-global settings that won't do anything.

When we set a top level dl-dir, it should filter down into DL_DIR in the builds, we do want to share that.

There is a related issue with sstate-dir (and maybe hashequiv DB?) not being shared between builds by default. We have an opportunity to fix this right now.

The message:
'Bitbake-setup is using /XXX/bitbake-builds as top directory ("bitbake-setup settings --help" shows how to change it)"' is misleading. If you run that, if doesn't tell me. I need to run
bitbake-setup settings list and know which one to change.

I'm starting to wonder if there should a "--quickstart-help" which lists a set of examplecommands to run like:

bitbake-setup settings set --global default top-dir-name poky
bitbake-setup settings set --global default dl-dir /media/build/sources/ bitbake-setup init poky-master poky distro/poky machine/qemux86-64 --setup-dir-name build

The reasoning being to give people an idea of needing to set some global values for thing like dl-dir.

When I run init, the I should be able to edit the default build directory name more easily. "poky-master-poky-distro_poky- machine_qemux86-64" is a little nonsensical in that I can change DISTRO and MACHINE in a build without changing the build directory. Could we simplify the default? Should we give the user a hint about how to change the MACHINE/DISTRO? I think we do want to be able to encourage users to switch some settings in their builds.

For settings, is there anything other than the default section? Should we perhaps default to default to simplify the commands?

We also don't have a good way of mimicking something more similar to the older poky layout with bitbake-setup. The autobuilder is the closest on that but with some horrible commands, I think we might want to find a way to allow that more easily/obviously.

Any one of these issues in isolation isn't a blocker but together, they all make the experience a bit jarring and not what people are used to from us. We get one chance at users of the tool, I think this will break it.

I do probably have more thoughts, I'll try and keep more notes as I go and find things. I'm sorry not to have come to some of this earlier :/.

Cheers,

Richard

#1 lore raw

One thing from the tech call that should be written down is that top-dir-prefix should default to '.' (with code and tests fixes to ensure this works, as tests set top-dir-prefix to some tempdir). This would match the common expectation that tools write to cwd if not instructed otherwise. If anyone wants to take this, I'd appreciate.

Alex

Quoted 84 lines · Richard Purdie via lists.openembedded.org

I've noted down a summary of my recent bitbake-setup testing notes:

"bitbake-setup update" moves local.conf changes out the way. I think by default there should be a warning about out of date conf files and a y/n to move. There should be a command line option not to do this as it really isn't what most users expect/want. I do understand why it is doing it from an upgrade perspective.

As Joshua mentions, we should just error for non-global settings that won't do anything.

When we set a top level dl-dir, it should filter down into DL_DIR in the builds, we do want to share that.

There is a related issue with sstate-dir (and maybe hashequiv DB?) not being shared between builds by default. We have an opportunity to fix this right now.

The message:
'Bitbake-setup is using /XXX/bitbake-builds as top directory ("bitbake-setup settings --help" shows how to change it)"' is misleading. If you run that, if doesn't tell me. I need to run
bitbake-setup settings list and know which one to change.

I'm starting to wonder if there should a "--quickstart-help" which lists a set of examplecommands to run like:

bitbake-setup settings set --global default top-dir-name poky
bitbake-setup settings set --global default dl-dir /media/build/sources/ bitbake-setup init poky-master poky distro/poky machine/qemux86-64 --setup-dir-name build

The reasoning being to give people an idea of needing to set some global values for thing like dl-dir.

When I run init, the I should be able to edit the default build directory name more easily. "poky-master-poky-distro_poky- machine_qemux86-64" is a little nonsensical in that I can change DISTRO and MACHINE in a build without changing the build directory. Could we simplify the default? Should we give the user a hint about how to change the MACHINE/DISTRO? I think we do want to be able to encourage users to switch some settings in their builds.

For settings, is there anything other than the default section? Should we perhaps default to default to simplify the commands?

We also don't have a good way of mimicking something more similar to the older poky layout with bitbake-setup. The autobuilder is the closest on that but with some horrible commands, I think we might want to find a way to allow that more easily/obviously.

Any one of these issues in isolation isn't a blocker but together, they all make the experience a bit jarring and not what people are used to from us. We get one chance at users of the tool, I think this will break it.

I do probably have more thoughts, I'll try and keep more notes as I go and find things. I'm sorry not to have come to some of this earlier :/.

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18324): https://lists.openembedded.org/g/bitbake-devel/message/18324
Mute This Topic: https://lists.openembedded.org/mt/116239397/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
Quoted 5 lines · Alexander Kanavin via lists.openembedded.org

One thing from the tech call that should be written down is that top-dir-prefix should default to '.' (with code and tests fixes to ensure this works, as tests set top-dir-prefix to some tempdir). This would match the common expectation that tools write to cwd if not instructed otherwise. If anyone wants to take this, I'd appreciate.

Here are some patches to address this:
https://patchwork.yoctoproject.org/project/bitbake/list/?series=40256

Adrian

Quoted 115 lines

Alex

Quoted 84 lines · Richard Purdie via lists.openembedded.org

I've noted down a summary of my recent bitbake-setup testing notes:

"bitbake-setup update" moves local.conf changes out the way. I think by
default there should be a warning about out of date conf files and a
y/n to move. There should be a command line option not to do this as it
really isn't what most users expect/want. I do understand why it is doing it from an upgrade perspective.

As Joshua mentions, we should just error for non-global settings that
won't do anything.

When we set a top level dl-dir, it should filter down into DL_DIR in
the builds, we do want to share that.

There is a related issue with sstate-dir (and maybe hashequiv DB?) not
being shared between builds by default. We have an opportunity to fix
this right now.

The message:
'Bitbake-setup is using /XXX/bitbake-builds as top directory ("bitbake-setup settings --help" shows how to change it)"' is misleading. If you run that, if doesn't tell me. I need to run bitbake-setup settings list and know which one to change.

I'm starting to wonder if there should a "--quickstart-help" which lists a set of examplecommands to run like:

bitbake-setup settings set --global default top-dir-name poky bitbake-setup settings set --global default dl-dir /media/build/sources/
bitbake-setup init poky-master poky distro/poky machine/qemux86-64 --setup-dir-name build

The reasoning being to give people an idea of needing to set some global values for thing like dl-dir.

When I run init, the I should be able to edit the default build directory name more easily. "poky-master-poky-distro_poky- machine_qemux86-64" is a little nonsensical in that I can change DISTRO
and MACHINE in a build without changing the build directory. Could we
simplify the default? Should we give the user a hint about how to change the MACHINE/DISTRO? I think we do want to be able to encourage
users to switch some settings in their builds.

For settings, is there anything other than the default section? Should
we perhaps default to default to simplify the commands?

We also don't have a good way of mimicking something more similar to
the older poky layout with bitbake-setup. The autobuilder is the closest on that but with some horrible commands, I think we might want
to find a way to allow that more easily/obviously.

Any one of these issues in isolation isn't a blocker but together, they
all make the experience a bit jarring and not what people are used to
from us. We get one chance at users of the tool, I think this will break it.

Quoted 14 lines

I do probably have more thoughts, I'll try and keep more notes as I go
and find things. I'm sorry not to have come to some of this earlier :/.

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#18333):
https://lists.openembedded.org/g/bitbake-devel/message/18333
Mute This Topic: https://lists.openembedded.org/mt/116239397/4454582
Group Owner: [email protected] Unsubscribe:
https://lists.openembedded.org/g/bitbake-devel/unsub [[email protected]
]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw
In reply to Richard Purdie
Quoted 11 lines · Richard Purdie via lists.openembedded.org

I've noted down a summary of my recent bitbake-setup testing notes:

"bitbake-setup update" moves local.conf changes out the way. I think by default there should be a warning about out of date conf files and a y/n to move. There should be a command line option not to do this as it really isn't what most users expect/want. I do understand why it is doing it from an upgrade perspective.

Quoted 2 lines

As Joshua mentions, we should just error for non-global settings that won't do anything.

A patch is sent for this

Quoted 4 lines

When we set a top level dl-dir, it should filter down into DL_DIR in the builds, we do want to share that.

Maybe. I want to set that in site.conf so it's the same for all my builds (a centralized site.conf is actually a really nice feature of this tool!). Perhaps a compromise is that the default site.conf has a DL_DIR that points to the one used by bitbake-setup. I'd rather have site.conf be the authority on DL_DIR and modify bitbake-setup to use the same path though it's settings than have bitbake-setup the authority on where DL_DIR is located.

I'll send a patch for that

Quoted 13 lines

There is a related issue with sstate-dir (and maybe hashequiv DB?) not being shared between builds by default. We have an opportunity to fix this right now.

The message:
'Bitbake-setup is using /XXX/bitbake-builds as top directory ("bitbake-setup settings --help" shows how to change it)"' is misleading. If you run that, if doesn't tell me. I need to run
bitbake-setup settings list and know which one to change.

Quoted 4 lines

I'm starting to wonder if there should a "--quickstart-help" which lists a set of examplecommands to run like:

bitbake-setup settings set --global default top-dir-name poky

Setting top-dir-name to "poky" wouldn't make any sense to me as a configuration option; --setup-dir-name=poky is what I would expect instead.

Quoted 2 lines

bitbake-setup settings set --global default dl-dir /media/build/sources/ bitbake-setup init poky-master poky distro/poky machine/qemux86-64 --setup-dir-name build

Ostensibly, you don't _need_ to run any of these unless you want to change the settings. Just running bitbake-setup init is sufficient if the defaults are OK (which, for most people, is probably fine?). Other than the confusion about changing the top-dir, I really didn't think this was that bad.

bitbake-setup does prompt the user to continue if it looks like the top-dir is new (e.g. doesn't contain a site.conf) which gives them an option to say 'no' and change it. Perhaps instead that prompt should provide guidance on how to change the top directory name at that point. I'll send a patch for that

Quoted 3 lines

The reasoning being to give people an idea of needing to set some global values for thing like dl-dir.

See above.

Quoted 11 lines

When I run init, the I should be able to edit the default build directory name more easily. "poky-master-poky-distro_poky- machine_qemux86-64" is a little nonsensical in that I can change DISTRO and MACHINE in a build without changing the build directory. Could we simplify the default? Should we give the user a hint about how to change the MACHINE/DISTRO? I think we do want to be able to encourage users to switch some settings in their builds.

Quoted 2 lines

For settings, is there anything other than the default section? Should we perhaps default to default to simplify the commands?

I'm personally OK with the way it is. It matches the git config model where git has sections and variables under those sections (although git uses '.' as the separator, e.g. 'user.email'). I understood 'default' to mean the values that will be chosen if I don't say otherwise, so I didn't find this confusing or cumbersome. I actually think making "default" the default will be more confusing as to why some variables need a section and some don't (assuming we add more sections in the future).

TL; DR - I'd just leave this as is, I don't think it's confusing.

Quoted 32 lines

We also don't have a good way of mimicking something more similar to the older poky layout with bitbake-setup. The autobuilder is the closest on that but with some horrible commands, I think we might want to find a way to allow that more easily/obviously.

Any one of these issues in isolation isn't a blocker but together, they all make the experience a bit jarring and not what people are used to from us. We get one chance at users of the tool, I think this will break it.

I do probably have more thoughts, I'll try and keep more notes as I go and find things. I'm sorry not to have come to some of this earlier :/.

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18324): https://lists.openembedded.org/g/bitbake-devel/message/18324
Mute This Topic: https://lists.openembedded.org/mt/116239397/3616693
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw
Quoted 89 lines · Joshua Watt via lists.openembedded.org
Quoted 10 lines · Richard Purdie via lists.openembedded.org

I've noted down a summary of my recent bitbake-setup testing notes:

"bitbake-setup update" moves local.conf changes out the way. I think by default there should be a warning about out of date conf files and a y/n to move. There should be a command line option not to do this as it really isn't what most users expect/want. I do understand why it is doing it from an upgrade perspective.

Quoted 2 lines

As Joshua mentions, we should just error for non-global settings that won't do anything.

A patch is sent for this

Quoted 3 lines

When we set a top level dl-dir, it should filter down into DL_DIR in the builds, we do want to share that.

Maybe. I want to set that in site.conf so it's the same for all my builds (a centralized site.conf is actually a really nice feature of this tool!). Perhaps a compromise is that the default site.conf has a DL_DIR that points to the one used by bitbake-setup. I'd rather have site.conf be the authority on DL_DIR and modify bitbake-setup to use the same path though it's settings than have bitbake-setup the authority on where DL_DIR is located.

I'll send a patch for that

Quoted 12 lines

There is a related issue with sstate-dir (and maybe hashequiv DB?) not being shared between builds by default. We have an opportunity to fix this right now.

The message:
'Bitbake-setup is using /XXX/bitbake-builds as top directory ("bitbake-setup settings --help" shows how to change it)"' is misleading. If you run that, if doesn't tell me. I need to run
bitbake-setup settings list and know which one to change.

Quoted 4 lines

I'm starting to wonder if there should a "--quickstart-help" which lists a set of examplecommands to run like:

bitbake-setup settings set --global default top-dir-name poky

Setting top-dir-name to "poky" wouldn't make any sense to me as a configuration option; --setup-dir-name=poky is what I would expect instead.

Quoted 2 lines

bitbake-setup settings set --global default dl-dir /media/build/sources/ bitbake-setup init poky-master poky distro/poky machine/qemux86-64 --setup-dir-name build

Ostensibly, you don't _need_ to run any of these unless you want to change the settings. Just running bitbake-setup init is sufficient if the defaults are OK (which, for most people, is probably fine?). Other than the confusion about changing the top-dir, I really didn't think this was that bad.

bitbake-setup does prompt the user to continue if it looks like the top-dir is new (e.g. doesn't contain a site.conf) which gives them an option to say 'no' and change it. Perhaps instead that prompt should provide guidance on how to change the top directory name at that point. I'll send a patch for that

Quoted 2 lines

The reasoning being to give people an idea of needing to set some global values for thing like dl-dir.

See above.

Quoted 10 lines

When I run init, the I should be able to edit the default build directory name more easily. "poky-master-poky-distro_poky- machine_qemux86-64" is a little nonsensical in that I can change DISTRO and MACHINE in a build without changing the build directory. Could we simplify the default? Should we give the user a hint about how to change the MACHINE/DISTRO? I think we do want to be able to encourage users to switch some settings in their builds.

Quoted 2 lines

For settings, is there anything other than the default section? Should we perhaps default to default to simplify the commands?

I'm personally OK with the way it is. It matches the git config model where git has sections and variables under those sections (although git uses '.' as the separator, e.g. 'user.email'). I understood 'default' to mean the values that will be chosen if I don't say otherwise, so I didn't find this confusing or cumbersome. I actually think making "default" the default will be more confusing as to why some variables need a section and some don't (assuming we add more sections in the future).

Quoted 1 line

TL; DR - I'd just leave this as is, I don't think it's confusing.

Along with the "global" flag, personally I find it pretty confusing. Consider

$ bitbake-setup settings set default foo bar
$ bitbake-setup settings set --global default foo baz
$ bitbake-setup settings list
...
default foo bar
$ bitbake-setup settings unset default foo
$ bitbake-setup settings list
...
default foo baz
#... but both were "default"..

For me, "global" and "default" have the same meaning in this context (or at least I would expect them to be the same)

Personally I would either remove the "default" section, or I would remove the "global" flag, and make "default" actually default, globally.

(Or maybe I need further clarification about this...)

Quoted 34 lines
Quoted 34 lines

We also don't have a good way of mimicking something more similar to the older poky layout with bitbake-setup. The autobuilder is the closest on that but with some horrible commands, I think we might want to find a way to allow that more easily/obviously.

Any one of these issues in isolation isn't a blocker but together, they all make the experience a bit jarring and not what people are used to from us. We get one chance at users of the tool, I think this will break it.

I do probably have more thoughts, I'll try and keep more notes as I go and find things. I'm sorry not to have come to some of this earlier :/.

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18334): https://lists.openembedded.org/g/bitbake-devel/message/18334
Mute This Topic: https://lists.openembedded.org/mt/116239397/6084445
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw
Quoted 107 lines · Gyorgy Sarvari
Quoted 89 lines · Joshua Watt via lists.openembedded.org
Quoted 10 lines · Richard Purdie via lists.openembedded.org

I've noted down a summary of my recent bitbake-setup testing notes:

"bitbake-setup update" moves local.conf changes out the way. I think by default there should be a warning about out of date conf files and a y/n to move. There should be a command line option not to do this as it really isn't what most users expect/want. I do understand why it is doing it from an upgrade perspective.

Quoted 2 lines

As Joshua mentions, we should just error for non-global settings that won't do anything.

A patch is sent for this

Quoted 3 lines

When we set a top level dl-dir, it should filter down into DL_DIR in the builds, we do want to share that.

Maybe. I want to set that in site.conf so it's the same for all my builds (a centralized site.conf is actually a really nice feature of this tool!). Perhaps a compromise is that the default site.conf has a DL_DIR that points to the one used by bitbake-setup. I'd rather have site.conf be the authority on DL_DIR and modify bitbake-setup to use the same path though it's settings than have bitbake-setup the authority on where DL_DIR is located.

I'll send a patch for that

Quoted 12 lines

There is a related issue with sstate-dir (and maybe hashequiv DB?) not being shared between builds by default. We have an opportunity to fix this right now.

The message:
'Bitbake-setup is using /XXX/bitbake-builds as top directory ("bitbake-setup settings --help" shows how to change it)"' is misleading. If you run that, if doesn't tell me. I need to run
bitbake-setup settings list and know which one to change.

Quoted 4 lines

I'm starting to wonder if there should a "--quickstart-help" which lists a set of examplecommands to run like:

bitbake-setup settings set --global default top-dir-name poky

Setting top-dir-name to "poky" wouldn't make any sense to me as a configuration option; --setup-dir-name=poky is what I would expect instead.

Quoted 2 lines

bitbake-setup settings set --global default dl-dir /media/build/sources/ bitbake-setup init poky-master poky distro/poky machine/qemux86-64 --setup-dir-name build

Ostensibly, you don't _need_ to run any of these unless you want to change the settings. Just running bitbake-setup init is sufficient if the defaults are OK (which, for most people, is probably fine?). Other than the confusion about changing the top-dir, I really didn't think this was that bad.

bitbake-setup does prompt the user to continue if it looks like the top-dir is new (e.g. doesn't contain a site.conf) which gives them an option to say 'no' and change it. Perhaps instead that prompt should provide guidance on how to change the top directory name at that point. I'll send a patch for that

Quoted 2 lines

The reasoning being to give people an idea of needing to set some global values for thing like dl-dir.

See above.

Quoted 10 lines

When I run init, the I should be able to edit the default build directory name more easily. "poky-master-poky-distro_poky- machine_qemux86-64" is a little nonsensical in that I can change DISTRO and MACHINE in a build without changing the build directory. Could we simplify the default? Should we give the user a hint about how to change the MACHINE/DISTRO? I think we do want to be able to encourage users to switch some settings in their builds.

Quoted 2 lines

For settings, is there anything other than the default section? Should we perhaps default to default to simplify the commands?

I'm personally OK with the way it is. It matches the git config model where git has sections and variables under those sections (although git uses '.' as the separator, e.g. 'user.email'). I understood 'default' to mean the values that will be chosen if I don't say otherwise, so I didn't find this confusing or cumbersome. I actually think making "default" the default will be more confusing as to why some variables need a section and some don't (assuming we add more sections in the future).

Quoted 1 line

TL; DR - I'd just leave this as is, I don't think it's confusing.

Along with the "global" flag, personally I find it pretty confusing. Consider

$ bitbake-setup settings set default foo bar
$ bitbake-setup settings set --global default foo baz
$ bitbake-setup settings list
...
default foo bar
$ bitbake-setup settings unset default foo
$ bitbake-setup settings list
...
default foo baz
#... but both were "default"..
Quoted 5 lines

For me, "global" and "default" have the same meaning in this context (or at least I would expect them to be the same)

Personally I would either remove the "default" section, or I would remove the "global" flag, and make "default" actually default, globally.

I think the problem isn't the way it's being done, it's that the word "default" is not clearly communicating the purpose, or being misunderstood. If "default" where another work, say "foo" (since I don't want to suggest a new name), than this settings config would operate exactly like git config, where there is a "global" config that applies to all invocations of bitbake-setup, and a per-repo (or in this case, per-top-dir) config that only applies to projects that share a top-dir. Git also separates configs into "sections", it just uses "." instead (e.g. "user.name")

I would highly recommend keeping this model; having global vs. per-top-level config is really useful for user configuration purposes, and using sections will allow future tooling to more easily integrate into bitbake-setup by allowing their config options to use dedicated sections.

I think the "default" name of the section is perhaps the hang up here, but I also think the name does accurately describe what the settings are, so I don't really have a better name.

Quoted 39 lines

(Or maybe I need further clarification about this...)

Quoted 34 lines
Quoted 34 lines

We also don't have a good way of mimicking something more similar to the older poky layout with bitbake-setup. The autobuilder is the closest on that but with some horrible commands, I think we might want to find a way to allow that more easily/obviously.

Any one of these issues in isolation isn't a blocker but together, they all make the experience a bit jarring and not what people are used to from us. We get one chance at users of the tool, I think this will break it.

I do probably have more thoughts, I'll try and keep more notes as I go and find things. I'm sorry not to have come to some of this earlier :/.

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18334): https://lists.openembedded.org/g/bitbake-devel/message/18334
Mute This Topic: https://lists.openembedded.org/mt/116239397/6084445
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#6 lore raw
Quoted 130 lines · Joshua Watt
Quoted 107 lines · Gyorgy Sarvari
Quoted 89 lines · Joshua Watt via lists.openembedded.org
Quoted 10 lines · Richard Purdie via lists.openembedded.org

I've noted down a summary of my recent bitbake-setup testing notes:

"bitbake-setup update" moves local.conf changes out the way. I think by default there should be a warning about out of date conf files and a y/n to move. There should be a command line option not to do this as it really isn't what most users expect/want. I do understand why it is doing it from an upgrade perspective.

Quoted 2 lines

As Joshua mentions, we should just error for non-global settings that won't do anything.

A patch is sent for this

Quoted 3 lines

When we set a top level dl-dir, it should filter down into DL_DIR in the builds, we do want to share that.

Maybe. I want to set that in site.conf so it's the same for all my builds (a centralized site.conf is actually a really nice feature of this tool!). Perhaps a compromise is that the default site.conf has a DL_DIR that points to the one used by bitbake-setup. I'd rather have site.conf be the authority on DL_DIR and modify bitbake-setup to use the same path though it's settings than have bitbake-setup the authority on where DL_DIR is located.

I'll send a patch for that

Quoted 12 lines

There is a related issue with sstate-dir (and maybe hashequiv DB?) not being shared between builds by default. We have an opportunity to fix this right now.

The message:
'Bitbake-setup is using /XXX/bitbake-builds as top directory ("bitbake-setup settings --help" shows how to change it)"' is misleading. If you run that, if doesn't tell me. I need to run
bitbake-setup settings list and know which one to change.

Quoted 4 lines

I'm starting to wonder if there should a "--quickstart-help" which lists a set of examplecommands to run like:

bitbake-setup settings set --global default top-dir-name poky

Setting top-dir-name to "poky" wouldn't make any sense to me as a configuration option; --setup-dir-name=poky is what I would expect instead.

Quoted 2 lines

bitbake-setup settings set --global default dl-dir /media/build/sources/ bitbake-setup init poky-master poky distro/poky machine/qemux86-64 --setup-dir-name build

Ostensibly, you don't _need_ to run any of these unless you want to change the settings. Just running bitbake-setup init is sufficient if the defaults are OK (which, for most people, is probably fine?). Other than the confusion about changing the top-dir, I really didn't think this was that bad.

bitbake-setup does prompt the user to continue if it looks like the top-dir is new (e.g. doesn't contain a site.conf) which gives them an option to say 'no' and change it. Perhaps instead that prompt should provide guidance on how to change the top directory name at that point. I'll send a patch for that

Quoted 2 lines

The reasoning being to give people an idea of needing to set some global values for thing like dl-dir.

See above.

Quoted 10 lines

When I run init, the I should be able to edit the default build directory name more easily. "poky-master-poky-distro_poky- machine_qemux86-64" is a little nonsensical in that I can change DISTRO and MACHINE in a build without changing the build directory. Could we simplify the default? Should we give the user a hint about how to change the MACHINE/DISTRO? I think we do want to be able to encourage users to switch some settings in their builds.

Quoted 2 lines

For settings, is there anything other than the default section? Should we perhaps default to default to simplify the commands?

I'm personally OK with the way it is. It matches the git config model where git has sections and variables under those sections (although git uses '.' as the separator, e.g. 'user.email'). I understood 'default' to mean the values that will be chosen if I don't say otherwise, so I didn't find this confusing or cumbersome. I actually think making "default" the default will be more confusing as to why some variables need a section and some don't (assuming we add more sections in the future).

Quoted 1 line

TL; DR - I'd just leave this as is, I don't think it's confusing.

Along with the "global" flag, personally I find it pretty confusing. Consider

$ bitbake-setup settings set default foo bar
$ bitbake-setup settings set --global default foo baz
$ bitbake-setup settings list
...
default foo bar
$ bitbake-setup settings unset default foo
$ bitbake-setup settings list
...
default foo baz
#... but both were "default"..
Quoted 5 lines

For me, "global" and "default" have the same meaning in this context (or at least I would expect them to be the same)

Personally I would either remove the "default" section, or I would remove the "global" flag, and make "default" actually default, globally.

I think the problem isn't the way it's being done, it's that the word "default" is not clearly communicating the purpose, or being misunderstood. If "default" where another work, say "foo" (since I don't want to suggest a new name), than this settings config would operate exactly like git config, where there is a "global" config that applies to all invocations of bitbake-setup, and a per-repo (or in this case, per-top-dir) config that only applies to projects that share a top-dir. Git also separates configs into "sections", it just uses "." instead (e.g. "user.name")

I would highly recommend keeping this model; having global vs. per-top-level config is really useful for user configuration purposes, and using sections will allow future tooling to more easily integrate into bitbake-setup by allowing their config options to use dedicated sections.

Quoted 3 lines

I think the "default" name of the section is perhaps the hang up here, but I also think the name does accurately describe what the settings are, so I don't really have a better name.

We modelled this on git config and in git's context, "default" actually maps to the different section names like 'user' or 'url' or 'pull'.

I'm all in favour of the different levels of config, global and local. I think the section naming is something different to that.

Cheers,

Richard