Modules - Added DEPS variable for inter-module includes
authorJohn Hodge <[email protected]>
Mon, 17 Oct 2011 03:08:57 +0000 (11:08 +0800)
committerJohn Hodge <[email protected]>
Mon, 17 Oct 2011 03:08:57 +0000 (11:08 +0800)
Kernel/include/dma.h [deleted file]
Modules/Makefile.tpl
Modules/Storage/FDDv2/Makefile
Modules/x86/ISADMA/include/dma.h [new file with mode: 0644]

diff --git a/Kernel/include/dma.h b/Kernel/include/dma.h
deleted file mode 100644 (file)
index b1a6d1a..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
- * Acess2 DMA Driver
- */
-#ifndef _DMA_H_
-#define _DMA_H_
-
-extern void    DMA_SetChannel(int channel, int length, int read);
-extern int     DMA_ReadData(int channel, int count, void *buffer);
-extern int     DMA_WriteData(int channel, int count, void *buffer);
-
-#endif
index 36445f6..b31943e 100644 (file)
@@ -6,7 +6,7 @@ _CPPFLAGS := $(CPPFLAGS)
 
 -include $(dir $(lastword $(MAKEFILE_LIST)))../Makefile.cfg
 
-LIBINCLUDES := $(addprefix -I$(ACESSDIR)/Modules/Libraries/,$(LIBS))
+LIBINCLUDES := $(addprefix -I$(ACESSDIR)/Modules/,$(DEPS))
 LIBINCLUDES := $(addsuffix /include,$(LIBINCLUDES))
 
 CPPFLAGS := -I$(ACESSDIR)/Kernel/include -I$(ACESSDIR)/Kernel/arch/$(ARCHDIR)/include
index f83de39..97aae0c 100644 (file)
@@ -1,6 +1,7 @@
 #
 #
 
+DEPS = x86/ISADMA
 OBJ = main.o fdc.o
 NAME = FDDv2
 
diff --git a/Modules/x86/ISADMA/include/dma.h b/Modules/x86/ISADMA/include/dma.h
new file mode 100644 (file)
index 0000000..b1a6d1a
--- /dev/null
@@ -0,0 +1,11 @@
+/*
+ * Acess2 DMA Driver
+ */
+#ifndef _DMA_H_
+#define _DMA_H_
+
+extern void    DMA_SetChannel(int channel, int length, int read);
+extern int     DMA_ReadData(int channel, int count, void *buffer);
+extern int     DMA_WriteData(int channel, int count, void *buffer);
+
+#endif

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