[BUILD]
authorCameron Gutman <aicommander@gmail.com>
Sun, 12 Feb 2012 03:48:54 +0000 (03:48 +0000)
committerCameron Gutman <aicommander@gmail.com>
Sun, 12 Feb 2012 03:48:54 +0000 (03:48 +0000)
- Add rbuild files
- Fix dumb dependencies in cmake files
[DEBUG]
- Kill more debugging

svn path=/branches/usb-bringup-trunk/; revision=55554

26 files changed:
drivers/drivers.rbuild
drivers/filters/mountmgr/CMakeLists.txt
drivers/filters/mountmgr/mountmgr.rbuild
drivers/hid/directory.rbuild [new file with mode: 0644]
drivers/hid/hidclass/CMakeLists.txt
drivers/hid/hidclass/hidclass.rbuild [new file with mode: 0644]
drivers/hid/hidparse/hidparse.rbuild [new file with mode: 0644]
drivers/hid/hidusb/hidusb.rbuild [new file with mode: 0644]
drivers/hid/kbdhid/kbdhid.h
drivers/hid/kbdhid/kbdhid.rbuild [new file with mode: 0644]
drivers/hid/mouhid/mouhid.h
drivers/hid/mouhid/mouhid.rbuild [new file with mode: 0644]
drivers/usb/directory.rbuild
drivers/usb/usbccgp/usbccgp.rbuild [new file with mode: 0644]
drivers/usb/usbd/usbd.c
drivers/usb/usbd/usbd.rbuild
drivers/usb/usbehci/CMakeLists.txt
drivers/usb/usbehci/usbehci.rbuild [new file with mode: 0644]
drivers/usb/usbhub/usbhub.rbuild [new file with mode: 0644]
drivers/usb/usbohci/usbohci.rbuild [new file with mode: 0644]
drivers/usb/usbstor/usbstor.h
drivers/usb/usbstor/usbstor.rbuild
lib/drivers/directory.rbuild
lib/drivers/hidparser/CMakeLists.txt
lib/drivers/hidparser/hidparser.h
lib/drivers/hidparser/hidparser.rbuild [new file with mode: 0644]

index 67ab810..15b36ea 100644 (file)
@@ -19,6 +19,9 @@
 <directory name="filesystems">
        <xi:include href="filesystems/directory.rbuild" />
 </directory>
+<directory name="hid">
+       <xi:include href="hid/directory.rbuild" />
+</directory>
 <directory name="filters>
        <xi:include href="filters/directory.rbuild" />
 </directory>
index 0c67ca7..4a99868 100644 (file)
@@ -15,4 +15,4 @@ allow_warnings(mountmgr)
 set_module_type(mountmgr kernelmodedriver)
 add_importlibs(mountmgr ntoskrnl hal)
 add_pch(mountmgr mntmgr.h)
-#add_cd_file(TARGET mountmgr DESTINATION reactos/system32/drivers NO_CAB FOR all)
+add_cd_file(TARGET mountmgr DESTINATION reactos/system32/drivers NO_CAB FOR all)
index cce556e..52aa848 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
-<module name="mountmgr" type="kernelmodedriver" installbase="system32/drivers" installname="mountmgr.sys">
-       <bootstrap installbase="$(CDOUTPUT)" />
+<module name="mountmgr" type="kernelmodedriver" installbase="system32/drivers" installname="mountmgr.sys" allowwarnings="true">
+       <bootstrap installbase="$(CDOUTPUT)/system32/drivers" />
        <define name="NTDDI_VERSION">0x05020400</define>
        <include base="mountmgr">.</include>
        <library>ntoskrnl</library>
