Skip to content

Commit 9c39a2e

Browse files
change edk2 build,rm alt build libvirt,qemu
Signed-off-by: Nikita Korolev <[email protected]>
1 parent dd3d15b commit 9c39a2e

File tree

3 files changed

+59
-549
lines changed

3 files changed

+59
-549
lines changed

Diff for: images/edk2/werf.inc.yaml

+54-31
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ shell:
6868
cd {{ $gitRepoName }}-{{ $version }}
6969
git submodule update --init --recursive
7070
71+
setup:
72+
- |
73+
cd /{{ $gitRepoName }}-{{ $version }}
7174
# Set env edk
7275
export EDK_TOOLS_PATH=$(pwd)/BaseTools
7376
export PACKAGES_PATH=$(pwd)/BaseTools:/edk2-platforms
@@ -76,8 +79,6 @@ shell:
7679
ln /usr/bin/python3 /usr/bin/python
7780
make -C BaseTools -j$(nproc) 2>&1 > /dev/null
7881
79-
setup:
80-
- |
8182
/build.sh --repo-name {{ $gitRepoName }} --branch {{ $version }}
8283
8384
---
@@ -125,32 +126,51 @@ shell:
125126
apt-get install -y eatmydata
126127
eatmydata apt-get dist-upgrade -y
127128
eatmydata apt-get install -y \
128-
git curl \
129-
bash-completion \
130-
binutils-dev \
131-
clang \
132-
ca-certificates \
133-
bc \
134-
dosfstools \
135-
dpkg \
136-
g++-multilib \
137-
gcc-multilib \
138-
iasl \
139-
mtools \
140-
make \
141-
nasm \
142-
openssl \
143-
python3 \
144-
python3-distutils \
145-
python3-pexpect \
146-
qemu-utils \
147-
qemu-system-arm \
148-
qemu-system-x86 \
149-
uuid-dev \
150-
sbsigntool \
151-
shim-signed \
152-
genisoimage \
153-
xorriso
129+
acpica-tools automake autoconf autotools-dev \
130+
git curl \
131+
bash-completion \
132+
binutils-dev \
133+
clang \
134+
ca-certificates \
135+
bc \
136+
dosfstools \
137+
dpkg \
138+
fuse3 \
139+
g++-multilib \
140+
gcc-multilib \
141+
gettext gettext-base \
142+
iasl \
143+
libc6 libc6-dev \
144+
libaio1 libaio-dev \
145+
libarchive-zip-perl libdebhelper-perl \
146+
libfile-stripnondeterminism-perl \
147+
liblocale-gettext-perl \
148+
liburing2 \
149+
libisofs6 \
150+
libstdc++-11-dev \
151+
libtsan2 \
152+
libjson-glib-dev libjson-c-dev \
153+
libjson-any-perl \
154+
libjson-c5 \
155+
libjson-glib-1.0-0 \
156+
libperl5.36 libperl-dev \
157+
mtools nasm netbase \
158+
make cmake \
159+
openssl \
160+
perl perl-depends \
161+
python3 \
162+
python3-distutils \
163+
python3-pexpect \
164+
python3-ptyprocess \
165+
qemu-utils \
166+
qemu-system-arm \
167+
qemu-system-x86 \
168+
readline-common seabios \
169+
sensible-utils uuid-dev \
170+
sbsigntool \
171+
shim-signed \
172+
genisoimage \
173+
xorriso
154174
155175
eatmydata apt-get autoremove -y
156176
eatmydata apt-get autoclean -y
@@ -165,6 +185,11 @@ shell:
165185
cd {{ $gitRepoName }}-{{ $version }}
166186
git submodule update --init --recursive
167187
188+
189+
setup:
190+
- |
191+
cd /{{ $gitRepoName }}-{{ $version }}
192+
168193
# Set env edk
169194
export EDK_TOOLS_PATH=$(pwd)/BaseTools
170195
export PACKAGES_PATH=$(pwd)/BaseTools:/edk2-platforms
@@ -173,6 +198,4 @@ shell:
173198
ln /usr/bin/python3 /usr/bin/python
174199
make -C BaseTools -j$(nproc) 2>&1 > /dev/null
175200
176-
setup:
177-
- |
178-
/build.sh --repo-name {{ $gitRepoName }} --branch {{ $version }}
201+
/build.sh --repo-name {{ $gitRepoName }} --branch {{ $version }}

