forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbarney.yaml
75 lines (71 loc) · 1.84 KB
/
barney.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Copyright (c) 2022 Arista Networks, Inc. All rights reserved.
# Arista Networks, Inc. Confidential and Proprietary.
images:
# we won't reuse mfw/build%build-floor to avoid a circular dependency,
# and also because the build deps here are a bit more minimal since
# we don't handle anything mfw-related
build-floor:
units:
- image: barney.ci/debian%minbase
- image: barney.ci/debian%network
finalizers:
- - apt
- install
- -y
- build-essential
- file
- gawk
- gettext
- git
- libncurses-dev
- libssl-dev
- python3
- python3-distutils
- rsync
- unzip
- wget
- zlib1g-dev
entry:
mutables:
- /root
env:
FORCE_UNSAFE_CONFIGURE: 1
HOME: /root
test/build-floor:
description: |
Check that we can run a couple of utilities
units:
- floor: .%build-floor
build: |
make --version
python3 --version
world:
units:
- floor: .%build-floor
build: |
set -e
# barney sets DESTDIR to /dest, but this really confuses openwrt
unset DESTDIR
# build
cat >> .config <<EOF
CONFIG_TARGET_x86=y
CONFIG_TARGET_x86_64=y
CONFIG_TARGET_x86_64_DEVICE_generic=y
CONFIG_TARGET_SUFFIX="musl"
CONFIG_LIBC="musl"
# CONFIG_USE_LIBSTDCXX is not set
CONFIG_USE_MUSL=y
CONFIG_LIBC_USE_MUSL=y
# CONFIG_VDI_IMAGES is not set
# CONFIG_VMDK_IMAGES is not set
# CONFIG_ESXI_VMDK_IMAGES is not set
EOF
make -j $(nproc) defconfig download world
# extract FS content into destination image
tar -C /dest -xavf bin/targets/x86/64/*-generic-rootfs.tar.gz
test/world:
units:
- floor: .%world
build: |
set -e
date