diff --git a/drivers/hid/directory.rbuild b/drivers/hid/directory.rbuild
new file mode 100644 (file)
index 0000000..4fa5c64
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<!DOCTYPE group SYSTEM "../../tools/rbuild/project.dtd">
+<group xmlns:xi="http://www.w3.org/2001/XInclude">
+       <directory name="hidclass">
+               <xi:include href="hidclass/hidclass.rbuild" />
+       </directory>
+       <directory name="hidparse">
+               <xi:include href="hidparse/hidparse.rbuild" />
+       </directory>
+       <directory name="hidusb">
+               <xi:include href="hidusb/hidusb.rbuild" />
+       </directory>
+       <directory name="kbdhid">
+               <xi:include href="kbdhid/kbdhid.rbuild" />
+       </directory>
+       <directory name="mouhid">
+               <xi:include href="mouhid/mouhid.rbuild" />
+       </directory>
+</group>
index b5ae158..f5f6922 100644 (file)
@@ -11,7 +11,6 @@ list(APPEND SOURCE
 add_library(hidclass SHARED ${SOURCE})
 
 set_entrypoint(hidclass 0)
-set_image_base(hidclass 0x00010000)
 set_subsystem(hidclass native)
 set_target_properties(hidclass PROPERTIES SUFFIX ".sys")
 
diff --git a/drivers/hid/hidclass/hidclass.rbuild b/drivers/hid/hidclass/hidclass.rbuild
new file mode 100644 (file)
index 0000000..c5419c6
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
+<module name="hidclass" type="kernelmodedriver" entrypoint="0" installbase="system32/drivers" installname="hidclass.sys">
+       <importlibrary definition="hidclass.spec" />
+       <bootstrap installbase="$(CDOUTPUT)/system32/drivers" />
+       <library>ntoskrnl</library>
+       <library>hidparse</library>
+       <library>hal</library>
+       <file>fdo.c</file>
+       <file>hidclass.c</file>
+       <file>hidclass.rc</file>
+       <file>pdo.c</file>
+</module>
diff --git a/drivers/hid/hidparse/hidparse.rbuild b/drivers/hid/hidparse/hidparse.rbuild
new file mode 100644 (file)
index 0000000..6cc8ed3
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
+<module name="hidparse" type="kernelmodedriver" installbase="system32/drivers" installname="hidparse.sys">
+       <importlibrary definition="hidparse.spec" />
+       <bootstrap installbase="$(CDOUTPUT)/system32/drivers" />
+       <define name="DEBUG_MODE" />
+       <include base="ntoskrnl">include</include>
+       <include base="ReactOS">lib/drivers/hidparser</include>
+       <library>ntoskrnl</library>
+       <library>hidparser</library>
+       <file>hidparse.c</file>
+       <file>hidparse.rc</file>
+</module>
diff --git a/drivers/hid/hidusb/hidusb.rbuild b/drivers/hid/hidusb/hidusb.rbuild
new file mode 100644 (file)
index 0000000..fd9c46d
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
+<module name="hidusb" type="kernelmodedriver" installbase="system32/drivers" installname="hidusb.sys">
+       <bootstrap installbase="$(CDOUTPUT)/system32/drivers" />
+       <library>ntoskrnl</library>
+       <library>hidclass</library>
+       <library>usbd</library>
+       <library>hal</library>
+       <file>hidusb.c</file>
+       <file>hidusb.rc</file>
+</module>
index 51fd4e4..bc606bb 100644 (file)
@@ -5,6 +5,7 @@
 #include <hidclass.h>
 #include <hidpddi.h>
 #include <hidpi.h>
+#define NDEBUG
 #include <debug.h>
 #include <kbdmou.h>
 //#include <kbd.h>
diff --git a/drivers/hid/kbdhid/kbdhid.rbuild b/drivers/hid/kbdhid/kbdhid.rbuild
new file mode 100644 (file)
index 0000000..904f6d2
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
+<module name="kbdhid" type="kernelmodedriver" installbase="system32/drivers" installname="kbdhid.sys">
+       <bootstrap installbase="$(CDOUTPUT)/system32/drivers" />
+       <define name="DEBUG_MODE" />
+       <include base="ntoskrnl">include</include>
+       <library>ntoskrnl</library>
+       <library>hal</library>
+       <library>hidparse</library>
+       <file>kbdhid.c</file>
+       <file>kbdhid.rc</file>
+</module>
index c00fcb5..78048fd 100644 (file)
@@ -5,6 +5,7 @@
 #include <hidclass.h>
 #include <hidpddi.h>
 #include <hidpi.h>
+#define NDEBUG
 #include <debug.h>
 #include <ntddmou.h>
 #include <kbdmou.h>
diff --git a/drivers/hid/mouhid/mouhid.rbuild b/drivers/hid/mouhid/mouhid.rbuild
new file mode 100644 (file)
index 0000000..cfb1f95
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
+<module name="mouhid" type="kernelmodedriver" installbase="system32/drivers" installname="mouhid.sys">
+       <define name="DEBUG_MODE" />
+       <include base="ntoskrnl">include</include>
+       <library>ntoskrnl</library>
+       <library>hal</library>
+       <library>hidparse</library>
+       <file>mouhid.c</file>
+       <file>mouhid.rc</file>
+</module>
index 211d6d4..8640fe3 100644 (file)
@@ -1,13 +1,22 @@
 <?xml version="1.0"?>
 <!DOCTYPE group SYSTEM "../../tools/rbuild/project.dtd">
 <group xmlns:xi="http://www.w3.org/2001/XInclude">
+       <directory name="usbccgp">
+               <xi:include href="usbccgp/usbccgp.rbuild" />
+       </directory>
        <directory name="usbd">
                <xi:include href="usbd/usbd.rbuild" />
        </directory>
-       <!--directory name="usbhub">
+       <directory name="usbehci">
+               <xi:include href="usbehci/usbehci.rbuild" />
+       </directory>
+       <directory name="usbhub">
                <xi:include href="usbhub/usbhub.rbuild" />
        </directory>
+       <directory name="usbohci">
+               <xi:include href="usbohci/usbohci.rbuild" />
+       </directory>
        <directory name="usbstor">
                <xi:include href="usbstor/usbstor.rbuild" />
-       </directory-->
+       </directory>
 </group>
diff --git a/drivers/usb/usbccgp/usbccgp.rbuild b/drivers/usb/usbccgp/usbccgp.rbuild
new file mode 100644 (file)
index 0000000..4b26820
--- /dev/null
@@ -0,0 +1,19 @@
+<?xml version="1.0"?>
+<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
+<module name="usbccgp" type="kernelmodedriver" installbase="system32/drivers" installname="usbccgp.sys">
+       <bootstrap installbase="$(CDOUTPUT)/system32/drivers" />
+       <redefine name="_WIN32_WINNT">0x600</redefine>
+       <define name="DEBUG_MODE" />
+       <include base="ntoskrnl">include</include>
+       <library>ntoskrnl</library>
+       <library>hal</library>
+    <library>usbd</library>
+    <library>pseh</library>
+       <file>descriptor.c</file>
+       <file>fdo.c</file>
+       <file>function.c</file>
+       <file>misc.c</file>
+       <file>pdo.c</file>
+       <file>usbccgp.c</file>
+       <file>usbccgp.rc</file>
+</module>
index c7a6e43..fa3735a 100644 (file)
@@ -34,6 +34,7 @@
 
 #include <ntddk.h>
 #include <usbdi.h>
+#define NDEBUG
 #include <debug.h>
 #ifndef PLUGPLAY_REGKEY_DRIVER
 #define PLUGPLAY_REGKEY_DRIVER              2
index c5900b5..18ef897 100644 (file)
@@ -1,6 +1,7 @@
 <?xml version="1.0"?>
 <!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
 <module name="usbd" type="kernelmodedriver" installbase="system32/drivers" installname="usbd.sys">
+       <bootstrap installbase="$(CDOUTPUT)/system32/drivers" />
        <importlibrary definition="usbd.spec" />
        <library>ntoskrnl</library>
        <library>hal</library>
index de16efa..8bad4b1 100644 (file)
@@ -29,6 +29,6 @@ else()
 endif(MSVC)
 
 set_module_type(usbehci kernelmodedriver)
-add_importlibs(usbehci ntoskrnl ks drmk hal)
+add_importlibs(usbehci ntoskrnl hal)
 
 add_cd_file(TARGET usbehci DESTINATION reactos/system32/drivers NO_CAB FOR all)
\ No newline at end of file
diff --git a/drivers/usb/usbehci/usbehci.rbuild b/drivers/usb/usbehci/usbehci.rbuild
new file mode 100644 (file)
index 0000000..63d3943
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
+<module name="usbehci" type="kernelmodedriver" installbase="system32/drivers" installname="usbehci.sys">
+       <bootstrap installbase="$(CDOUTPUT)/system32/drivers" />
+       <redefine name="_WIN32_WINNT">0x600</redefine>
+       <library>ntoskrnl</library>
+       <library>hal</library>
+    <library>pseh</library>
+       <file>usbehci.cpp</file>
+       <file>usb_device.cpp</file>
+       <file>usb_request.cpp</file>
+       <file>usb_queue.cpp</file>
+       <file>hcd_controller.cpp</file>
+       <file>hardware.cpp</file>
+       <file>misc.cpp</file>
+       <file>purecall.cpp</file>
+       <file>hub_controller.cpp</file>
+       <file>memory_manager.cpp</file>
+       <file>usbehci.rc</file>
+       <compilerflag>-fno-rtti</compilerflag>
+       <compilerflag>-fno-exceptions</compilerflag>
+</module>
diff --git a/drivers/usb/usbhub/usbhub.rbuild b/drivers/usb/usbhub/usbhub.rbuild
new file mode 100644 (file)
index 0000000..8b9543c
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
+<module name="usbhub" type="kernelmodedriver" installbase="system32/drivers" installname="usbhub.sys">
+       <bootstrap installbase="$(CDOUTPUT)/system32/drivers" />
+       <define name="DEBUG_MODE" />
+       <include base="ntoskrnl">include</include>
+       <library>ntoskrnl</library>
+       <library>hal</library>
+       <library>usbd</library>
+       <library>pseh</library>
+       <file>fdo.c</file>
+       <file>misc.c</file>
+       <file>pdo.c</file>
+       <file>usbhub.c</file>
+       <file>usbhub.rc</file>
+</module>
diff --git a/drivers/usb/usbohci/usbohci.rbuild b/drivers/usb/usbohci/usbohci.rbuild
new file mode 100644 (file)
index 0000000..1b96cc7
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
+<module name="usbohci" type="kernelmodedriver" installbase="system32/drivers" installname="usbohci.sys">
+       <bootstrap installbase="$(CDOUTPUT)/system32/drivers" />
+       <redefine name="_WIN32_WINNT">0x600</redefine>
+       <library>ntoskrnl</library>
+       <library>hal</library>
+       <library>usbd</library>
+    <library>pseh</library>
+       <file>usbohci.cpp</file>
+       <file>usb_device.cpp</file>
+       <file>usb_request.cpp</file>
+       <file>usb_queue.cpp</file>
+       <file>hcd_controller.cpp</file>
+       <file>hardware.cpp</file>
+       <file>misc.cpp</file>
+       <file>purecall.cpp</file>
+       <file>hub_controller.cpp</file>
+       <file>memory_manager.cpp</file>
+       <file>usbohci.rc</file>
+       <compilerflag>-fno-rtti</compilerflag>
+       <compilerflag>-fno-exceptions</compilerflag>
+</module>
index 47dabfd..dbc8ef5 100644 (file)
@@ -2,7 +2,7 @@
 #pragma once
 
 #include <ntddk.h>
-#define YDEBUG
+#define NDEBUG
 #include <debug.h>
 #include <usbdi.h>
 #include <hubbusif.h>
index d7215fc..ac4f9e6 100644 (file)
@@ -1,10 +1,20 @@
 <?xml version="1.0"?>
 <!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
 <module name="usbstor" type="kernelmodedriver" installbase="system32/drivers" installname="usbstor.sys">
+       <bootstrap installbase="$(CDOUTPUT)/system32/drivers" />
        <define name="DEBUG_MODE" />
        <include base="ntoskrnl">include</include>
        <library>ntoskrnl</library>
        <library>hal</library>
+       <library>usbd</library>
+       <file>descriptor.c</file>
+       <file>disk.c</file>
+       <file>fdo.c</file>
+       <file>misc.c</file>
+       <file>pdo.c</file>
+       <file>queue.c</file>
+       <file>error.c</file>
+       <file>scsi.c</file>
        <file>usbstor.c</file>
        <file>usbstor.rc</file>
 </module>
index 2c0c011..2dd5190 100644 (file)
@@ -4,6 +4,9 @@
        <directory name="csq">
                <xi:include href="csq/csq.rbuild" />
        </directory>
+       <directory name="hidparser">
+               <xi:include href="hidparser/hidparser.rbuild" />
+       </directory>
        <directory name="ip">
                <xi:include href="ip/ip.rbuild" />
        </directory>
index 6ab1276..b0b15dd 100644 (file)
@@ -1,7 +1,7 @@
 
 add_definitions(
     -DUNICODE -D_UNICODE
-    -DNDEBUG=1)
+    -DNDEBUG)
 
 list(APPEND SOURCE
     context.c
index 71eb157..e71af66 100644 (file)
@@ -15,6 +15,7 @@
 #include <ntddk.h>
 #include <hidpddi.h>
 #include <hidpi.h>
+#define NDEBUG
 #include <debug.h>
 
 //
diff --git a/lib/drivers/hidparser/hidparser.rbuild b/lib/drivers/hidparser/hidparser.rbuild
new file mode 100644 (file)
index 0000000..61416b5
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
+<module name="hidparser" type="staticlibrary">
+       <define name="UNICODE" />
+       <define name="_UNICODE" />
+       <define name="NDEBUG" />
+       <file>hidparser.c</file>
+       <file>parser.c</file>
+       <file>context.c</file>
+       <file>api.c</file>
+</module>
\ No newline at end of file