1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

dist/Kconfiglib: fix autoconf header

This commit fixes the generation of autoconf headers.
The `write_autoconf` function in the RIOT wrapper was overriding
the default value of the `header` arg to None in Kconfiglib's `write_autoconf`.
It's now set to the default header.
This commit is contained in:
Jose Alamos 2021-06-16 14:06:47 +02:00
parent 9954ac8166
commit 43b992c09b
No known key found for this signature in database
GPG Key ID: F483EB800EF89DD9

View File

@ -18,7 +18,7 @@ class RiotKconfig(Kconfig):
for marker in doxygen_markers:
node.help = node.help.replace(marker, "")
def write_autoconf(self, filename=None, header=None):
def write_autoconf(self, filename=None, header="/* RIOT Configuration File */\n"):
""" Override to convert - to _ when writing autoconf.h """
tmp_unique_defined_syms = self.unique_defined_syms.copy()
for sym in self.unique_defined_syms: