debug guard for build info

This commit is contained in:
Niklas Kapelle 2024-08-05 13:53:33 +02:00
parent f95c262c57
commit 37eab6f8e2
Signed by: niklas
GPG Key ID: 4EB651B36D841D16

View File

@ -1,11 +1,13 @@
package kernel; package kernel;
#if debug
import lib.Debug;
#end
import kernel.service.ServiceManager; import kernel.service.ServiceManager;
import kernel.fs.FS; import kernel.fs.FS;
import kernel.gps.GPS; import kernel.gps.GPS;
import kernel.log.Log; import kernel.log.Log;
import kernel.net.Routing; import kernel.net.Routing;
import lib.Debug;
import kernel.ui.WindowManager; import kernel.ui.WindowManager;
import kernel.net.Net; import kernel.net.Net;
@ -29,7 +31,9 @@ class Init {
KernelEvents.shutdown(); KernelEvents.shutdown();
}); });
#if debug
Debug.printBuildInfo(); Debug.printBuildInfo();
#end
if (!FS.exists("/var/ns")) { if (!FS.exists("/var/ns")) {
FS.makeDir("/var/ns"); FS.makeDir("/var/ns");