Added Filesystem generation and required $(x*) variables
authorJohn Hodge <[email protected]>
Sat, 26 Dec 2009 16:18:04 +0000 (00:18 +0800)
committerJohn Hodge <[email protected]>
Sat, 26 Dec 2009 16:18:04 +0000 (00:18 +0800)
Kernel/Makefile.BuildNum
Makefile
Makefile.cfg
Usermode/Filesystem/Conf/BootConf.cfg [new file with mode: 0755]
Usermode/Filesystem/Makefile [new file with mode: 0644]

index b4ec2fa..05201c7 100644 (file)
@@ -1 +1 @@
-BUILD_NUM = 1073
+BUILD_NUM = 1074
index 0113ad0..1aad518 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ USRLIBS = ld-acess.so libacess.so libgcc.so libc.so
 USRAPPS = init login CLIShell cat ls mount ifconfig
 
 all:
+       @echo === Filesystem && $(MAKE) all --no-print-directory -C Usermode/Filesystem
        @for mod in $(MODULES); do \
        (echo === Module: $$mod && $(MAKE) all --no-print-directory -C Modules/$$mod) \
        done
@@ -25,6 +26,7 @@ all:
        done
 
 clean:
+#      @$(MAKE) clean --no-print-directory -C Usermode/Filesystem
        @for mod in $(MODULES); do \
        ($(MAKE) clean --no-print-directory -C Modules/$$mod) \
        done
index 3a164ee..441718c 100644 (file)
@@ -12,6 +12,9 @@ MKDIR = mkdir
 RMDIR = rm -rf
 lCP = cp
 xCP = mcopy -D o
+xMKDIR = mmd
+xRMDIR = mdeltree
+xRM = mdel
 
 ARCH = i386
 ARCHDIR = x86
diff --git a/Usermode/Filesystem/Conf/BootConf.cfg b/Usermode/Filesystem/Conf/BootConf.cfg
new file mode 100755 (executable)
index 0000000..fcd6ad6
--- /dev/null
@@ -0,0 +1,5 @@
+module /Acess/Modules/bochsvbe.kmd
+#module /Acess/Modules/ps2mouse
+#edimod /Acess/Modules/serial.edi
+#module /Acess/Modules/ne2000.akm
+spawn /Acess/SBin/init
diff --git a/Usermode/Filesystem/Makefile b/Usermode/Filesystem/Makefile
new file mode 100644 (file)
index 0000000..ef1f6b2
--- /dev/null
@@ -0,0 +1,25 @@
+# Acess 2
+# - Usermode Filesystem Structure Generator
+
+-include ../../Makefile.cfg
+
+DIRS  = Bin SBin Libs Modules Applications
+DIRS += Conf Conf/Auth
+FILES = Conf/BootConf.cfg Conf/Auth/Users Conf/Auth/Passwords Conf/Auth/Groups
+
+#DIRS  := $(addprefix $(DISTROOT)/,$(DIRS))
+#FILES := $(addprefix $(DISTROOT)/,$(FILES))
+
+.PHONY: all clean
+
+all:   $(DIRS) $(FILES)
+
+clean:
+       $(xRMDIR) $(DIRS)
+       $(xRM) $(FILES)
+
+$(DIRS):
+       $(xMKDIR) $(DISTROOT)/$@
+
+$(FILES):
+       $(xCP) $< $(DISTROOT)/$@

UCC git Repository :: git.ucc.asn.au