mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
e1ef078741
The idea then would be to have the following behaviour (when specifying the following options in the kernel command line): /DEBUGPORT=COMi --> load KDCOM.DLL and use COMi port (i == 1,2,3,4) if possible. /DEBUGPORT=FOO --> load KDFOO.DLL (useful for KDUSB.DLL, KD1394.DLL, KDBAZIS.DLL for VirtualKD, etc...) /DEBUGPORT=ROSDBG:[COMi|SCREEN|FILE|GDB|...] --> load KDROSDBG.DLL which contains the ROS kernel debugger, and use COMi or SCREEN or... as output port. svn path=/branches/kd++/; revision=58883
39 lines
1 KiB
Bash
Executable file
39 lines
1 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ "x$ROS_ARCH" = "x" ]; then
|
|
echo Could not detect RosBE.
|
|
exit 1
|
|
fi
|
|
|
|
BUILD_ENVIRONMENT=MinGW
|
|
ARCH=$ROS_ARCH
|
|
REACTOS_SOURCE_DIR=$(cd `dirname $0` && pwd)
|
|
REACTOS_OUTPUT_PATH=output-$BUILD_ENVIRONMENT-$ARCH
|
|
if [ "$1" = "ninja" ]; then
|
|
CMAKE_GENERATOR="Ninja"
|
|
else
|
|
CMAKE_GENERATOR="Unix Makefiles"
|
|
fi
|
|
|
|
if [ "$REACTOS_SOURCE_DIR" = "$PWD" ]; then
|
|
echo Creating directories in $REACTOS_OUTPUT_PATH
|
|
mkdir -p "$REACTOS_OUTPUT_PATH"
|
|
cd "$REACTOS_OUTPUT_PATH"
|
|
fi
|
|
|
|
mkdir -p host-tools reactos
|
|
|
|
echo Preparing host tools...
|
|
cd host-tools
|
|
rm -f CMakeCache.txt
|
|
|
|
REACTOS_BUILD_TOOLS_DIR="$PWD"
|
|
cmake -G "$CMAKE_GENERATOR" -DARCH=$ARCH "$REACTOS_SOURCE_DIR"
|
|
|
|
echo Preparing reactos...
|
|
cd ../reactos
|
|
rm -f CMakeCache.txt
|
|
|
|
cmake -G "$CMAKE_GENERATOR" -DENABLE_CCACHE=0 -DPCH=0 -DCMAKE_TOOLCHAIN_FILE=toolchain-gcc.cmake -DARCH=$ARCH -DREACTOS_BUILD_TOOLS_DIR="$REACTOS_BUILD_TOOLS_DIR" "$REACTOS_SOURCE_DIR"
|
|
|
|
echo Configure script complete! Enter directories and execute appropriate build commands\(ex: make, makex, etc...\).
|