Skip to content

yrp604/bochscpu-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bochscpu-build

Branch Status
master Build Status
bochshead Build Status

This is a build job for the bochs artifacts for bochscpu. For normal usage you should only need to download a recent release, not build from source yourself.

Build

Requires subversion, git, and a C compiler

NOTES:

  • by design the build will fail with an error about libinstrument. This is expected and fine.

Linux/macOS

$ sh prep.sh
$ cd bochs
$ sh .conf.cpu
$ make

Windows

From WSL/Cygwin

$ sh prep.sh
$ cd bochs
$ sh .conf.cpu-msvc

From a Visual Studio x64 command prompt

> cd bochs
> nmake

Artifacts

This will build the following files:

  • bochs/cpu/libcpu.a
  • bochs/cpu/fpu/libfpu.a
  • bochs/cpu/avx/libavx.a
  • bochs/cpu/cpudb/libcpudb.a
  • bochs source tree

These needs to wind up in a directory tree like this:

x@y:~/bochscpu$ tree bochs
bochs/
└── [... snip many c files here ...]
x@y:~/bochscpu$ tree lib
lib
├── avx.lib
├── cpudb.lib
├── cpu.lib
└── fpu.lib

On Windows these files will be named object.lib, on linux/macos they will libobject.a. This is done by default by the pipeline script, and you should be able to simply copy the precompiled artifacts into your bochscpu source tree.