sandbox: Add a build without CMDLINE
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
@@ -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
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.
Signed-off-by Simon Glass <[email protected]>---
Quoted 7 lines
Changes in v2:
- Create a new build instead of messing with CIMAINTAINERS | 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
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.
Signed-off-by Simon Glass <[email protected]>---
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_defconfigPlease 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
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.
Signed-off-by Simon Glass <[email protected]>---
Changes in v2:
- Create a new build instead of messing with CIMAINTAINERS | 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
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.
Signed-off-by Simon Glass <[email protected]>---
Changes in v2:
- Create a new build instead of messing with CIMAINTAINERS | 1 + configs/sandbox_nocmdline_defconfig | 365 ++++++++++++++++++++++++++++ 2 files changed, 366 insertions(+) create mode 100644 configs/sandbox_nocmdline_defconfigQuoted 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=yand 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
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.
Signed-off-by Simon Glass <[email protected]>---
Changes in v2:
- Create a new build instead of messing with CIMAINTAINERS | 1 + configs/sandbox_nocmdline_defconfig | 365 ++++++++++++++++++++++++++++ 2 files changed, 366 insertions(+) create mode 100644 configs/sandbox_nocmdline_defconfigQuoted 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=yand 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
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.
Signed-off-by Simon Glass <[email protected]>---
Changes in v2:
- Create a new build instead of messing with CIMAINTAINERS | 1 + configs/sandbox_nocmdline_defconfig | 365 ++++++++++++++++++++++++++++ 2 files changed, 366 insertions(+) create mode 100644 configs/sandbox_nocmdline_defconfigQuoted 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=yand 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]/
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.
Signed-off-by Simon Glass <[email protected]>---
Changes in v2:
- Create a new build instead of messing with CIMAINTAINERS | 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)
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.
Signed-off-by Simon Glass <[email protected]>---
Quoted 7 lines
Changes in v2:
- Create a new build instead of messing with CIMAINTAINERS | 1 + configs/sandbox_nocmdline_defconfig | 365 ++++++++++++++++++++++++++++ 2 files changed, 366 insertions(+) create mode 100644 configs/sandbox_nocmdline_defconfigPlease 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_defconfigneeds to re-defineCONFIG_ARM=yfor 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
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.
Signed-off-by Simon Glass <[email protected]>---
Quoted 7 lines
Changes in v2:
- Create a new build instead of messing with CIMAINTAINERS | 1 + configs/sandbox_nocmdline_defconfig | 365 ++++++++++++++++++++++++++++ 2 files changed, 366 insertions(+) create mode 100644 configs/sandbox_nocmdline_defconfigPlease 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_defconfigneeds to re-defineCONFIG_ARM=yfor 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