* Prefixed the INCLUDE_GPL_ADDONS variable by "HAIKU_". configure needs to
be run again or generated/build/BuildConfig needs to be adjusted manually. * Removed bochs debug hack. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34721 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -275,10 +275,8 @@ SetIncludePropertiesVariables HAIKU ;
|
|||||||
HAIKU_ASFLAGS = ;
|
HAIKU_ASFLAGS = ;
|
||||||
|
|
||||||
# C/C++ flags
|
# C/C++ flags
|
||||||
HAIKU_KERNEL_CCFLAGS += -finline -fno-builtin
|
HAIKU_KERNEL_CCFLAGS += -finline -fno-builtin ;
|
||||||
-DBOCHS_DEBUG_HACK=$(BOCHS_DEBUG_HACK) ;
|
HAIKU_KERNEL_C++FLAGS += -finline -fno-builtin -fno-exceptions ;
|
||||||
HAIKU_KERNEL_C++FLAGS += -finline -fno-builtin -fno-exceptions
|
|
||||||
-DBOCHS_DEBUG_HACK=$(BOCHS_DEBUG_HACK) ;
|
|
||||||
HAIKU_KERNEL_DEFINES += _KERNEL_MODE ;
|
HAIKU_KERNEL_DEFINES += _KERNEL_MODE ;
|
||||||
|
|
||||||
if $(HAIKU_GCC_VERSION[1]) >= 3 {
|
if $(HAIKU_GCC_VERSION[1]) >= 3 {
|
||||||
@@ -561,9 +559,9 @@ if $(HOST_PLATFORM) != cygwin {
|
|||||||
}
|
}
|
||||||
|
|
||||||
HOST_KERNEL_CCFLAGS += $(HOST_GCC_BASE_FLAGS) -finline -fno-builtin
|
HOST_KERNEL_CCFLAGS += $(HOST_GCC_BASE_FLAGS) -finline -fno-builtin
|
||||||
-DBOCHS_DEBUG_HACK=$(BOCHS_DEBUG_HACK) -D_KERNEL_MODE ;
|
-D_KERNEL_MODE ;
|
||||||
HOST_KERNEL_C++FLAGS += $(HOST_GCC_BASE_FLAGS) -finline -fno-builtin
|
HOST_KERNEL_C++FLAGS += $(HOST_GCC_BASE_FLAGS) -finline -fno-builtin
|
||||||
-fno-exceptions -DBOCHS_DEBUG_HACK=$(BOCHS_DEBUG_HACK) -D_KERNEL_MODE ;
|
-fno-exceptions -D_KERNEL_MODE ;
|
||||||
HOST_KERNEL_DEFINES += _KERNEL_MODE ;
|
HOST_KERNEL_DEFINES += _KERNEL_MODE ;
|
||||||
|
|
||||||
HOST_KERNEL_PIC_CCFLAGS = -fno-pic ;
|
HOST_KERNEL_PIC_CCFLAGS = -fno-pic ;
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ if $(TARGET_ARCH) = x86 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
local GPL_ONLY = ;
|
local GPL_ONLY = ;
|
||||||
if $(INCLUDE_GPL_ADDONS) = 1 {
|
if $(HAIKU_INCLUDE_GPL_ADDONS) = 1 {
|
||||||
GPL_ONLY = "" ;
|
GPL_ONLY = "" ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ if $(TARGET_ARCH) = x86 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
local GPL_ONLY = ;
|
local GPL_ONLY = ;
|
||||||
if $(INCLUDE_GPL_ADDONS) = 1 {
|
if $(HAIKU_INCLUDE_GPL_ADDONS) = 1 {
|
||||||
GPL_ONLY = "" ;
|
GPL_ONLY = "" ;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -164,7 +164,7 @@ SYSTEM_ADD_ONS_DRIVERS_NET = $(X86_ONLY)3com $(X86_ONLY)atheros813x
|
|||||||
pegasus $(X86_ONLY)rtl8139 rtl8169 $(X86_ONLY)rtl81xx sis900
|
pegasus $(X86_ONLY)rtl8139 rtl8169 $(X86_ONLY)rtl81xx sis900
|
||||||
$(X86_ONLY)via_rhine wb840 $(X86_ONLY)ipro100 $(X86_ONLY)nforce
|
$(X86_ONLY)via_rhine wb840 $(X86_ONLY)ipro100 $(X86_ONLY)nforce
|
||||||
#vlance
|
#vlance
|
||||||
$(X86_ONLY)marvell_yukon $(X86_ONLY)syskonnect $(X86_ONLY)vt612x
|
$(X86_ONLY)marvell_yukon $(X86_ONLY)syskonnect $(X86_ONLY)vt612x
|
||||||
$(X86_ONLY)attansic_l1 $(X86_ONLY)attansic_l2 $(X86_ONLY)ar81xx
|
$(X86_ONLY)attansic_l1 $(X86_ONLY)attansic_l2 $(X86_ONLY)ar81xx
|
||||||
usb_ecm usb_asix
|
usb_ecm usb_asix
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -62,7 +62,7 @@ rule SubIncludeGPL
|
|||||||
{
|
{
|
||||||
# SubInclude rule that can be used to conditionally include GPL licensed
|
# SubInclude rule that can be used to conditionally include GPL licensed
|
||||||
# add-ons
|
# add-ons
|
||||||
if $(INCLUDE_GPL_ADDONS) = 1 {
|
if $(HAIKU_INCLUDE_GPL_ADDONS) = 1 {
|
||||||
SubInclude $(1) ;
|
SubInclude $(1) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ if $(TARGET_ARCH) = x86 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
local GPL_ONLY = ;
|
local GPL_ONLY = ;
|
||||||
if $(INCLUDE_GPL_ADDONS) = 1 {
|
if $(HAIKU_INCLUDE_GPL_ADDONS) = 1 {
|
||||||
GPL_ONLY = "" ;
|
GPL_ONLY = "" ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,8 +26,6 @@ options:
|
|||||||
To disable building the alternative libraries
|
To disable building the alternative libraries
|
||||||
the variable HAIKU_ADD_ALTERNATIVE_GCC_LIBS can be
|
the variable HAIKU_ADD_ALTERNATIVE_GCC_LIBS can be
|
||||||
unset in the UserBuildConfig file.
|
unset in the UserBuildConfig file.
|
||||||
--bochs-debug Enables bochs serial debug emulation (activated
|
|
||||||
via kernel settings file).
|
|
||||||
--build-cross-tools <build tools dir>
|
--build-cross-tools <build tools dir>
|
||||||
Assume cross compilation. <build tools dir>
|
Assume cross compilation. <build tools dir>
|
||||||
defines the location of the build tools sources.
|
defines the location of the build tools sources.
|
||||||
@@ -267,7 +265,6 @@ haikuSharedLibSupCxx=
|
|||||||
haikuCxxHeadersDir=
|
haikuCxxHeadersDir=
|
||||||
hostGCCVersion=`gcc -dumpversion`
|
hostGCCVersion=`gcc -dumpversion`
|
||||||
hostGCCMachine=`gcc -dumpmachine`
|
hostGCCMachine=`gcc -dumpmachine`
|
||||||
bochsDebug=0
|
|
||||||
includeGPLAddOns=0
|
includeGPLAddOns=0
|
||||||
includePatentedCode=0
|
includePatentedCode=0
|
||||||
include3rdParty=0
|
include3rdParty=0
|
||||||
@@ -315,7 +312,6 @@ while [ $# -gt 0 ] ; do
|
|||||||
cd $currentDir
|
cd $currentDir
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
--bochs-debug) bochsDebug=1; shift 1;;
|
|
||||||
--build-cross-tools) assertparam "$1" $#; buildCrossTools=$2; shift 2;;
|
--build-cross-tools) assertparam "$1" $#; buildCrossTools=$2; shift 2;;
|
||||||
--build-cross-tools-gcc4)
|
--build-cross-tools-gcc4)
|
||||||
assertparams "$1" 2 $#
|
assertparams "$1" 2 $#
|
||||||
@@ -474,8 +470,7 @@ cat << EOF > "$buildOutputDir/BuildConfig"
|
|||||||
TARGET_PLATFORM ?= "${target}" ;
|
TARGET_PLATFORM ?= "${target}" ;
|
||||||
HOST_PLATFORM ?= "${buildPlatform}" ;
|
HOST_PLATFORM ?= "${buildPlatform}" ;
|
||||||
|
|
||||||
BOCHS_DEBUG_HACK ?= "${bochsDebug}" ;
|
HAIKU_INCLUDE_GPL_ADDONS ?= "${includeGPLAddOns}" ;
|
||||||
INCLUDE_GPL_ADDONS ?= "${includeGPLAddOns}" ;
|
|
||||||
HAIKU_INCLUDE_PATENTED_CODE ?= "${includePatentedCode}" ;
|
HAIKU_INCLUDE_PATENTED_CODE ?= "${includePatentedCode}" ;
|
||||||
HAIKU_INCLUDE_3RDPARTY ?= "${include3rdParty}" ;
|
HAIKU_INCLUDE_3RDPARTY ?= "${include3rdParty}" ;
|
||||||
HAIKU_ENABLE_MULTIUSER ?= "${enableMultiuser}" ;
|
HAIKU_ENABLE_MULTIUSER ?= "${enableMultiuser}" ;
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ if $(TARGET_ARCH) = x86 {
|
|||||||
HAIKU_FFMPEG_DEFINES += HAVE_VIS=1 ;
|
HAIKU_FFMPEG_DEFINES += HAVE_VIS=1 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if $(INCLUDE_GPL_ADDONS) = 1 {
|
if $(HAIKU_INCLUDE_GPL_ADDONS) = 1 {
|
||||||
HAIKU_FFMPEG_DEFINES += CONFIG_GPL=1 ;
|
HAIKU_FFMPEG_DEFINES += CONFIG_GPL=1 ;
|
||||||
} else {
|
} else {
|
||||||
HAIKU_FFMPEG_DEFINES += CONFIG_GPL=0 ;
|
HAIKU_FFMPEG_DEFINES += CONFIG_GPL=0 ;
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ if $(HAIKU_FFMPEG_USE_MMX) = 1 {
|
|||||||
fft_mmx.nasm
|
fft_mmx.nasm
|
||||||
dsputil_yasm.nasm
|
dsputil_yasm.nasm
|
||||||
;
|
;
|
||||||
if $(INCLUDE_GPL_ADDONS) = 1 {
|
if $(HAIKU_INCLUDE_GPL_ADDONS) = 1 {
|
||||||
mmxSources +=
|
mmxSources +=
|
||||||
idct_mmx.c
|
idct_mmx.c
|
||||||
;
|
;
|
||||||
@@ -49,7 +49,7 @@ if $(HAIKU_FFMPEG_USE_SSSE3) = 1 {
|
|||||||
vp3dsp_sse2.c
|
vp3dsp_sse2.c
|
||||||
vp6dsp_sse2.c
|
vp6dsp_sse2.c
|
||||||
;
|
;
|
||||||
if $(INCLUDE_GPL_ADDONS) = 1 {
|
if $(HAIKU_INCLUDE_GPL_ADDONS) = 1 {
|
||||||
sseSources +=
|
sseSources +=
|
||||||
h264_idct_sse2.nasm
|
h264_idct_sse2.nasm
|
||||||
h264_deblock_sse2.nasm
|
h264_deblock_sse2.nasm
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ local archSources ;
|
|||||||
archSources = ;
|
archSources = ;
|
||||||
|
|
||||||
if $(TARGET_ARCH) = x86 {
|
if $(TARGET_ARCH) = x86 {
|
||||||
if $(INCLUDE_GPL_ADDONS) = 1 {
|
if $(HAIKU_INCLUDE_GPL_ADDONS) = 1 {
|
||||||
archSources += yuv2rgb_mmx.c ;
|
archSources += yuv2rgb_mmx.c ;
|
||||||
SubDirHdrs [ FDirName $(SUBDIR) $(TARGET_ARCH) ] ;
|
SubDirHdrs [ FDirName $(SUBDIR) $(TARGET_ARCH) ] ;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,16 +23,6 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
||||||
/* If you've enabled Bochs debug output in the kernel driver
|
|
||||||
* settings and has defined this, serial debug output will be
|
|
||||||
* disabled and redirected to Bochs.
|
|
||||||
* Define this only if not used as compile parameter.
|
|
||||||
*/
|
|
||||||
#ifndef BOCHS_DEBUG_HACK
|
|
||||||
# define BOCHS_DEBUG_HACK 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
enum serial_register_offsets {
|
enum serial_register_offsets {
|
||||||
SERIAL_TRANSMIT_BUFFER = 0,
|
SERIAL_TRANSMIT_BUFFER = 0,
|
||||||
SERIAL_RECEIVE_BUFFER = 0,
|
SERIAL_RECEIVE_BUFFER = 0,
|
||||||
@@ -74,9 +64,6 @@ static uint16 sSerialBasePort = 0x3f8;
|
|||||||
// COM1 is the default debug output port
|
// COM1 is the default debug output port
|
||||||
|
|
||||||
static bool sKeyboardHandlerInstalled = false;
|
static bool sKeyboardHandlerInstalled = false;
|
||||||
#if BOCHS_DEBUG_HACK
|
|
||||||
static bool sBochsOutput = false;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static spinlock sSerialOutputSpinlock = B_SPINLOCK_INITIALIZER;
|
static spinlock sSerialOutputSpinlock = B_SPINLOCK_INITIALIZER;
|
||||||
|
|
||||||
@@ -84,13 +71,6 @@ static spinlock sSerialOutputSpinlock = B_SPINLOCK_INITIALIZER;
|
|||||||
static void
|
static void
|
||||||
put_char(const char c)
|
put_char(const char c)
|
||||||
{
|
{
|
||||||
#if BOCHS_DEBUG_HACK
|
|
||||||
if (sBochsOutput) {
|
|
||||||
out8(c, 0xe9);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wait until the transmitter empty bit is set
|
// wait until the transmitter empty bit is set
|
||||||
while ((in8(sSerialBasePort + SERIAL_LINE_STATUS) & 0x20) == 0)
|
while ((in8(sSerialBasePort + SERIAL_LINE_STATUS) & 0x20) == 0)
|
||||||
asm volatile ("pause;");
|
asm volatile ("pause;");
|
||||||
@@ -319,11 +299,6 @@ arch_debug_blue_screen_getchar(void)
|
|||||||
char
|
char
|
||||||
arch_debug_serial_getchar(void)
|
arch_debug_serial_getchar(void)
|
||||||
{
|
{
|
||||||
#if BOCHS_DEBUG_HACK
|
|
||||||
if (sBochsOutput)
|
|
||||||
return arch_debug_blue_screen_getchar();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
while ((in8(sSerialBasePort + SERIAL_LINE_STATUS) & 0x1) == 0)
|
while ((in8(sSerialBasePort + SERIAL_LINE_STATUS) & 0x1) == 0)
|
||||||
asm volatile ("pause;");
|
asm volatile ("pause;");
|
||||||
|
|
||||||
@@ -419,12 +394,8 @@ arch_debug_console_init_settings(kernel_args *args)
|
|||||||
// get debug settings
|
// get debug settings
|
||||||
handle = load_driver_settings("kernel");
|
handle = load_driver_settings("kernel");
|
||||||
if (handle != NULL) {
|
if (handle != NULL) {
|
||||||
const char *value;
|
const char *value = get_driver_parameter(handle, "serial_debug_port",
|
||||||
|
NULL, NULL);
|
||||||
#if BOCHS_DEBUG_HACK
|
|
||||||
sBochsOutput = get_driver_boolean_parameter(handle, "bochs_debug_output", false, false);
|
|
||||||
#endif
|
|
||||||
value = get_driver_parameter(handle, "serial_debug_port", NULL, NULL);
|
|
||||||
if (value != NULL) {
|
if (value != NULL) {
|
||||||
int32 number = strtol(value, NULL, 0);
|
int32 number = strtol(value, NULL, 0);
|
||||||
if (number >= MAX_SERIAL_PORTS) {
|
if (number >= MAX_SERIAL_PORTS) {
|
||||||
|
|||||||
Reference in New Issue
Block a user