switching to single .config configuration issues
Hi everyone,
I'm working on the latest u-boot 2015.04 trying to rebase my repository to latest code. And I have question regarding patch e02ee2548afe (kconfig: switch to single .config configuration)
Issues that I face in the current solution (single .config):
For my usage most of the CONFIG options will not supported in the SPL, we need the SPL very tiny and most of the CONFIG will be enabled in the u-boot, need to undef/disable(set=n) for every CONFIG in scripts/Makefile.uncmd_spl/ include/config_uncmd_spl.h Also for future usage if we want to delete the defines of the commands from the include file and move it to defconfig file, then need to undef them in the SPL code.
Do you planning for another solution for this issue?
Thanks,
Hanna
+Masahiro (new address)
Hi Hanna,
Quoted 6 lines · Hanna Hawa
Hi everyone,
I?m working on the latest u-boot 2015.04 trying to rebase my repository to latest code.
I would suggest going with upstream/master (targeting 2015.07) since there are several driver model changes since 2015.04 (USB, PCI, Ethernet). There are still patches going in but the bulk of it should be there.
Quoted 8 lines
And I have question regarding patch
e02ee2548afe(kconfig: switch to single .config configuration)Issues that I face in the current solution (single .config):
Quoted 8 lines
For my usage most of the CONFIG options will not supported in the SPL, we need the SPL very tiny and most of the CONFIG will be enabled in the u-boot, need to undef/disable(set=n) for every CONFIG in
scripts/Makefile.uncmd_spl/include/config_uncmd_spl.hAlso for future usage if we want to delete the defines of the commands from the include file and move it to defconfig file, then need to undef them in the SPL code.
Masahiro is the expert here. The idea is to use SPL-specific options for SPL. For example CONFIG_SPL_I2C_SUPPORT. This is much the same as before.
I suggest you create some SPL options for your new features, so that they are only enabled in SPL when you want them.
Quoted 4 lines
Do you planning for another solution for this issue?
Also, if you push your tree to github (or somewhere) I or Masahiro might be able to comment on specifics.
Regards,
Simon
Hey Simon, Masahiro
May I suggest an alternative solution to this issue.
What if each Kconfigs option could be set as "y" (compile for u-boot only )or "s" (compile for u-boot and SPL) Just as the kernel can set Kconfig to "y" or "m".
With minor modifications to the Makefile, SPL target will compile "obj-s" and u-boot target will compile "obj-s" and "obj-y"
What do you think ?
Yehuda
Quoted 56 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Wednesday, April 29, 2015 6:06
To: Hanna Hawa
Cc: u-boot at lists.denx.de; Yehuda Yitschak; Masahiro Yamada
Subject: Re: switching to single .config configuration issues+Masahiro (new address)
Hi Hanna,
Quoted 6 lines · Hanna Hawa
Hi everyone,
I?m working on the latest u-boot 2015.04 trying to rebase my repository to latest code.
I would suggest going with upstream/master (targeting 2015.07) since there are several driver model changes since 2015.04 (USB, PCI, Ethernet). There are still patches going in but the bulk of it should be there.
Quoted 8 lines
And I have question regarding patch
e02ee2548afe(kconfig: switch to single .config configuration)Issues that I face in the current solution (single .config):
Quoted 8 lines
For my usage most of the CONFIG options will not supported in the SPL, we need the SPL very tiny and most of the CONFIG will be enabled in the u-boot, need to undef/disable(set=n) for every CONFIG in
scripts/Makefile.uncmd_spl/include/config_uncmd_spl.hAlso for future usage if we want to delete the defines of the commands from the include file and move it to defconfig file, then need to undef them in the SPL code.
Masahiro is the expert here. The idea is to use SPL-specific options for SPL. For example
CONFIG_SPL_I2C_SUPPORT. This is much the same as before.I suggest you create some SPL options for your new features, so that they are only enabled in SPL when you want them.
Quoted 4 lines
Do you planning for another solution for this issue?
Also, if you push your tree to github (or somewhere) I or Masahiro might be able to comment on specifics.
Regards,
Simon
Hi Yehuda,
2015-04-29 14:23 GMT+09:00 Yehuda Yitschak <[email protected]>:
Quoted 10 lines
Hey Simon, Masahiro
May I suggest an alternative solution to this issue.
What if each Kconfigs option could be set as "y" (compile for u-boot only )or "s" (compile for u-boot and SPL) Just as the kernel can set
Kconfigto "y" or "m".With minor modifications to the
Makefile, SPL target will compile "obj-s" and u-boot target will compile "obj-s" and "obj-y"What do you think ?
Interesting.
A little comments.
- Is there any possibility that some files should be compiled for SPL only? (I do not think we have much.)
Perhaps, obj-y : for U-boot only
obj-s : for SPL only
oby-ys: for both
I am not sure..
- This idea is only applicable for bool options.
We still have to keep duplication for int/hex options such asCONFIG_SPL_TEXT_BASE.
But, this idea will help clean up much because most of configs are boolean.
Best Regards
Masahiro Yamada
Quoted 60 lines
Quoted 49 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Wednesday, April 29, 2015 6:06
To: Hanna Hawa
Cc: u-boot at lists.denx.de; Yehuda Yitschak; Masahiro Yamada
Subject: Re: switching to single .config configuration issues+Masahiro (new address)
Hi Hanna,
Quoted 6 lines · Hanna Hawa
Hi everyone,
I?m working on the latest u-boot 2015.04 trying to rebase my repository to latest code.
I would suggest going with upstream/master (targeting 2015.07) since there are several driver model changes since 2015.04 (USB, PCI, Ethernet). There are still patches going in but the bulk of it should be there.
Quoted 8 lines
And I have question regarding patch
e02ee2548afe(kconfig: switch to single .config configuration)Issues that I face in the current solution (single .config):
Quoted 8 lines
For my usage most of the CONFIG options will not supported in the SPL, we need the SPL very tiny and most of the CONFIG will be enabled in the u-boot, need to undef/disable(set=n) for every CONFIG in
scripts/Makefile.uncmd_spl/include/config_uncmd_spl.hAlso for future usage if we want to delete the defines of the commands from the include file and move it to defconfig file, then need to undef them in the SPL code.
Masahiro is the expert here. The idea is to use SPL-specific options for SPL. For example
CONFIG_SPL_I2C_SUPPORT. This is much the same as before.I suggest you create some SPL options for your new features, so that they are only enabled in SPL when you want them.
Quoted 3 lines
Quoted 7 lines
Quoted 1 line
Do you planning for another solution for this issue?
Also, if you push your tree to github (or somewhere) I or Masahiro might be able to comment on specifics.
Regards,
Simon_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Signature · 2 lines
Best Regards Masahiro Yamada
Hey Masahiro
Quoted 29 lines
-----Original Message-----
From: Masahiro Yamada [mailto:yamada.masahiro at socionext.com]
Sent: Thursday, April 30, 2015 4:46
To: Yehuda Yitschak
Cc: Simon Glass; Hanna Hawa; u-boot at lists.denx.de
Subject: Re: [U-Boot] switching to single .config configuration issuesHi Yehuda,
2015-04-29 14:23 GMT+09:00 Yehuda Yitschak <[email protected]>:
Quoted 6 lines
Hey Simon, Masahiro
May I suggest an alternative solution to this issue.
What if each Kconfigs option could be set as "y" (compile for u-boot only )or "s" (compile for u-boot and SPL) Just as the kernel can set
Kconfigto "y" or "m".
Quoted 2 lines
With minor modifications to the
Makefile, SPL target will compile "obj-s"and u-boot target will compile "obj-s" and "obj-y"
Quoted 2 lines
What do you think ?
Interesting.
A little comments.
Quoted 7 lines
- Is there any possibility that some files should be compiled for SPL only? (I do not think we have much.)
Perhaps, obj-y : for U-boot only
obj-s : for SPL only
oby-ys: for both
I am not sure..
How about "a" (as in all targets) instead of "sy". It will look better in the menuconfig square brackets Maybe TPL should also be added as "t" option.
Quoted 81 lines
- This idea is only applicable for bool options.
We still have to keep duplication for int/hex options such asCONFIG_SPL_TEXT_BASE.But, this idea will help clean up much because most of configs are boolean.
Best Regards
Masahiro YamadaQuoted 2 lines
Quoted 2 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of SimonGlass
Quoted 14 lines
Quoted 14 lines
Sent: Wednesday, April 29, 2015 6:06
To: Hanna Hawa
Cc: u-boot at lists.denx.de; Yehuda Yitschak; Masahiro Yamada
Subject: Re: switching to single .config configuration issues+Masahiro (new address)
Hi Hanna,
Quoted 4 lines · Hanna Hawa
Hi everyone,
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
I?m working on the latest u-boot 2015.04 trying to rebase my repository to latest code.
I would suggest going with upstream/master (targeting 2015.07) since there are several driver model changes since 2015.04 (USB, PCI, Ethernet). There are still patches going in but the bulk of it should be
there.
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
And I have question regarding patch
e02ee2548afe(kconfig: switch to single .config configuration)Issues that I face in the current solution (single .config):
For my usage most of the CONFIG options will not supported in the SPL, we need the SPL very tiny and most of the CONFIG will be enabled in the u-boot, need to undef/disable(set=n) for every CONFIG in
scripts/Makefile.uncmd_spl/include/config_uncmd_spl.hQuoted 5 lines
Quoted 5 lines
Quoted 3 lines
Also for future usage if we want to delete the defines of the commands from the include file and move it to defconfig file, then need to undef them in the SPL code.
Masahiro is the expert here. The idea is to use SPL-specific options for
SPL.
Quoted 13 lines
Quoted 13 lines
For example
CONFIG_SPL_I2C_SUPPORT. This is much the same as before.I suggest you create some SPL options for your new features, so that they are only enabled in SPL when you want them.
Quoted 4 lines
Do you planning for another solution for this issue?
Also, if you push your tree to github (or somewhere) I or Masahiro might be able to comment on specifics.
Quoted 6 lines
Quoted 2 lines
Regards,
Simon_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot--
Best Regards
Masahiro Yamada
Hi Yehuda,
Quoted 34 lines · Yehuda Yitschak
Hey Masahiro
Quoted 32 lines
-----Original Message-----
From: Masahiro Yamada [mailto:yamada.masahiro at socionext.com]
Sent: Thursday, April 30, 2015 4:46
To: Yehuda Yitschak
Cc: Simon Glass; Hanna Hawa; u-boot at lists.denx.de
Subject: Re: [U-Boot] switching to single .config configuration issuesHi Yehuda,
2015-04-29 14:23 GMT+09:00 Yehuda Yitschak <[email protected]>:
Quoted 6 lines
Hey Simon, Masahiro
May I suggest an alternative solution to this issue.
What if each Kconfigs option could be set as "y" (compile for u-boot only )or "s" (compile for u-boot and SPL) Just as the kernel can set
Kconfigto "y" or "m".
Quoted 2 lines
With minor modifications to the
Makefile, SPL target will compile "obj-s"and u-boot target will compile "obj-s" and "obj-y"
Quoted 2 lines
What do you think ?
Interesting.
A little comments.
- Is there any possibility that some files should be compiled for SPL only? (I do not think we have much.)
Quoted 14 lines
Quoted 4 lines
Perhaps, obj-y : for U-boot only
obj-s : for SPL only
oby-ys: for both
I am not sure..How about "a" (as in all targets) instead of "sy". It will look better in the menuconfig square brackets Maybe TPL should also be added as "t" option.
Quoted 6 lines
- This idea is only applicable for bool options.
We still have to keep duplication for int/hex options such asCONFIG_SPL_TEXT_BASE.But, this idea will help clean up much because most of configs are boolean.
I am still not sure what sorts of things are getting compiled int SPL, and thus causing problems. Can you please provide a few details?
Quoted 72 lines
Quoted 72 lines
Best Regards
Masahiro YamadaQuoted 2 lines
Quoted 2 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of SimonGlass
Quoted 14 lines
Quoted 14 lines
Sent: Wednesday, April 29, 2015 6:06
To: Hanna Hawa
Cc: u-boot at lists.denx.de; Yehuda Yitschak; Masahiro Yamada
Subject: Re: switching to single .config configuration issues+Masahiro (new address)
Hi Hanna,
Quoted 4 lines · Hanna Hawa
Hi everyone,
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
I?m working on the latest u-boot 2015.04 trying to rebase my repository to latest code.
I would suggest going with upstream/master (targeting 2015.07) since there are several driver model changes since 2015.04 (USB, PCI, Ethernet). There are still patches going in but the bulk of it should be
there.
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
And I have question regarding patch
e02ee2548afe(kconfig: switch to single .config configuration)Issues that I face in the current solution (single .config):
For my usage most of the CONFIG options will not supported in the SPL, we need the SPL very tiny and most of the CONFIG will be enabled in the u-boot, need to undef/disable(set=n) for every CONFIG in
scripts/Makefile.uncmd_spl/include/config_uncmd_spl.hQuoted 5 lines
Quoted 5 lines
Quoted 3 lines
Also for future usage if we want to delete the defines of the commands from the include file and move it to defconfig file, then need to undef them in the SPL code.
Masahiro is the expert here. The idea is to use SPL-specific options for
SPL.
Quoted 19 lines
Quoted 8 lines
For example
CONFIG_SPL_I2C_SUPPORT. This is much the same as before.I suggest you create some SPL options for your new features, so that they are only enabled in SPL when you want them.
Quoted 3 lines
Quoted 7 lines
Quoted 1 line
Do you planning for another solution for this issue?
Also, if you push your tree to github (or somewhere) I or Masahiro might be able to comment on specifics.
Regards,
Simon_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Quoted 3 lines
Quoted 3 lines
--
Best Regards
Masahiro Yamada
Regards,
Simon
Hey Simon
Quoted 60 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Sunday, May 03, 2015 21:55
To: Yehuda Yitschak
Cc: Masahiro Yamada; Hanna Hawa; u-boot at lists.denx.de
Subject: Re: [U-Boot] switching to single .config configuration issuesHi Yehuda,
Quoted 36 lines · Yehuda Yitschak
Hey Masahiro
Quoted 34 lines
-----Original Message-----
From: Masahiro Yamada [mailto:yamada.masahiro at socionext.com]
Sent: Thursday, April 30, 2015 4:46
To: Yehuda Yitschak
Cc: Simon Glass; Hanna Hawa; u-boot at lists.denx.de
Subject: Re: [U-Boot] switching to single .config configuration issuesHi Yehuda,
2015-04-29 14:23 GMT+09:00 Yehuda Yitschak <[email protected]>:
Quoted 7 lines
Hey Simon, Masahiro
May I suggest an alternative solution to this issue.
What if each Kconfigs option could be set as "y" (compile for u-boot only )or "s" (compile for u-boot and SPL) Just as the kernel can set
Kconfigto "y" or "m".
Quoted 2 lines
With minor modifications to the
Makefile, SPL target will compile "obj-s"and u-boot target will compile "obj-s" and "obj-y"
Quoted 2 lines
What do you think ?
Interesting.
A little comments.
- Is there any possibility that some files should be compiled for SPL only? (I do not think we have much.)
Quoted 7 lines
Quoted 4 lines
Perhaps, obj-y : for U-boot only
obj-s : for SPL only
oby-ys: for both
I am not sure..How about "a" (as in all targets) instead of "sy". It will look better in the menuconfig square brackets Maybe TPL should also be added as "t"
option.
Quoted 6 lines
Quoted 6 lines
- This idea is only applicable for bool options.
We still have to keep duplication for int/hex options such asCONFIG_SPL_TEXT_BASE.
Quoted 5 lines
Quoted 1 line
Quoted 1 line
But, this idea will help clean up much because most of configs are
boolean.
I am still not sure what sorts of things are getting compiled int SPL, and thus causing problems. Can you please provide a few details?
We are looking for a very small SPL image that will fit into internal SRAM.
Therefore we want to compile the minimal set of drivers into the SPL.
We have added all our drivers to Kconfig infrastructure (not mainlined yet) and so each driver We add to u-boot (like PCIe) will be added to SPL and would require manual removal using the dedicated H file
Quoted 82 lines
Quoted 46 lines
Quoted 46 lines
Best Regards
Masahiro YamadaQuoted 2 lines
Quoted 2 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of SimonGlass
Quoted 14 lines
Quoted 14 lines
Sent: Wednesday, April 29, 2015 6:06
To: Hanna Hawa
Cc: u-boot at lists.denx.de; Yehuda Yitschak; Masahiro Yamada
Subject: Re: switching to single .config configuration issues+Masahiro (new address)
Hi Hanna,
Quoted 4 lines · Hanna Hawa
Hi everyone,
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
I?m working on the latest u-boot 2015.04 trying to rebase my repository to latest code.
I would suggest going with upstream/master (targeting 2015.07) since there are several driver model changes since 2015.04 (USB, PCI, Ethernet). There are still patches going in but the bulk of it should be
there.
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
And I have question regarding patch
e02ee2548afe(kconfig:
switch to single .config configuration)Issues that I face in the current solution (single .config):
For my usage most of the CONFIG options will not supported in the SPL, we need the SPL very tiny and most of the CONFIG will be enabled in the u-boot, need to undef/disable(set=n) for every CONFIG in
scripts/Makefile.uncmd_spl/include/config_uncmd_spl.hQuoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Also for future usage if we want to delete the defines of the commands from the include file and move it to defconfig file, then need to undef them in the SPL code.
Masahiro is the expert here. The idea is to use SPL-specific options for
SPL.
Quoted 1 line
Quoted 1 line
For example
CONFIG_SPL_I2C_SUPPORT. This is much the same asbefore.
Quoted 21 lines
Quoted 21 lines
Quoted 18 lines
Quoted 7 lines
I suggest you create some SPL options for your new features, so that they are only enabled in SPL when you want them.
Quoted 3 lines
Quoted 7 lines
Quoted 1 line
Do you planning for another solution for this issue?
Also, if you push your tree to github (or somewhere) I or Masahiro might be able to comment on specifics.
Regards,
Simon_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-bootQuoted 3 lines
Quoted 3 lines
--
Best Regards
Masahiro YamadaRegards,
Simon
Hi,
Quoted 65 lines · Yehuda Yitschak
Hey Simon
Quoted 63 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Sunday, May 03, 2015 21:55
To: Yehuda Yitschak
Cc: Masahiro Yamada; Hanna Hawa; u-boot at lists.denx.de
Subject: Re: [U-Boot] switching to single .config configuration issuesHi Yehuda,
Quoted 36 lines · Yehuda Yitschak
Hey Masahiro
Quoted 34 lines
-----Original Message-----
From: Masahiro Yamada [mailto:yamada.masahiro at socionext.com]
Sent: Thursday, April 30, 2015 4:46
To: Yehuda Yitschak
Cc: Simon Glass; Hanna Hawa; u-boot at lists.denx.de
Subject: Re: [U-Boot] switching to single .config configuration issuesHi Yehuda,
2015-04-29 14:23 GMT+09:00 Yehuda Yitschak <[email protected]>:
Quoted 7 lines
Hey Simon, Masahiro
May I suggest an alternative solution to this issue.
What if each Kconfigs option could be set as "y" (compile for u-boot only )or "s" (compile for u-boot and SPL) Just as the kernel can set
Kconfigto "y" or "m".
Quoted 2 lines
With minor modifications to the
Makefile, SPL target will compile "obj-s"and u-boot target will compile "obj-s" and "obj-y"
Quoted 2 lines
What do you think ?
Interesting.
A little comments.
- Is there any possibility that some files should be compiled for SPL only? (I do not think we have much.)
Quoted 7 lines
Quoted 4 lines
Perhaps, obj-y : for U-boot only
obj-s : for SPL only
oby-ys: for both
I am not sure..How about "a" (as in all targets) instead of "sy". It will look better in the menuconfig square brackets Maybe TPL should also be added as "t"
option.
Quoted 7 lines
Quoted 7 lines
- This idea is only applicable for bool options.
We still have to keep duplication for int/hex options such asCONFIG_SPL_TEXT_BASE.But, this idea will help clean up much because most of configs are
boolean.
Quoted 7 lines
Quoted 2 lines
I am still not sure what sorts of things are getting compiled int SPL, and thus causing problems. Can you please provide a few details?
We are looking for a very small SPL image that will fit into internal SRAM.
Therefore we want to compile the minimal set of drivers into the SPL.
We have added all our drivers toKconfiginfrastructure (not mainlined yet) and so each driver We add to u-boot (like PCIe) will be added to SPL and would require manual removal using the dedicated H file
I see. Let's see what Masahiro thinks about this. One good thing with this proposal is that we would still only have a single config source file (.config), but I cannot see how it could be implemented without having multiple output autoconf.h files.
How many options do you need to add for manual removal?
Regards,
Simon
Quoted 83 lines
Quoted 83 lines
Quoted 47 lines
Quoted 47 lines
Best Regards
Masahiro YamadaQuoted 2 lines
Quoted 2 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of SimonGlass
Quoted 14 lines
Quoted 14 lines
Sent: Wednesday, April 29, 2015 6:06
To: Hanna Hawa
Cc: u-boot at lists.denx.de; Yehuda Yitschak; Masahiro Yamada
Subject: Re: switching to single .config configuration issues+Masahiro (new address)
Hi Hanna,
Quoted 4 lines · Hanna Hawa
Hi everyone,
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
I?m working on the latest u-boot 2015.04 trying to rebase my repository to latest code.
I would suggest going with upstream/master (targeting 2015.07) since there are several driver model changes since 2015.04 (USB, PCI, Ethernet). There are still patches going in but the bulk of it should be
there.
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
And I have question regarding patch
e02ee2548afe(kconfig:
switch to single .config configuration)Issues that I face in the current solution (single .config):
For my usage most of the CONFIG options will not supported in the SPL, we need the SPL very tiny and most of the CONFIG will be enabled in the u-boot, need to undef/disable(set=n) for every CONFIG in
scripts/Makefile.uncmd_spl/include/config_uncmd_spl.hQuoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Also for future usage if we want to delete the defines of the commands from the include file and move it to defconfig file, then need to undef them in the SPL code.
Masahiro is the expert here. The idea is to use SPL-specific options for
SPL.
Quoted 1 line
Quoted 1 line
For example
CONFIG_SPL_I2C_SUPPORT. This is much the same asbefore.
Quoted 21 lines
Quoted 21 lines
Quoted 18 lines
Quoted 7 lines
I suggest you create some SPL options for your new features, so that they are only enabled in SPL when you want them.
Quoted 3 lines
Quoted 7 lines
Quoted 1 line
Do you planning for another solution for this issue?
Also, if you push your tree to github (or somewhere) I or Masahiro might be able to comment on specifics.
Regards,
Simon_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-bootQuoted 3 lines
Quoted 3 lines
--
Best Regards
Masahiro YamadaRegards,
Simon
Hi Simon
Quoted 92 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Tuesday, May 05, 2015 6:28
To: Yehuda Yitschak
Cc: Masahiro Yamada; Hanna Hawa; u-boot at lists.denx.de
Subject: Re: [U-Boot] switching to single .config configuration issuesHi,
Quoted 4 lines · Yehuda Yitschak
Hey Simon
Quoted 2 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of SimonGlass
Quoted 9 lines
Quoted 9 lines
Sent: Sunday, May 03, 2015 21:55
To: Yehuda Yitschak
Cc: Masahiro Yamada; Hanna Hawa; u-boot at lists.denx.de
Subject: Re: [U-Boot] switching to single .config configuration issuesHi Yehuda,
On 30 April 2015 at 01:21, Yehuda Yitschak <[email protected]>
Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Hey Masahiro
Quoted 8 lines
-----Original Message-----
From: Masahiro Yamada [mailto:yamada.masahiro at socionext.com]
Sent: Thursday, April 30, 2015 4:46
To: Yehuda Yitschak
Cc: Simon Glass; Hanna Hawa; u-boot at lists.denx.de
Subject: Re: [U-Boot] switching to single .config configuration issuesQuoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Hi Yehuda,
2015-04-29 14:23 GMT+09:00 Yehuda Yitschak
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 7 lines
Hey Simon, Masahiro
May I suggest an alternative solution to this issue.
What if each Kconfigs option could be set as "y" (compile for u-boot only )or "s" (compile for u-boot and SPL) Just as the kernel can set
Kconfigto "y" or "m".
Quoted 2 lines
With minor modifications to the
Makefile, SPL target will compile"obj-s"
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
and u-boot target will compile "obj-s" and "obj-y"
Quoted 2 lines
What do you think ?
Interesting.
A little comments.
- Is there any possibility that some files should be compiled for SPL
only?
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 6 lines
(I do not think we have much.)
Perhaps, obj-y : for U-boot only
obj-s : for SPL only
oby-ys: for both
I am not sure..How about "a" (as in all targets) instead of "sy". It will look better in the menuconfig square brackets Maybe TPL should also be
added as "t"
Quoted 11 lines
Quoted 11 lines
option.
Quoted 8 lines
Quoted 8 lines
- This idea is only applicable for bool options.
We still have to keep duplication for int/hex options such asCONFIG_SPL_TEXT_BASE.But, this idea will help clean up much because most of configs
areboolean.
Quoted 8 lines
Quoted 2 lines
I am still not sure what sorts of things are getting compiled int SPL, and thus causing problems. Can you please provide a few details?
We are looking for a very small SPL image that will fit into internal SRAM. Therefore we want to compile the minimal set of drivers into the SPL. We have added all our drivers to
Kconfiginfrastructure (not mainlined yet) and so each driver We add to u-boot (like PCIe) will be added to SPL and would require manual removal using the dedicated H file
Quoted 4 lines
I see. Let's see what Masahiro thinks about this. One good thing with this proposal is that we would still only have a single config source file (.config), but I cannot see how it could be implemented without having multiple output
autoconf.hfiles.
Linux actually uses a single autoconf.h file by suffixing module configs with _MODULE. Then all the other build scripts somehow take advantage of that
Quoted 2 lines
How many options do you need to add for manual removal?
I don?t have the exact count but somewhere around 10-20.
However I think the number itself is not the issue.
The thing is that you have to update this list every time you modify your defconfig otherwise your SPL start bloating. That is a bit of a nuisance considering defconfig changes may be frequent during development and ramp-up time
Quoted 90 lines
Regards,
SimonQuoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Best Regards
Masahiro YamadaQuoted 2 lines
Quoted 2 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf OfSimon
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Glass
Quoted 10 lines
Quoted 10 lines
Sent: Wednesday, April 29, 2015 6:06
To: Hanna Hawa
Cc: u-boot at lists.denx.de; Yehuda Yitschak; Masahiro Yamada
Subject: Re: switching to single .config configuration issues+Masahiro (new address)
Hi Hanna,
On 27 April 2015 at 07:43, Hanna Hawa <[email protected]>
Quoted 63 lines · wrote:
Quoted 63 lines
Quoted 27 lines
Quoted 27 lines
Quoted 11 lines
Quoted 11 lines
Quoted 6 lines
Hi everyone,
I?m working on the latest u-boot 2015.04 trying to rebase my repository to latest code.
I would suggest going with upstream/master (targeting 2015.07) since there are several driver model changes since 2015.04 (USB, PCI, Ethernet). There are still patches going in but the bulk of it should be
there.
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
And I have question regarding patch
e02ee2548afe(kconfig:
switch to single .config configuration)Issues that I face in the current solution (single .config):
For my usage most of the CONFIG options will not supported in the SPL, we need the SPL very tiny and most of the CONFIG will be enabled in the u-boot, need to undef/disable(set=n) for every CONFIG in
scripts/Makefile.uncmd_spl/include/config_uncmd_spl.hQuoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Also for future usage if we want to delete the defines of the commands from the include file and move it to defconfig file, then need to undef them in the SPL code.
Masahiro is the expert here. The idea is to use SPL-specific options for
SPL.
Quoted 1 line
Quoted 1 line
For example
CONFIG_SPL_I2C_SUPPORT. This is much the same asbefore.
Quoted 21 lines
Quoted 21 lines
Quoted 18 lines
Quoted 7 lines
I suggest you create some SPL options for your new features, so that they are only enabled in SPL when you want them.
Quoted 3 lines
Quoted 7 lines
Quoted 1 line
Do you planning for another solution for this issue?
Also, if you push your tree to github (or somewhere) I or Masahiro might be able to comment on specifics.
Regards,
Simon_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-bootQuoted 3 lines
Quoted 3 lines
--
Best Regards
Masahiro YamadaRegards,
Simon
Hi.
2015-05-05 20:16 GMT+09:00 Yehuda Yitschak <[email protected]>:
Quoted 93 lines
Hi Simon
Quoted 91 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Tuesday, May 05, 2015 6:28
To: Yehuda Yitschak
Cc: Masahiro Yamada; Hanna Hawa; u-boot at lists.denx.de
Subject: Re: [U-Boot] switching to single .config configuration issuesHi,
Quoted 4 lines · Yehuda Yitschak
Hey Simon
Quoted 2 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of SimonGlass
Quoted 9 lines
Quoted 9 lines
Sent: Sunday, May 03, 2015 21:55
To: Yehuda Yitschak
Cc: Masahiro Yamada; Hanna Hawa; u-boot at lists.denx.de
Subject: Re: [U-Boot] switching to single .config configuration issuesHi Yehuda,
On 30 April 2015 at 01:21, Yehuda Yitschak <[email protected]>
Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Hey Masahiro
Quoted 8 lines
-----Original Message-----
From: Masahiro Yamada [mailto:yamada.masahiro at socionext.com]
Sent: Thursday, April 30, 2015 4:46
To: Yehuda Yitschak
Cc: Simon Glass; Hanna Hawa; u-boot at lists.denx.de
Subject: Re: [U-Boot] switching to single .config configuration issuesQuoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Hi Yehuda,
2015-04-29 14:23 GMT+09:00 Yehuda Yitschak
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 7 lines
Hey Simon, Masahiro
May I suggest an alternative solution to this issue.
What if each Kconfigs option could be set as "y" (compile for u-boot only )or "s" (compile for u-boot and SPL) Just as the kernel can set
Kconfigto "y" or "m".
Quoted 2 lines
With minor modifications to the
Makefile, SPL target will compile"obj-s"
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
and u-boot target will compile "obj-s" and "obj-y"
Quoted 2 lines
What do you think ?
Interesting.
A little comments.
- Is there any possibility that some files should be compiled for SPL
only?
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 6 lines
(I do not think we have much.)
Perhaps, obj-y : for U-boot only
obj-s : for SPL only
oby-ys: for both
I am not sure..How about "a" (as in all targets) instead of "sy". It will look better in the menuconfig square brackets Maybe TPL should also be
added as "t"
Quoted 19 lines
Quoted 7 lines
option.
Quoted 6 lines
Quoted 6 lines
- This idea is only applicable for bool options.
We still have to keep duplication for int/hex options such asCONFIG_SPL_TEXT_BASE.Quoted 6 lines
Quoted 2 lines
Quoted 2 lines
But, this idea will help clean up much because most of configs
areboolean.
I am still not sure what sorts of things are getting compiled int SPL, and thus causing problems. Can you please provide a few details?
We are looking for a very small SPL image that will fit into internal SRAM. Therefore we want to compile the minimal set of drivers into the SPL. We have added all our drivers to
Kconfiginfrastructure (not mainlined yet) and so each driver We add to u-boot (like PCIe) will be added to SPL and would require manual removal using the dedicated H file
Or we can use "ifndef CONFIG_SPL_BUILD" to keep drivers from being compiled into SPL.
(and this is what we have done so far. For example, drivers/mtd/nand/Makefile)
ifndef CONFIG_SPL_BUILD
obj-$(CONFIG_YOUR_OWN_DRIVER) += your_driver.o
endif
I know this is an ugly solution...
BTW, barebox (U-boot v2) uses "pbl-y" for objects that should be compiled into a pre-bootloader (the same concept as what we call SPL).
obj-(CONFIG_FOO) += foo.o <--- compiled for barebox proper
pbl-(CONFIG_PBL_FOO) += foo.o <--- compiled for pre-bootloader
Better to bollow this idea?
Quoted 6 lines
Quoted 4 lines
I see. Let's see what Masahiro thinks about this. One good thing with this proposal is that we would still only have a single config source file (.config), but I cannot see how it could be implemented without having multiple output
autoconf.hfiles.Linux actually uses a single
autoconf.hfile by suffixing module configs with_MODULE. Then all the other build scripts somehow take advantage of that
Right. This is the way we distinguish modules from built-in drivers in Linux.
Maybe we can add _SPL suffix, but please let me clarify this idea. How does "select FOO" work?
CONFIG_FOO should be enabled for U-Boot only (CONFIG_FOO=y), or also for SPL (CONFIG_FOO=a)?
How about "depends on FOO"?
Quoted 6 lines
Quoted 1 line
How many options do you need to add for manual removal?
I don?t have the exact count but somewhere around 10-20.
However I think the number itself is not the issue.
The thing is that you have to update this list every time you modify your defconfig otherwise your SPL start bloating. That is a bit of a nuisance considering defconfig changes may be frequent during development and ramp-up time
I agree.
Signature · 2 lines
Best Regards Masahiro Yamada
+Tom
Hi Masahiro,
Quoted 102 lines · Masahiro Yamada
Hi.
2015-05-05 20:16 GMT+09:00 Yehuda Yitschak <[email protected]>:
Quoted 93 lines
Hi Simon
Quoted 91 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Tuesday, May 05, 2015 6:28
To: Yehuda Yitschak
Cc: Masahiro Yamada; Hanna Hawa; u-boot at lists.denx.de
Subject: Re: [U-Boot] switching to single .config configuration issuesHi,
Quoted 4 lines · Yehuda Yitschak
Hey Simon
Quoted 2 lines
-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of SimonGlass
Quoted 9 lines
Quoted 9 lines
Sent: Sunday, May 03, 2015 21:55
To: Yehuda Yitschak
Cc: Masahiro Yamada; Hanna Hawa; u-boot at lists.denx.de
Subject: Re: [U-Boot] switching to single .config configuration issuesHi Yehuda,
On 30 April 2015 at 01:21, Yehuda Yitschak <[email protected]>
Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Hey Masahiro
Quoted 8 lines
-----Original Message-----
From: Masahiro Yamada [mailto:yamada.masahiro at socionext.com]
Sent: Thursday, April 30, 2015 4:46
To: Yehuda Yitschak
Cc: Simon Glass; Hanna Hawa; u-boot at lists.denx.de
Subject: Re: [U-Boot] switching to single .config configuration issuesQuoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Hi Yehuda,
2015-04-29 14:23 GMT+09:00 Yehuda Yitschak
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 7 lines
Hey Simon, Masahiro
May I suggest an alternative solution to this issue.
What if each Kconfigs option could be set as "y" (compile for u-boot only )or "s" (compile for u-boot and SPL) Just as the kernel can set
Kconfigto "y" or "m".
Quoted 2 lines
With minor modifications to the
Makefile, SPL target will compile"obj-s"
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
and u-boot target will compile "obj-s" and "obj-y"
Quoted 2 lines
What do you think ?
Interesting.
A little comments.
- Is there any possibility that some files should be compiled for SPL
only?
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 6 lines
(I do not think we have much.)
Perhaps, obj-y : for U-boot only
obj-s : for SPL only
oby-ys: for both
I am not sure..How about "a" (as in all targets) instead of "sy". It will look better in the menuconfig square brackets Maybe TPL should also be
added as "t"
Quoted 19 lines
Quoted 7 lines
option.
Quoted 6 lines
Quoted 6 lines
- This idea is only applicable for bool options.
We still have to keep duplication for int/hex options such asCONFIG_SPL_TEXT_BASE.Quoted 6 lines
Quoted 2 lines
Quoted 2 lines
But, this idea will help clean up much because most of configs
areboolean.
I am still not sure what sorts of things are getting compiled int SPL, and thus causing problems. Can you please provide a few details?
We are looking for a very small SPL image that will fit into internal SRAM. Therefore we want to compile the minimal set of drivers into the SPL. We have added all our drivers to
Kconfiginfrastructure (not mainlined yet) and so each driver We add to u-boot (like PCIe) will be added to SPL and would require manual removal using the dedicated H fileOr we can use "ifndef
CONFIG_SPL_BUILD" to keep drivers from being compiled into SPL.
(and this is what we have done so far. For example,drivers/mtd/nand/Makefile)
Quoted 5 lines
ifndef
CONFIG_SPL_BUILD
obj-$(CONFIG_YOUR_OWN_DRIVER) += your_driver.o
endifI know this is an ugly solution...
It works fine so long as no board wants the driver in SPL.
Quoted 9 lines
BTW, barebox (U-boot v2) uses "pbl-y" for objects that should be compiled into a pre-bootloader (the same concept as what we call SPL).
obj-(CONFIG_FOO) += foo.o <--- compiled for barebox proper
pbl-(CONFIG_PBL_FOO) += foo.o <--- compiled for pre-bootloaderBetter to bollow this idea?
A bit annoying that we then have to repeat every file twice (or three times for TPL).
Quoted 9 lines
Quoted 8 lines
Quoted 6 lines
I see. Let's see what Masahiro thinks about this. One good thing with this proposal is that we would still only have a single config source file (.config), but I cannot see how it could be implemented without having multiple output
autoconf.hfiles.Linux actually uses a single
autoconf.hfile by suffixing module configs with_MODULE. Then all the other build scripts somehow take advantage of that
Quoted 9 lines
Right. This is the way we distinguish modules from built-in drivers in Linux.
Maybe we can add
_SPLsuffix, but please let me clarify this idea. How does "select FOO" work?
CONFIG_FOOshould be enabled for U-Boot only (CONFIG_FOO=y), or also for SPL (CONFIG_FOO=a)?
How about "depends on FOO"?
Do you then need to cover every combination of U-Boot, SPL, TPL?
Quoted 9 lines
Quoted 7 lines
Quoted 2 lines
How many options do you need to add for manual removal?
I don?t have the exact count but somewhere around 10-20.
However I think the number itself is not the issue.
The thing is that you have to update this list every time you modify your defconfig otherwise your SPL start bloating. That is a bit of a nuisance considering defconfig changes may be frequent during development and ramp-up timeI agree.
For this, your spl-y idea is probably easiest.
Regards,
Simon
Hi Hanna, Simon,
2015-04-29 12:05 GMT+09:00 Simon Glass <[email protected]>:
Quoted 34 lines
+Masahiro (new address)
Hi Hanna,
Quoted 6 lines · Hanna Hawa
Hi everyone,
I?m working on the latest u-boot 2015.04 trying to rebase my repository to latest code.
I would suggest going with upstream/master (targeting 2015.07) since there are several driver model changes since 2015.04 (USB, PCI, Ethernet). There are still patches going in but the bulk of it should be there.
Quoted 8 lines
And I have question regarding patch
e02ee2548afe(kconfig: switch to single .config configuration)Issues that I face in the current solution (single .config):
Quoted 8 lines
For my usage most of the CONFIG options will not supported in the SPL, we need the SPL very tiny and most of the CONFIG will be enabled in the u-boot, need to undef/disable(set=n) for every CONFIG in
scripts/Makefile.uncmd_spl/include/config_uncmd_spl.hAlso for future usage if we want to delete the defines of the commands from the include file and move it to defconfig file, then need to undef them in the SPL code.
Quoted 6 lines
Masahiro is the expert here. The idea is to use SPL-specific options for SPL. For example
CONFIG_SPL_I2C_SUPPORT. This is much the same as before.I suggest you create some SPL options for your new features, so that they are only enabled in SPL when you want them.
As Simon said, our current solution is to add CONFIG_SPL_-prefixed ones to config options we want to turn on/off separately.
Signature · 2 lines
Best Regards Masahiro Yamada