Skip to contentSkip to conversation

sandbox: Add a build without CMDLINE

PATCH Superseded Simon Glass 3 participants 10 messages Oct 26, 2024 – Nov 2, 2024

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 sandbox: Add a build without CMDLINE

Something this breaks, so add a build to keep it working. Since sandbox enables a lot of options, it is a good board to use. The new config is created simply by copying the existing sandbox and turning off CMDLINE

Once we have tests for non-CMDLINE operation, this can be adjusted to run those tests.

Create a new build which will be picked up by CI. Update the maintainer entry as well.

---

Changes in v2:
- Create a new build instead of messing with CI

 MAINTAINERS                         |   1 +
 configs/sandbox_nocmdline_defconfig | 365 ++++++++++++++++++++++++++++
 2 files changed, 366 insertions(+)
 create mode 100644 configs/sandbox_nocmdline_defconfig
MAINTAINERS +1 -0
index 8e375e75e53..2affcd08939 100644
@@ -1544,6 +1544,7 @@ SANDBOX
 M:	Simon Glass <[email protected]>
 S:	Maintained
 F:	arch/sandbox/
+F:	configs/sandbox*
 F:	doc/arch/sandbox.rst
 F:	drivers/*/*sandbox*.c
 F:	include/dt-bindings/*/sandbox*.h
configs/sandbox_nocmdline_defconfig new file +365 -0

365 lines not on this page · raw message

Signature · 1 line
2.43.0
#1 lore raw
Quoted 13 lines · Simon Glass

Something this breaks, so add a build to keep it working. Since sandbox enables a lot of options, it is a good board to use. The new config is created simply by copying the existing sandbox and turning off CMDLINE

Once we have tests for non-CMDLINE operation, this can be adjusted to run those tests.

Create a new build which will be picked up by CI. Update the maintainer entry as well.

---

Quoted 7 lines

Changes in v2:
- Create a new build instead of messing with CI

 MAINTAINERS                         |   1 +
 configs/sandbox_nocmdline_defconfig | 365 ++++++++++++++++++++++++++++
 2 files changed, 366 insertions(+)
 create mode 100644 configs/sandbox_nocmdline_defconfig

Please use the #include mechanism instead of a full config that will also now have to be kept in sync.

Signature · 1 line
Tom
#2 lore raw

Hi Tom,

Quoted 19 lines · Tom Rini
Quoted 16 lines · Simon Glass

Something this breaks, so add a build to keep it working. Since sandbox enables a lot of options, it is a good board to use. The new config is created simply by copying the existing sandbox and turning off CMDLINE

Once we have tests for non-CMDLINE operation, this can be adjusted to run those tests.

Create a new build which will be picked up by CI. Update the maintainer entry as well.

---

Changes in v2:
- Create a new build instead of messing with CI

Quoted 7 lines
Quoted 4 lines
 MAINTAINERS                         |   1 +
 configs/sandbox_nocmdline_defconfig | 365 ++++++++++++++++++++++++++++
 2 files changed, 366 insertions(+)
 create mode 100644 configs/sandbox_nocmdline_defconfig

Please use the #include mechanism instead of a full config that will also now have to be kept in sync.

Hmmm we still haven't come up with a way to deal with the #include mechanism in buildman. I've forgotten where it got to, or even what the problem was?

Regards,
Simon

#3 lore raw
Quoted 27 lines · Simon Glass

Hi Tom,

Quoted 24 lines · Tom Rini
Quoted 20 lines · Simon Glass

Something this breaks, so add a build to keep it working. Since sandbox enables a lot of options, it is a good board to use. The new config is created simply by copying the existing sandbox and turning off CMDLINE

Once we have tests for non-CMDLINE operation, this can be adjusted to run those tests.

Create a new build which will be picked up by CI. Update the maintainer entry as well.

---

