Skip to content

Commit ef67e07

Browse files
committed
Fix build with correct tag checkout
The script was always checking out latest kexec-tools and flashrom, instead of the correct tag. This is now fixed. And also remove libusb0 programmers. Signed-off-by: Andrea Barberio <insomniac@slackware.it>
1 parent a42828c commit ef67e07

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ addons:
77
packages:
88
- musl-dev
99
- libpci-dev
10-
- libusb-dev
11-
- libusb-1.0-0-dev
1210
- uuid-dev
1311
- linux-libc-dev
1412
script:

build.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ set -exu
33

44
BASEDIR="${PWD}"
55
OUTDIR="${BASEDIR}/build"
6-
KEXEC_TOOLS_VERSION="tags/v2.0.20"
7-
FLASHROM_VERSION="tags/v1.1"
6+
KEXEC_TOOLS_VERSION="v2.0.20"
7+
FLASHROM_VERSION="v1.1"
88
MEMTESTER_VERSION=4.3.0
99
VPD_VERSION="release-R85-13310.B"
1010

@@ -27,7 +27,7 @@ check_if_statically_linked() {
2727
cd "${OUTDIR}"
2828
git clone git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git
2929
cd kexec-tools
30-
git checkout -b "${KEXEC_TOOLS_VERSION}"
30+
git checkout "${KEXEC_TOOLS_VERSION}"
3131
./bootstrap
3232
# just optimize for space. Kexec uses kernel headers so we cannot use musl-gcc
3333
# here. See https://wiki.musl-libc.org/faq.html#Q:-Why-am-I-getting-
@@ -36,23 +36,25 @@ make
3636
strip build/sbin/kexec
3737
du -hs build/sbin/kexec
3838
check_if_statically_linked build/sbin/kexec
39-
cp build/sbin/kexec "${OUTDIR}/binaries/kexec-${KEXEC_TOOLS_VERSION#tags/}"
39+
cp build/sbin/kexec "${OUTDIR}/binaries/kexec-${KEXEC_TOOLS_VERSION}"
4040

4141
# build flashrom
4242
cd "${OUTDIR}"
4343
git clone https://review.coreboot.org/cgit/flashrom.git
4444
cd flashrom
45-
git checkout -b "${FLASHROM_VERSION}"
45+
git checkout "${FLASHROM_VERSION}"
4646
# no musl-gcc here either, as flashrom needs libpci-dev (we may remove PCI
4747
# programmers from the build at a later stage though)
4848
CONFIG_STATIC=yes \
4949
CONFIG_ENABLE_LIBPCI_PROGRAMMERS=no \
50+
CONFIG_ENABLE_LIBUSB0_PROGRAMMERS=no \
5051
CONFIG_ENABLE_LIBUSB1_PROGRAMMERS=no \
52+
CONFIG_INTERNAL=yes \
5153
make
5254
strip flashrom
5355
du -hs flashrom
5456
check_if_statically_linked flashrom
55-
cp flashrom "${OUTDIR}/binaries/flashrom-${FLASHROM_VERSION#tags/}"
57+
cp flashrom "${OUTDIR}/binaries/flashrom-${FLASHROM_VERSION}"
5658

5759
# build memtester
5860
cd "${OUTDIR}"
@@ -83,8 +85,8 @@ cp vpd "${OUTDIR}/binaries/vpd-${VPD_VERSION}"
8385
# Create tarball
8486
cd "${OUTDIR}"
8587
tar czf release.tar.gz \
86-
"binaries/kexec-${KEXEC_TOOLS_VERSION#tags/}" \
87-
"binaries/flashrom-${FLASHROM_VERSION#tags/}" \
88+
"binaries/kexec-${KEXEC_TOOLS_VERSION}" \
89+
"binaries/flashrom-${FLASHROM_VERSION}" \
8890
"binaries/memtester-${MEMTESTER_VERSION}" \
8991
"binaries/vpd-${VPD_VERSION}"
9092
tar tzf release.tar.gz

0 commit comments

Comments
 (0)