On Tue, Sep 14, 2021 at 6:47 PM Masami Hiramatsu <mhiramat@xxxxxxxxxx> wrote: > > Hmm, OK. Let me copy lib/bootconfig.c itself into tools/bootconfig > as a user-space code. Well, or we need to have some really good way to mark these shared files. Normally I don't think we share any *.c files with tooling, and tooling copies over the *.h files it needs. Is this the only one? So yes, copying the *.c file in this case would match what we do for the header files, but particularly if there are others, maybe we could have something like the "uapi" directory that allows people to explicialy share files with the tools. But it would need to be very explicit in the pathname, so that people would have that big warning sign of "hey, now you're editing a file that is shared with tooling". That has worked at least _somewhat_ with include/uapi/ and arch/*/include/uapi/. Linus