Changes in v2:
- Create a new build instead of messing with CI

 MAINTAINERS                         |   1 +
 configs/sandbox_nocmdline_defconfig | 365 ++++++++++++++++++++++++++++
 2 files changed, 366 insertions(+)
 create mode 100644 configs/sandbox_nocmdline_defconfig
Quoted 6 lines
Quoted 2 lines

Please use the #include mechanism instead of a full config that will also now have to be kept in sync.

Hmmm we still haven't come up with a way to deal with the #include mechanism in buildman. I've forgotten where it got to, or even what the problem was?

I assume this is related to the issue I filed? Among the problems are that buildman doesn't "know" about the architecture for example in time and so thinks everything is sandbox (since that's the default). That won't be an issue for your use case here (we have a number of defconfigs today that work around this issue by setting CONFIG_ARM=y and then a few other options too, so that the resulting build ends up correct).

Signature · 1 line
Tom
#4 lore raw

Hi Tom,

Quoted 36 lines · Tom Rini
Quoted 27 lines · Simon Glass

Hi Tom,

Quoted 24 lines · Tom Rini
Quoted 20 lines · Simon Glass

Something this breaks, so add a build to keep it working. Since sandbox enables a lot of options, it is a good board to use. The new config is created simply by copying the existing sandbox and turning off CMDLINE

Once we have tests for non-CMDLINE operation, this can be adjusted to run those tests.

Create a new build which will be picked up by CI. Update the maintainer entry as well.

---

Changes in v2:
- Create a new build instead of messing with CI

 MAINTAINERS                         |   1 +
 configs/sandbox_nocmdline_defconfig | 365 ++++++++++++++++++++++++++++
 2 files changed, 366 insertions(+)
 create mode 100644 configs/sandbox_nocmdline_defconfig
Quoted 6 lines
Quoted 2 lines

Please use the #include mechanism instead of a full config that will also now have to be kept in sync.

Hmmm we still haven't come up with a way to deal with the #include mechanism in buildman. I've forgotten where it got to, or even what the problem was?

Quoted 6 lines

I assume this is related to the issue I filed? Among the problems are that buildman doesn't "know" about the architecture for example in time and so thinks everything is sandbox (since that's the default). That won't be an issue for your use case here (we have a number of defconfigs today that work around this issue by setting CONFIG_ARM=y and then a few other options too, so that the resulting build ends up correct).

Yes...OK so I think I understand. If we are happy with the '#include' scheme then I believe it would be easy enough to implement in buildman. As Caleb mentions, it could likely run the pre-processor first, or just process the #includes (which I prefer).

Is the '#include' in defconfigs documented somewhere in Linux or U-Boot? I really had no idea about this until you mentioned it.

Regards,
Simon

#5 lore raw
Quoted 46 lines · Simon Glass

Hi Tom,

Quoted 36 lines · Tom Rini
Quoted 27 lines · Simon Glass

Hi Tom,

Quoted 24 lines · Tom Rini
Quoted 20 lines · Simon Glass

Something this breaks, so add a build to keep it working. Since sandbox enables a lot of options, it is a good board to use. The new config is created simply by copying the existing sandbox and turning off CMDLINE

Once we have tests for non-CMDLINE operation, this can be adjusted to run those tests.

Create a new build which will be picked up by CI. Update the maintainer entry as well.

---

Changes in v2:
- Create a new build instead of messing with CI

 MAINTAINERS                         |   1 +
 configs/sandbox_nocmdline_defconfig | 365 ++++++++++++++++++++++++++++
 2 files changed, 366 insertions(+)
 create mode 100644 configs/sandbox_nocmdline_defconfig
Quoted 6 lines
Quoted 2 lines

Please use the #include mechanism instead of a full config that will also now have to be kept in sync.

Hmmm we still haven't come up with a way to deal with the #include mechanism in buildman. I've forgotten where it got to, or even what the problem was?

Quoted 6 lines

