Message ID | 20241101110245.164173-2-oss@braunwarth.dev |
---|---|
State | Changes Requested |
Headers | show |
Series | tree-wide: Kconfig update | expand |
On 11/1/24 12:02, Daniel Braunwarth wrote: > Naming the Kconfig files Config.in seems to be outdated. > > Let's align the naming in the SWUpdate code to be consistent with other > projects (like Linux kernel, Zephyr, u-boot, ...). > > Signed-off-by: Daniel Braunwarth <oss@braunwarth.dev> > --- > Kconfig | 12 ++++++------ > bootloader/{Config.in => Kconfig} | 0 > containers/{Config.in => Kconfig} | 0 > doc/source/bootloader_interface.rst | 2 +- > doc/source/suricatta.rst | 2 +- > fs/{Config.in => Kconfig} | 0 > handlers/{Config.in => Kconfig} | 2 +- > mongoose/{Config.in => Kconfig} | 0 > parser/{Config.in => Kconfig} | 0 > suricatta/{Config.in => Kconfig} | 0 > 10 files changed, 9 insertions(+), 9 deletions(-) > rename bootloader/{Config.in => Kconfig} (100%) > rename containers/{Config.in => Kconfig} (100%) > rename fs/{Config.in => Kconfig} (100%) > rename handlers/{Config.in => Kconfig} (99%) > rename mongoose/{Config.in => Kconfig} (100%) > rename parser/{Config.in => Kconfig} (100%) > rename suricatta/{Config.in => Kconfig} (100%) > > diff --git a/Kconfig b/Kconfig > index 7139617..c09413c 100644 > --- a/Kconfig > +++ b/Kconfig > @@ -359,7 +359,7 @@ endmenu > > comment "Bootloader support" > > -source bootloader/Config.in > +source "bootloader/Kconfig" > > > comment Interfaces > @@ -390,9 +390,9 @@ config CHANNEL_CURL > depends on HAVE_LIBCURL > select CURL > > -source suricatta/Config.in > +source "suricatta/Kconfig" > > -source mongoose/Config.in > +source "mongoose/Kconfig" > > comment Security > > @@ -534,10 +534,10 @@ config ZSTD > depends on HAVE_ZSTD > > comment Parsers > -source parser/Config.in > +source "parser/Kconfig" > > comment Handlers > -source handlers/Config.in > +source "handlers/Kconfig" > > comment Containers > -source containers/Config.in > +source "containers/Kconfig" > diff --git a/bootloader/Config.in b/bootloader/Kconfig > similarity index 100% > rename from bootloader/Config.in > rename to bootloader/Kconfig > diff --git a/containers/Config.in b/containers/Kconfig > similarity index 100% > rename from containers/Config.in > rename to containers/Kconfig > diff --git a/doc/source/bootloader_interface.rst b/doc/source/bootloader_interface.rst > index 8527aec..8c32259 100644 > --- a/doc/source/bootloader_interface.rst > +++ b/doc/source/bootloader_interface.rst > @@ -115,7 +115,7 @@ build system. > > First, the bootloader support implementation, named "trunk" and implemented > in ``bootloader/trunk.c`` for example, needs to be added to > -``bootloader/Config.in`` in the ``Bootloader Interfaces`` menu as > +``bootloader/Kconfig`` in the ``Bootloader Interfaces`` menu as > follows: > > .. code-block:: kconfig > diff --git a/doc/source/suricatta.rst b/doc/source/suricatta.rst > index fad9920..e9b18a9 100644 > --- a/doc/source/suricatta.rst > +++ b/doc/source/suricatta.rst > @@ -139,7 +139,7 @@ The type ``server_op_res_t`` is defined in ``include/suricatta/suricatta.h``. > It represents the valid function return codes for a server's implementation. > > In addition to implementing the particular channel and server, the > -``suricatta/Config.in`` file has to be adapted to include a new option > +``suricatta/Kconfig`` file has to be adapted to include a new option > so that the new implementation becomes selectable in SWUpdate's > configuration. In the simplest case, adding an option like the following > one for hawkBit into the ``menu "Server"`` section is sufficient. > diff --git a/fs/Config.in b/fs/Kconfig > similarity index 100% > rename from fs/Config.in > rename to fs/Kconfig > diff --git a/handlers/Config.in b/handlers/Kconfig > similarity index 99% > rename from handlers/Config.in > rename to handlers/Kconfig > index ca47364..152bc08 100644 > --- a/handlers/Config.in > +++ b/handlers/Kconfig > @@ -106,7 +106,7 @@ config DISKFORMAT_HANDLER > The diskformat handler allows creating filesystems on empty > partitions. > > -source fs/Config.in > +source "fs/Kconfig" > > config LUASCRIPTHANDLER > bool "Lua Script" > diff --git a/mongoose/Config.in b/mongoose/Kconfig > similarity index 100% > rename from mongoose/Config.in > rename to mongoose/Kconfig > diff --git a/parser/Config.in b/parser/Kconfig > similarity index 100% > rename from parser/Config.in > rename to parser/Kconfig > diff --git a/suricatta/Config.in b/suricatta/Kconfig > similarity index 100% > rename from suricatta/Config.in > rename to suricatta/Kconfig Reviewed-by : Stefano Babic <stefano.babic@swupdate.org> Best regards, Stefano Babic
diff --git a/Kconfig b/Kconfig index 7139617..c09413c 100644 --- a/Kconfig +++ b/Kconfig @@ -359,7 +359,7 @@ endmenu comment "Bootloader support" -source bootloader/Config.in +source "bootloader/Kconfig" comment Interfaces @@ -390,9 +390,9 @@ config CHANNEL_CURL depends on HAVE_LIBCURL select CURL -source suricatta/Config.in +source "suricatta/Kconfig" -source mongoose/Config.in +source "mongoose/Kconfig" comment Security @@ -534,10 +534,10 @@ config ZSTD depends on HAVE_ZSTD comment Parsers -source parser/Config.in +source "parser/Kconfig" comment Handlers -source handlers/Config.in +source "handlers/Kconfig" comment Containers -source containers/Config.in +source "containers/Kconfig" diff --git a/bootloader/Config.in b/bootloader/Kconfig similarity index 100% rename from bootloader/Config.in rename to bootloader/Kconfig diff --git a/containers/Config.in b/containers/Kconfig similarity index 100% rename from containers/Config.in rename to containers/Kconfig diff --git a/doc/source/bootloader_interface.rst b/doc/source/bootloader_interface.rst index 8527aec..8c32259 100644 --- a/doc/source/bootloader_interface.rst +++ b/doc/source/bootloader_interface.rst @@ -115,7 +115,7 @@ build system. First, the bootloader support implementation, named "trunk" and implemented in ``bootloader/trunk.c`` for example, needs to be added to -``bootloader/Config.in`` in the ``Bootloader Interfaces`` menu as +``bootloader/Kconfig`` in the ``Bootloader Interfaces`` menu as follows: .. code-block:: kconfig diff --git a/doc/source/suricatta.rst b/doc/source/suricatta.rst index fad9920..e9b18a9 100644 --- a/doc/source/suricatta.rst +++ b/doc/source/suricatta.rst @@ -139,7 +139,7 @@ The type ``server_op_res_t`` is defined in ``include/suricatta/suricatta.h``. It represents the valid function return codes for a server's implementation. In addition to implementing the particular channel and server, the -``suricatta/Config.in`` file has to be adapted to include a new option +``suricatta/Kconfig`` file has to be adapted to include a new option so that the new implementation becomes selectable in SWUpdate's configuration. In the simplest case, adding an option like the following one for hawkBit into the ``menu "Server"`` section is sufficient. diff --git a/fs/Config.in b/fs/Kconfig similarity index 100% rename from fs/Config.in rename to fs/Kconfig diff --git a/handlers/Config.in b/handlers/Kconfig similarity index 99% rename from handlers/Config.in rename to handlers/Kconfig index ca47364..152bc08 100644 --- a/handlers/Config.in +++ b/handlers/Kconfig @@ -106,7 +106,7 @@ config DISKFORMAT_HANDLER The diskformat handler allows creating filesystems on empty partitions. -source fs/Config.in +source "fs/Kconfig" config LUASCRIPTHANDLER bool "Lua Script" diff --git a/mongoose/Config.in b/mongoose/Kconfig similarity index 100% rename from mongoose/Config.in rename to mongoose/Kconfig diff --git a/parser/Config.in b/parser/Kconfig similarity index 100% rename from parser/Config.in rename to parser/Kconfig diff --git a/suricatta/Config.in b/suricatta/Kconfig similarity index 100% rename from suricatta/Config.in rename to suricatta/Kconfig
Naming the Kconfig files Config.in seems to be outdated. Let's align the naming in the SWUpdate code to be consistent with other projects (like Linux kernel, Zephyr, u-boot, ...). Signed-off-by: Daniel Braunwarth <oss@braunwarth.dev> --- Kconfig | 12 ++++++------ bootloader/{Config.in => Kconfig} | 0 containers/{Config.in => Kconfig} | 0 doc/source/bootloader_interface.rst | 2 +- doc/source/suricatta.rst | 2 +- fs/{Config.in => Kconfig} | 0 handlers/{Config.in => Kconfig} | 2 +- mongoose/{Config.in => Kconfig} | 0 parser/{Config.in => Kconfig} | 0 suricatta/{Config.in => Kconfig} | 0 10 files changed, 9 insertions(+), 9 deletions(-) rename bootloader/{Config.in => Kconfig} (100%) rename containers/{Config.in => Kconfig} (100%) rename fs/{Config.in => Kconfig} (100%) rename handlers/{Config.in => Kconfig} (99%) rename mongoose/{Config.in => Kconfig} (100%) rename parser/{Config.in => Kconfig} (100%) rename suricatta/{Config.in => Kconfig} (100%)