Skip to content

Commit d04a3e6

Browse files
authored
Build flashrom (#5)
1 parent 3248793 commit d04a3e6

File tree

4 files changed

+37
-16
lines changed

4 files changed

+37
-16
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ matrix:
88
addons:
99
apt:
1010
packages:
11-
- musl
11+
- libpci-dev
12+
- libusb-dev
13+
- libusb-1.0-0-dev
1214

1315
script:
14-
- ./.travis/build.sh
16+
- ./build.sh

.travis/build.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.

build.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env bash
2+
set -ex
3+
4+
BASEDIR="${PWD}"
5+
OUTDIR="${BASEDIR}/build"
6+
KEXEC_TOOLS_VERSION="tags/v2.0.17"
7+
FLASHROM_VERSION="tags/v1.0"
8+
9+
rm -rf "${OUTDIR}"
10+
mkdir -p "${OUTDIR}"
11+
12+
# build kexec-tools
13+
cd "${OUTDIR}"
14+
git clone https://github.com/horms/kexec-tools.git
15+
cd kexec-tools
16+
git checkout -b "${KEXEC_TOOLS_VERSION}"
17+
./bootstrap
18+
CFLAGS=-Os ./configure
19+
make
20+
strip build/sbin/kexec
21+
du -hs build/sbin/kexec
22+
ldd build/sbin/kexec
23+
24+
# build flashrom
25+
cd "${OUTDIR}"
26+
git clone https://review.coreboot.org/cgit/flashrom.git
27+
cd flashrom
28+
git checkout -b "${FLASHROM_VERSION}"
29+
make
30+
strip flashrom
31+
du -hs flashrom
32+
ldd flashrom

0 commit comments

Comments
 (0)