File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
- sudo : false
1
+ dist : xenial
2
2
matrix :
3
3
include :
4
4
- os : linux
5
- env : TARGET=x86_64-unknown-linux-musl
6
5
addons :
7
6
apt :
8
7
packages :
8
+ - musl-dev
9
9
- libpci-dev
10
10
- libusb-dev
11
11
- libusb-1.0-0-dev
12
+ - uuid-dev
13
+ - linux-libc-dev
12
14
script :
13
15
- " ./build.sh"
14
16
deploy :
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
- set -ex
2
+ set -exu
3
3
4
4
BASEDIR=" ${PWD} "
5
5
OUTDIR=" ${BASEDIR} /build"
@@ -16,6 +16,8 @@ git clone git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git
16
16
cd kexec-tools
17
17
git checkout -b " ${KEXEC_TOOLS_VERSION} "
18
18
./bootstrap
19
+ # just optimize for space. Kexec uses kernel headers so we cannot use musl-gcc
20
+ # here. See https://wiki.musl-libc.org/faq.html#Q:-Why-am-I-getting-
19
21
CFLAGS=-Os ./configure
20
22
make
21
23
strip build/sbin/kexec
@@ -27,7 +29,9 @@ cd "${OUTDIR}"
27
29
git clone https://review.coreboot.org/cgit/flashrom.git
28
30
cd flashrom
29
31
git checkout -b " ${FLASHROM_VERSION} "
30
- make
32
+ # no musl-gcc here either, as flashrom needs libpci-dev (we may remove PCI
33
+ # programmers from the build at a later stage though)
34
+ CFLAGS=-Os make
31
35
strip flashrom
32
36
du -hs flashrom
33
37
ldd flashrom
@@ -38,6 +42,6 @@ wget "http://pyropus.ca/software/memtester/old-versions/memtester-${MEMTESTER_VE
38
42
tar xvzf " memtester-${MEMTESTER_VERSION} " .tar.gz
39
43
ln -s " memtester-${MEMTESTER_VERSION} " memtester
40
44
cd " memtester-${MEMTESTER_VERSION} "
41
- make # build statically
45
+ CFLAGS=-Os CC=musl-gcc make # build statically
42
46
du -hs memtester
43
47
ldd memtester
You can’t perform that action at this time.
0 commit comments