forked from qemu/qemu
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,41 @@ | ||
name: Build ARM user | ||
name: Build target user | ||
|
||
on: [pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.x | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
- name: Copy source.list file to include deb-src | ||
run: | | ||
sudo cp /etc/apt/sources.list /etc/apt/sources.list.d/tmp.list | ||
sudo sed -i "s/# deb-src/deb-src/g" /etc/apt/sources.list.d/tmp.list | ||
- name: Install deps | ||
run: | | ||
apt --no-install-recommends -y build-dep qemu | ||
apt install autoconf libtool protobuf-c-compiler | ||
sudo apt-get update | ||
sudo apt-get --no-install-recommends -y build-dep qemu | ||
sudo apt-get install -y autoconf libtool protobuf-c-compiler | ||
pip3 install --user ninja | ||
- name: Install OCaml | ||
uses: ocaml/setup-ocaml@v2 | ||
with: | ||
ocaml-compiler: 4.14.x | ||
dune-cache: true | ||
opam-disable-sandboxing: true | ||
- name: Install piqi | ||
run: | | ||
opam install piqi | ||
cs /root | ||
git clone https://github.com/BinaryAnalysisPlatform/bap-frames.git | ||
git clone [email protected]:BinaryAnalysisPlatform/qemu.git | ||
- name: Build for ARM | ||
- name: Clone qemu and bap-frames | ||
run: | | ||
git clone --depth 1 http://github.com/BinaryAnalysisPlatform/bap-frames.git | ||
git clone --depth 1 http://github.com/BinaryAnalysisPlatform/qemu.git | ||
- name: Build without tracewrap | ||
run: | | ||
cd qemu | ||
./configure --prefix=$HOME --with-tracewrap="/root/bap-frames" --target-list=arm-linux-user | ||
./configure --prefix=$HOME --target-list=arm-linux-user | ||
ninja -C build | ||
ninja -C build install | ||