2018-09-15 09:42:42 +00:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
docker:
|
2018-09-18 19:59:48 +00:00
|
|
|
- image: osresearch/heads-ubuntu:16.04
|
2018-09-15 09:42:42 +00:00
|
|
|
steps:
|
2018-09-15 09:56:58 +00:00
|
|
|
- run:
|
|
|
|
name: Install dependencies
|
|
|
|
command: |
|
2018-09-15 09:58:00 +00:00
|
|
|
apt update
|
2018-09-15 09:56:58 +00:00
|
|
|
apt install -y \
|
|
|
|
build-essential \
|
|
|
|
zlib1g-dev \
|
|
|
|
uuid-dev \
|
|
|
|
libdigest-sha-perl \
|
|
|
|
libelf-dev \
|
|
|
|
bc \
|
|
|
|
bzip2 \
|
|
|
|
bison \
|
|
|
|
flex \
|
|
|
|
git \
|
|
|
|
gnupg \
|
|
|
|
iasl \
|
|
|
|
m4 \
|
|
|
|
nasm \
|
|
|
|
patch \
|
|
|
|
python \
|
|
|
|
wget \
|
|
|
|
gnat \
|
|
|
|
cpio \
|
|
|
|
ccache \
|
2018-09-18 11:14:39 +00:00
|
|
|
lzma \
|
2018-09-15 09:52:38 +00:00
|
|
|
|
2018-09-15 10:56:42 +00:00
|
|
|
- checkout
|
|
|
|
|
2018-09-18 16:08:16 +00:00
|
|
|
- run:
|
|
|
|
name: Bootstrap make
|
|
|
|
command: |
|
2018-09-18 19:59:48 +00:00
|
|
|
make -j4 bootstrap
|
2018-09-18 16:08:16 +00:00
|
|
|
|
|
|
|
- run:
|
2018-09-18 19:59:48 +00:00
|
|
|
name: Bootstrap coreboot-gcc
|
2018-09-18 16:08:16 +00:00
|
|
|
command: |
|
|
|
|
./build/make-4.2.1/make \
|
2018-09-18 20:04:28 +00:00
|
|
|
TOOLCHAIN=/home/builder/heads \
|
2018-09-18 16:08:16 +00:00
|
|
|
V=1 \
|
|
|
|
BOARD=qemu-coreboot \
|
2018-09-18 19:59:48 +00:00
|
|
|
coreboot-gcc
|
2018-09-18 16:08:16 +00:00
|
|
|
|
2018-09-18 13:27:18 +00:00
|
|
|
|
2018-09-15 09:56:58 +00:00
|
|
|
- run:
|
|
|
|
name: qemu-coreboot
|
|
|
|
command: |
|
2018-09-18 16:08:16 +00:00
|
|
|
./build/make-4.2.1/make \
|
2018-09-18 20:04:28 +00:00
|
|
|
TOOLCHAIN=/home/builder/heads \
|
2018-09-18 11:14:39 +00:00
|
|
|
V=1 \
|
2018-09-18 19:59:48 +00:00
|
|
|
-j4 \
|
2018-09-18 11:14:39 +00:00
|
|
|
BOARD=qemu-coreboot \
|
2018-09-18 17:07:14 +00:00
|
|
|
|
2018-09-18 16:08:16 +00:00
|
|
|
- store-artifacts:
|
|
|
|
path: build/qemu-coreboot/coreboot.rom
|
|
|
|
- store-artifacts:
|
|
|
|
path: build/qemu-coreboot/hashes.txt
|
2018-09-18 11:14:39 +00:00
|
|
|
|
2018-09-18 17:07:14 +00:00
|
|
|
|
2018-09-15 09:56:58 +00:00
|
|
|
- run:
|
|
|
|
name: qemu-linuxboot
|
|
|
|
command: |
|
2018-09-18 16:08:16 +00:00
|
|
|
./build/make-4.2.1/make \
|
2018-09-18 20:04:28 +00:00
|
|
|
TOOLCHAIN=/home/builder/heads \
|
2018-09-18 11:14:39 +00:00
|
|
|
V=1 \
|
2018-09-18 20:04:28 +00:00
|
|
|
-j4 \
|
2018-09-18 11:14:39 +00:00
|
|
|
BOARD=qemu-linuxboot \
|
2018-09-18 17:07:14 +00:00
|
|
|
|
2018-09-18 16:08:16 +00:00
|
|
|
- store-artifacts:
|
|
|
|
path: build/qemu-linuxboot/linuxboot.rom
|
|
|
|
- store-artifacts:
|
|
|
|
path: build/qemu-linuxboot/hashes.txt
|
2018-09-18 11:14:39 +00:00
|
|
|
|
2018-09-18 17:07:14 +00:00
|
|
|
|
|
|
|
- run:
|
|
|
|
name: x230
|
|
|
|
command: |
|
|
|
|
./build/make-4.2.1/make \
|
2018-09-18 20:04:28 +00:00
|
|
|
TOOLCHAIN=/home/builder/heads \
|
2018-09-18 17:07:14 +00:00
|
|
|
-j4 \
|
|
|
|
V=1 \
|
|
|
|
BOARD=x230 \
|
|
|
|
|
|
|
|
- store-artifacts:
|
|
|
|
path: build/x230/coreboot.rom
|
|
|
|
- store-artifacts:
|
|
|
|
path: build/x230/hashes.txt
|
|
|
|
|
|
|
|
|
2018-09-15 09:42:42 +00:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build_and_test:
|
|
|
|
jobs:
|
|
|
|
- build
|