[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH RFC 1/5] build: save kconfig dependency files in the separate dir



The *conf utilities are generating a bunch of empty *.h files,
reflecting the configuration menu symbols. The corresponding file is
touched if symbol has been changed. This is used for making smart
decisions which files require recompilation.

So far they have been put in the build/kconfig folder, with other
stuff. Let's save them in the separate dir, to make file structure
a bit more beautiful.

Signed-off-by: Yuri Volchkov <yuri.volchkov@xxxxxxxxx>
---
 support/kconfig/confdata.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/support/kconfig/confdata.c b/support/kconfig/confdata.c
index 2371fa8..4d8c9ac 100644
--- a/support/kconfig/confdata.c
+++ b/support/kconfig/confdata.c
@@ -857,7 +857,14 @@ static int conf_split_config(void)
                res = 1;
                goto err;
        }
-       if (chdir(dir)) {
+
+       snprintf(path, sizeof(path), "%s/%s", dir, "depinclude");
+       if (stat(path, &sb) && mkdir(path, 0755)) {
+               res = 1;
+               goto err;
+       }
+
+       if (chdir(path)) {
                res = 1;
                goto err;
        }
-- 
2.17.0


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.