[Lunar-commits] CVS: moonbase/devel/bochs BUILD, NONE, 1.1 CONFIGURE, NONE, 1.1 DEPENDS, NONE, 1.1 DETAILS, NONE, 1.1

Terry Chan tchan at lunar-linux.org
Thu Mar 18 22:31:55 GMT 2004


Update of /var/cvs/lunar/moonbase/devel/bochs
In directory dbguin.lunar-linux.org:/tmp/cvs-serv20510

Added Files:
	BUILD CONFIGURE DEPENDS DETAILS 
Log Message:
Moved this module from utils to devel.  This is now in the same section as
UML and qemu.


--- NEW FILE: BUILD ---
bad_flags -malign-double 

OPTS="$OPTS --enable-cpu-level=6"
OPTS="$OPTS --with-all-libs"

if [[ $ALL == "y" ]]; then
  OPTS="$OPTS --enable-all-optimizations"
else
  if [[ $G2H == "y" ]]; then
    OPTS="$OPTS --enable-guest2host-tlb"
  fi

  if [[ $REPEAT == "y" ]]; then
    OPTS="$OPTS --enable-repeat-speedups"
  fi

  if [[ $ICACHE == "y" ]]; then
    OPTS="$OPTS --enable-icache"
  fi

  if [[ $ASM == "y" ]]; then
    OPTS="$OPTS --enable-host-specific-asms"
  fi
fi

if [[ $SB16 == "y" ]]; then
  OPTS="$OPTS --enable-sb16=linux"
fi

if [[ $SSE == "y" ]]; then
  OPTS="$OPTS --enable-sse"
fi

if [[ $MMX == "y" ]]; then
  OPTS="$OPTS --enable-mmx"
fi

if [[ $PLUGINS == "y" ]]; then
  OPTS="$OPTS --enable-plugins"
fi

if [[ $GLOBAL == "y" ]]; then
  OPTS="$OPTS --enable-global-pages"
fi

if [[ $SLOWDOWN == "y" ]]; then
  OPTS="$OPTS --enable-slowdown"
fi

if [[ $IDLE == "y" ]]; then
  OPTS="$OPTS --enable-idle-hack"
fi

if [[ $NE2000 == "y" ]]; then
  OPTS="$OPTS --enable-ne2000"
fi

if [[ $MSR == "y" ]]; then
  OPTS="$OPTS --enable-ignore-bad-msr"
fi

default_build

--- NEW FILE: CONFIGURE ---
if  !  grep  -q "ALL" $MODULE_CONFIG;  then
  if    query  "Enable all safe optimizations?" y
  then  
    echo   "ALL=y"  >>  $MODULE_CONFIG
  else  echo   "ALL=n"  >>  $MODULE_CONFIG
  fi
else
  if  !  grep  -q "G2H" $MODULE_CONFIG;  then
    if    query  "Enable guest to host tlb (speed)?" y
    then  
      echo   "G2H=y"  >>  $MODULE_CONFIG
      
    else  echo   "G2H=n"  >>  $MODULE_CONFIG
    fi
  fi

  if  !  grep  -q "REPEAT" $MODULE_CONFIG;  then
     if    query  "Enable repeat speedups?" y
    then  
      echo   "REPEAT=y"  >>  $MODULE_CONFIG
      
    else  echo   "REPEAT=n"  >>  $MODULE_CONFIG
    fi
  fi

  if  !  grep  -q "ICACHE" $MODULE_CONFIG;  then
    if    query  "Enable icache (speed)?" y
    then  
      echo   "ICACHE=y"  >>  $MODULE_CONFIG
      
    else  echo   "ICACHE=n"  >>  $MODULE_CONFIG
    fi
  fi

  if  !  grep  -q "ASM" $MODULE_CONFIG;  then
    if    query  "Enable host specific asms?" y
    then  
      echo   "ASM=y"  >>  $MODULE_CONFIG
      
    else  echo   "ASM=n"  >>  $MODULE_CONFIG
    fi
  fi
fi

if  !  grep  -q "SB16" $MODULE_CONFIG;  then
  if    query  "Emulate SB16?" n
  then  
    echo   "SB16=y"  >>  $MODULE_CONFIG
    
  else  echo   "SB16=n"  >>  $MODULE_CONFIG
  fi
fi

if  !  grep  -q "SSE" $MODULE_CONFIG;  then
  if    query  "Enable SSE?" y
  then  
    echo   "SSE=y"  >>  $MODULE_CONFIG
    
  else  echo   "SSE=n"  >>  $MODULE_CONFIG
  fi
fi

if  !  grep  -q "MMX" $MODULE_CONFIG;  then
  if    query  "Enable MMX?" y
  then  
    echo   "MMX=y"  >>  $MODULE_CONFIG
    
  else  echo   "MMX=n"  >>  $MODULE_CONFIG
  fi
fi

if  !  grep  -q "PLUGINS" $MODULE_CONFIG;  then
  if    query  "Enable plugins?" n
  then  
    echo   "PLUGINS=y"  >>  $MODULE_CONFIG
    
  else  echo   "PLUGINS=n"  >>  $MODULE_CONFIG
  fi
fi

if  !  grep  -q "GLOBAL" $MODULE_CONFIG;  then
  if    query  "Enable global pages?" n
  then  
    echo   "GLOBAL=y"  >>  $MODULE_CONFIG
    
  else  echo   "GLOBAL=n"  >>  $MODULE_CONFIG
  fi
fi

if  !  grep  -q "SLOWDOWN" $MODULE_CONFIG;  then
  if    query  "Enable timer slowdown?" n
  then  
    echo   "SLOWDOWN=y"  >>  $MODULE_CONFIG
    
  else  echo   "SLOWDOWN=n"  >>  $MODULE_CONFIG
  fi
fi

if  !  grep  -q "IDLE" $MODULE_CONFIG;  then
  if    query  "Enable idle hack?" n
  then  
    echo   "IDLE=y"  >>  $MODULE_CONFIG 
    
  else  echo   "IDLE=n"  >>  $MODULE_CONFIG 
  fi
fi

if  !  grep  -q "NE2000" $MODULE_CONFIG;  then
  if    query  "Emulate NE2000 network card?" n
  then  
    echo   "NE2000=y"  >>  $MODULE_CONFIG 
    
  else  echo   "NE2000=n"  >>  $MODULE_CONFIG 
  fi
fi

if  !  grep  -q "MSR" $MODULE_CONFIG;  then
  if    query  "Ignore bad msr (Don't stop on error)?" n
  then  
    echo   "MSR=y"  >>  $MODULE_CONFIG 
    
  else  echo   "MSR=n"  >>  $MODULE_CONFIG 
  fi
fi





--- NEW FILE: DEPENDS ---
optional_depends "wxGTK" "--with-wx" "" "for wxWindows support"

--- NEW FILE: DETAILS ---
          MODULE=bochs
         VERSION=2.1.1
          SOURCE=$MODULE-$VERSION.tar.gz
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
   SOURCE_URL[0]=$SFORGE_URL/bochs/$SOURCE
        WEB_SITE=http://bochs.sourceforge.net
         ENTERED=20011015
         UPDATED=20040318
           SHORT="Bochs is an i386 hardware emulator"
cat << EOF
Bochs is a portable x86 PC emulation software package that emulates
enough of the x86 CPU, related AT hardware, and BIOS to run DOS, Windows
95, Linux, FreeBSD, and other OS's, all on your workstation.
EOF



More information about the Lunar-commits mailing list