From 43b992c09b092391e95b5a1893b6c19855482ff7 Mon Sep 17 00:00:00 2001 From: Jose Alamos Date: Wed, 16 Jun 2021 14:06:47 +0200 Subject: [PATCH] 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. --- dist/tools/kconfiglib/riot_kconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/tools/kconfiglib/riot_kconfig.py b/dist/tools/kconfiglib/riot_kconfig.py index bf51e0a78e..be86733d65 100644 --- a/dist/tools/kconfiglib/riot_kconfig.py +++ b/dist/tools/kconfiglib/riot_kconfig.py @@ -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: