[PATCH 0/7] bootconfig: Clean up bootconfig

From: Masami Hiramatsu
Date: Fri Sep 17 2021 - 06:02:31 EST


Hi,

Here is a bootconfig cleanup series which includes a previous
xbc_destroy_all() renaming patch. Basically this tries to remove
all dummy patched in tools/bootconfig, except include/linux/bootconfig.

This series can be applied on top of 1-3rd patch of this series.

https://lore.kernel.org/all/163177338366.682366.5998343833719057348.stgit@devnote2/T/#u


As I added a NOTE in the bootconfig files, those are not intended to
be used from user application, except for tools/bootconfig. Because
tools/bootconfig runs parser tests, it must use the same code of
lib/bootconfig.

However, I don't want to keep the dummy headers for that. This series
minimize the differences and consolidate it to the one wrapper header.

I hope this eases the current situation so that the future change will
not (or hard to) break tools/bootconfig build.

Thank you,

---

Masami Hiramatsu (7):
tools/bootconfig: Run test script when build all
bootconfig: Rename xbc_destroy_all() to xbc_exit()
bootconfig: Split parse-tree part from xbc_init
bootconfig: Remove unused debug function
tools/bootconfig: Print all error message in stderr
bootconfig: Replace u16 and u32 with uint16_t and uint32_t
bootconfig: Cleanup dummy headers in tools/bootconfig


include/linux/bootconfig.h | 27 ++--
init/main.c | 2
lib/bootconfig.c | 187 +++++++++++++++------------
tools/bootconfig/Makefile | 4 -
tools/bootconfig/include/linux/bootconfig.h | 45 ++++++
tools/bootconfig/include/linux/bug.h | 12 --
tools/bootconfig/include/linux/ctype.h | 7 -
tools/bootconfig/include/linux/errno.h | 7 -
tools/bootconfig/include/linux/kernel.h | 18 ---
tools/bootconfig/include/linux/memblock.h | 11 --
tools/bootconfig/include/linux/printk.h | 14 --
tools/bootconfig/include/linux/string.h | 32 -----
tools/bootconfig/main.c | 25 ++--
13 files changed, 181 insertions(+), 210 deletions(-)
delete mode 100644 tools/bootconfig/include/linux/bug.h
delete mode 100644 tools/bootconfig/include/linux/ctype.h
delete mode 100644 tools/bootconfig/include/linux/errno.h
delete mode 100644 tools/bootconfig/include/linux/kernel.h
delete mode 100644 tools/bootconfig/include/linux/memblock.h
delete mode 100644 tools/bootconfig/include/linux/printk.h
delete mode 100644 tools/bootconfig/include/linux/string.h

--
Masami Hiramatsu (Linaro) <mhiramat@xxxxxxxxxx>