I assume this is related to the issue I filed? Among the problems are that buildman doesn't "know" about the architecture for example in time and so thinks everything is sandbox (since that's the default). That won't be an issue for your use case here (we have a number of defconfigs today that work around this issue by setting CONFIG_ARM=y and then a few other options too, so that the resulting build ends up correct).

Quoted 7 lines

Yes...OK so I think I understand. If we are happy with the '#include' scheme then I believe it would be easy enough to implement in buildman. As Caleb mentions, it could likely run the pre-processor first, or just process the #includes (which I prefer).

Is the '#include' in defconfigs documented somewhere in Linux or U-Boot? I really had no idea about this until you mentioned it.

It should be documented somewhere too, yes. But you did review the original in 2027e99e61aa :)

Signature · 1 line
Tom
#6 lore raw

Hi Tom,

Quoted 53 lines · Tom Rini
Quoted 51 lines · Simon Glass

Hi Tom,

Quoted 36 lines · Tom Rini
Quoted 27 lines · Simon Glass

Hi Tom,

Quoted 24 lines · Tom Rini
Quoted 20 lines · Simon Glass

Something this breaks, so add a build to keep it working. Since sandbox enables a lot of options, it is a good board to use. The new config is created simply by copying the existing sandbox and turning off CMDLINE

Once we have tests for non-CMDLINE operation, this can be adjusted to run those tests.

Create a new build which will be picked up by CI. Update the maintainer entry as well.

---

Changes in v2:
- Create a new build instead of messing with CI

 MAINTAINERS                         |   1 +
 configs/sandbox_nocmdline_defconfig | 365 ++++++++++++++++++++++++++++
 2 files changed, 366 insertions(+)
 create mode 100644 configs/sandbox_nocmdline_defconfig
Quoted 6 lines
Quoted 2 lines

Please use the #include mechanism instead of a full config that will also now have to be kept in sync.

Hmmm we still haven't come up with a way to deal with the #include mechanism in buildman. I've forgotten where it got to, or even what the problem was?

Quoted 6 lines

I assume this is related to the issue I filed? Among the problems are that buildman doesn't "know" about the architecture for example in time and so thinks everything is sandbox (since that's the default). That won't be an issue for your use case here (we have a number of defconfigs today that work around this issue by setting CONFIG_ARM=y and then a few other options too, so that the resulting build ends up correct).

Yes...OK so I think I understand. If we are happy with the '#include' scheme then I believe it would be easy enough to implement in buildman. As Caleb mentions, it could likely run the pre-processor first, or just process the #includes (which I prefer).

Quoted 5 lines
Quoted 2 lines

Is the '#include' in defconfigs documented somewhere in Linux or U-Boot? I really had no idea about this until you mentioned it.

It should be documented somewhere too, yes. But you did review the original in 2027e99e61aa :)

Yes, although my question was never addressed [1]

Regards,
Simon

[1] https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/

#7 lore raw
In reply to Simon Glass
Quoted 27 lines · Simon Glass

Hi Tom,

Quoted 24 lines · Tom Rini
Quoted 20 lines · Simon Glass

Something this breaks, so add a build to keep it working. Since sandbox enables a lot of options, it is a good board to use. The new config is created simply by copying the existing sandbox and turning off CMDLINE

Once we have tests for non-CMDLINE operation, this can be adjusted to run those tests.

Create a new build which will be picked up by CI. Update the maintainer entry as well.

---

Changes in v2:
- Create a new build instead of messing with CI

 MAINTAINERS                         |   1 +
 configs/sandbox_nocmdline_defconfig | 365 ++++++++++++++++++++++++++++
 2 files changed, 366 insertions(+)
 create mode 100644 configs/sandbox_nocmdline_defconfig
Quoted 6 lines
Quoted 2 lines

Please use the #include mechanism instead of a full config that will also now have to be kept in sync.

Hmmm we still haven't come up with a way to deal with the #include mechanism in buildman. I've forgotten where it got to, or even what the problem was?

qcm6490_defconfig needs to re-define CONFIG_ARM=y for buildman to be happy.

Why is buildman looking at the defconfig anyway? Maybe it could just run the pre-processor first?

Quoted 3 lines

Regards,
Simon

Signature · 1 line
// Caleb (they/them)
#8 lore raw

Hi Caleb, Tom,

Quoted 34 lines · Caleb Connolly
Quoted 30 lines · Simon Glass

Hi Tom,

Quoted 26 lines · Tom Rini
Quoted 13 lines · Simon Glass

Something this breaks, so add a build to keep it working. Since sandbox enables a lot of options, it is a good board to use. The new config is created simply by copying the existing sandbox and turning off CMDLINE

Once we have tests for non-CMDLINE operation, this can be adjusted to run those tests.

Create a new build which will be picked up by CI. Update the maintainer entry as well.

---

Quoted 7 lines

Changes in v2:
- Create a new build instead of messing with CI

 MAINTAINERS                         |   1 +
 configs/sandbox_nocmdline_defconfig | 365 ++++++++++++++++++++++++++++
 2 files changed, 366 insertions(+)
 create mode 100644 configs/sandbox_nocmdline_defconfig

Please use the #include mechanism instead of a full config that will also now have to be kept in sync.

Quoted 8 lines
Quoted 3 lines

Hmmm we still haven't come up with a way to deal with the #include mechanism in buildman. I've forgotten where it got to, or even what the problem was?

qcm6490_defconfig needs to re-define CONFIG_ARM=y for buildman to be happy.

Why is buildman looking at the defconfig anyway? Maybe it could just run the pre-processor first?

It could, but I really want buildman to understand things. If we can say that '#include' in the file is the only thing it needs to deal with, then I believe we can update Kconfiglib to deal with it, or perhaps preprocess the file. That uncertainty (as to what the 'spec' actually is) is what has held me back from looking at it too seriously.

Regards,
Simon

#9 lore raw
Quoted 46 lines · Simon Glass

Hi Caleb, Tom,

Quoted 34 lines · Caleb Connolly
Quoted 30 lines · Simon Glass

Hi Tom,

Quoted 26 lines · Tom Rini
Quoted 13 lines · Simon Glass

Something this breaks, so add a build to keep it working. Since sandbox enables a lot of options, it is a good board to use. The new config is created simply by copying the existing sandbox and turning off CMDLINE

Once we have tests for non-CMDLINE operation, this can be adjusted to run those tests.

Create a new build which will be picked up by CI. Update the maintainer entry as well.

---

Quoted 7 lines

Changes in v2:
- Create a new build instead of messing with CI

 MAINTAINERS                         |   1 +
 configs/sandbox_nocmdline_defconfig | 365 ++++++++++++++++++++++++++++
 2 files changed, 366 insertions(+)
 create mode 100644 configs/sandbox_nocmdline_defconfig

Please use the #include mechanism instead of a full config that will also now have to be kept in sync.

Quoted 8 lines
Quoted 3 lines

Hmmm we still haven't come up with a way to deal with the #include mechanism in buildman. I've forgotten where it got to, or even what the problem was?

qcm6490_defconfig needs to re-define CONFIG_ARM=y for buildman to be happy.

Why is buildman looking at the defconfig anyway? Maybe it could just run the pre-processor first?

Quoted 6 lines

It could, but I really want buildman to understand things. If we can say that '#include' in the file is the only thing it needs to deal with, then I believe we can update Kconfiglib to deal with it, or perhaps preprocess the file. That uncertainty (as to what the 'spec' actually is) is what has held me back from looking at it too seriously.

Given https://github.com/llvm/llvm-project/issues/78778 I do not like preprocessing the files. I want to stress that scripts/kconfig/merge_config.sh is the canonical way to merge fragments. So if taking the Kconfiglib approach, implementing the above but in python would be good (and we can suggest that #include be the normal way one file says to use other fragments but not let us be blocked on making this better).

Signature · 1 line
Tom