Diff for: images/libvirt/werf.inc.yaml

-192
Original file line numberDiff line numberDiff line change
@@ -3,198 +3,6 @@
33
{{- $version := get $.Version $gitRepoName }}
44
{{- $gitRepoUrl := cat $.SOURCE_REPO "/libvirt/libvirt.git" | nospace }}
55

6-
{{/*
7-
8-
# image: {{ $.ImageName }}-alt
9-
# final: false
10-
# fromImage: base-alt-p11
11-
# git:
12-
# - add: /images/{{ $.ImageName }}/
13-
# to: /
14-
# includePaths:
15-
# - install-libvirt.sh
16-
# - patches
17-
# excludePaths:
18-
# - patches/README.md
19-
# stageDependencies:
20-
# install:
21-
# - '**/*'
22-
# setup:
23-
# - install-libvirt.sh
24-
# shell:
25-
# beforeInstall:
26-
# - |
27-
# apt-get update && apt-get install --yes \
28-
# binutils \
29-
# dmidecode \
30-
# gcc-c++ \
31-
# git \
32-
# gettext \
33-
# bash-completion \
34-
# clang \
35-
# ccache \
36-
# make cmake \
37-
# meson \
38-
# ninja-build \
39-
# libudev-devel \
40-
# libpciaccess-devel \
41-
# libyajl-devel \
42-
# sanlock-devel \
43-
# libpcap-devel \
44-
# libnl-devel \
45-
# libselinux-devel \
46-
# iproute \
47-
# iptables \
48-
# iptables-nft \
49-
# iptables-ipv6 \
50-
# openvswitch \
51-
# ebtables \
52-
# libsasl2-devel \
53-
# pkgconfig \
54-
# libssh-devel \
55-
# libssh2-devel \
56-
# polkit kmod \
57-
# qemu-img \
58-
# lvm2 \
59-
# libparted-devel \
60-
# parted \
61-
# libdevmapper-devel \
62-
# ceph-devel \
63-
# open-iscsi \
64-
# libiscsi-devel \
65-
# libglusterfs-devel \
66-
# libnuma-devel \
67-
# libcap-ng-devel \
68-
# libcurl-devel \
69-
# libaudit-devel \
70-
# libfuse-devel \
71-
# libnbd-devel \
72-
# libblkid-devel \
73-
# libgcrypt-devel \
74-
# libgnutls-devel \
75-
# libp11-kit-devel \
76-
# libreadline-devel \
77-
# libtasn1-devel \
78-
# libattr-devel \
79-
# libbsd-devel \
80-
# libsystemd-devel \
81-
# libuuid-devel \
82-
# libjson-c-devel \
83-
# systemtap-sdt-devel \
84-
# systemd-container \
85-
# attr \
86-
# libacl-devel \
87-
# glib2-devel \
88-
# glibc-utils \
89-
# libgio-devel \
90-
# libxml2-devel \
91-
# xml-utils \
92-
# xsltproc \
93-
# python3 python3-devel \
94-
# python3-module-pytest \
95-
# python3-module-docutils \
96-
# python3-tools \
97-
# python3-module-pip \
98-
# polkit \
99-
# libtirpc-devel \
100-
# libsasl2-devel \
101-
# wireshark-devel \
102-
# tshark \
103-
# zlib-devel \
104-
# mdevctl \
105-
# util-linux dmsetup pm-utils libclocale \
106-
# libfuse3-devel libnuma libslirp-devel \
107-
# libyajl-devel libselinux-devel
108-
109-
# apt-get clean
110-
# rm --recursive --force /var/lib/apt/lists/ftp.altlinux.org* /var/cache/apt/*.bin
111-
112-
# rm -f /usr/lib*/python3*/EXTERNALLY-MANAGED
113-
# rpm -qa | sort > /packages.txt
114-
# mkdir -p /usr/libexec/ccache-wrappers
115-
# ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc
116-
# ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang
117-
# ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
118-
119-
# pip3 install black
120-
121-
# install:
122-
# - |
123-
# export CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
124-
# export CCACHE_DIR="$CCACHE_BASEDIR/ccache"
125-
# export CCACHE_BASEDIR="$(pwd)"
126-
# export PATH="$CCACHE_WRAPPERSDIR:$PATH"
127-
# export MAKE="/usr/bin/make"
128-
# export NINJA="/usr/bin/ninja"
129-
# export PYTHON="/usr/bin/python3"
130-
131-
# git clone --depth=1 --branch v{{ $version }} {{ $gitRepoUrl }} {{ $gitRepoName }}-{{ $version }}
132-
133-
# cd {{ $gitRepoName }}-{{ $version }}
134-
135-
136-
# for p in /patches/*.patch ; do
137-
# echo -n "Apply ${p} ... "
138-
# git apply --ignore-space-change --ignore-whitespace ${p} && echo OK || (echo FAIL ; exit 1)
139-
# done
140-
141-
# CFLAGS="-Wframe-larger-than=262144" meson setup build \
142-
# -Dinit_script=systemd \
143-
# -Dsystem=true \
144-
# -Dremote_default_mode=direct \
145-
# -Dpciaccess=enabled \
146-
# -Dsasl=enabled \
147-
# -Dpolkit=enabled \
148-
# -Dlibssh=enabled \
149-
# -Dlibssh2=enabled \
150-
# -Dnumactl=enabled \
151-
# -Dcapng=enabled \
152-
# -Dudev=enabled \
153-
# -Ddriver_network=enabled \
154-
# -Ddriver_interface=enabled \
155-
# -Ddriver_libvirtd=enabled \
156-
# -Ddriver_qemu=enabled \
157-
# -Ddriver_remote=enabled \
158-
# -Dselinux=enabled \
159-
# -Dselinux_mount=enabled \
160-
# -Ddriver_esx=disabled -Dcurl=disabled \
161-
# -Dfirewalld=disabled \
162-
# -Dfirewalld_zone=disabled \
163-
# -Ddocs=disabled \
164-
# -Ddriver_ch=disabled \
165-
# -Ddriver_lxc=disabled -Dlogin_shell=disabled \
166-
# -Ddriver_openvz=disabled \
167-
# -Ddriver_test=disabled \
168-
# -Ddriver_vbox=disabled \
169-
# -Ddriver_vmware=disabled \
170-
# -Ddriver_hyperv=disabled -Dopenwsman=disabled \
171-
# -Ddriver_vz=disabled \
172-
# -Ddriver_bhyve=disabled \
173-
# -Dvbox_xpcomc_dir=disabled \
174-
# -Dwireshark_dissector=disabled \
175-
# -Dwireshark_plugindir=disabled \
176-
# -Dstorage_gluster=disabled -Dglusterfs=disabled \
177-
# -Dstorage_fs=disabled \
178-
# -Dstorage_lvm=disabled \
179-
# -Dstorage_zfs=disabled \
180-
# -Dstorage_vstorage=disabled \
181-
# -Dstorage_rbd=disabled \
182-
# -Dstorage_mpath=disabled \
183-
# -Dstorage_iscsi=disabled \
184-
# -Dstorage_iscsi_direct=disabled -Dlibiscsi=disabled \
185-
# -Dlibiscsi=disabled
186-
187-
# ninja -C build -j$(nproc)
188-
189-
# setup:
190-
# - |
191-
# /install-libvirt.sh --version-num "{{ $version }}" \
192-
# -s /{{ $gitRepoName }}-{{ $version }} \
193-
# -d /BINS \
194-
# -b build
195-
# ---
196-
*/}}
197-
1986
image: {{ $.ImageName }}
1997
final: false
2008
from: {{ $.Images.BASE_DEBIAN_BOOKWORM_SLIM }}

0 commit comments

Comments
 (0)