Sync from SUSE:ALP:Source:Standard:1.0 libkrunfw revision af131ef7a9caf9c46a1f10a5e669e070
This commit is contained in:
commit
fc0cc82cbc
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
BIN
libkrunfw-3.8.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
libkrunfw-3.8.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
117
libkrunfw.changes
Normal file
117
libkrunfw.changes
Normal file
@ -0,0 +1,117 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 3 10:41:29 UTC 2023 - Frederic Crozat <fcrozat@suse.com>
|
||||||
|
|
||||||
|
- Update to v3.8.1:
|
||||||
|
* Calculate SNP launch measurement too
|
||||||
|
* Update to latest stable kernel (6.0.6)
|
||||||
|
|
||||||
|
- Changes from 3.8.0:
|
||||||
|
* Automatically shift to build_on_krunvm.sh
|
||||||
|
* macos: Don't use SONAME on macOS
|
||||||
|
* Upgrade embedded kernel to 6.0.2
|
||||||
|
|
||||||
|
- Changes from 3.7.0:
|
||||||
|
* Unify bundle generation scripts
|
||||||
|
* Rebase kernel on v5.15.71
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 5 07:30:55 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add split-provides for libkrunfw-sev-devel
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 29 23:20:21 UTC 2022 - Dario Faggioli <dfaggioli@suse.com>
|
||||||
|
|
||||||
|
- Switch to a "proper library" packaging layout. Downstreams (like
|
||||||
|
libkrun itself and crun) are now able to cope with this. So do it,
|
||||||
|
and get rid of a lot of RPM lint warnings and errors!
|
||||||
|
- Make it easier to enable/disable building the SEV-enabled libraries
|
||||||
|
- Add some tools into the SEV build & packages
|
||||||
|
* Patches dropped:
|
||||||
|
dont-set-soname-as-it-is-plugin-for-us.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 28 17:42:37 UTC 2022 - Dario Faggioli <dfaggioli@suse.com>
|
||||||
|
|
||||||
|
- Update to latest upstream version, v3.6.3
|
||||||
|
* Makefile: drop library dependency on install
|
||||||
|
* Update TSI patch to fix issue in tsi_accept
|
||||||
|
* Target reproducible builds
|
||||||
|
* sev: update initrd.gz binary
|
||||||
|
- Update to latest upstream version, v3.6.0
|
||||||
|
* sev: add a utility for generating SEV LMs
|
||||||
|
* utils: generate SEV-ES measurements
|
||||||
|
* Update SEV support
|
||||||
|
* Enable device-mapper (crypt+integrity) and ext4
|
||||||
|
* Rebase v5.15.60
|
||||||
|
- Update to latest upstream version, v3.3.0
|
||||||
|
* Rebase kernel on v5.15.59
|
||||||
|
- Update to latest upstream version, v3.2.0
|
||||||
|
* Rebase kernel on v5.15.57
|
||||||
|
- Update to latest upstream version, v3.1.0
|
||||||
|
* Rebase kernel on v5.15.52
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 17 14:30:49 UTC 2022 - Dario Faggioli <dfaggioli@suse.com>
|
||||||
|
|
||||||
|
- Update to latest upstream version, v.3.0.0
|
||||||
|
* Update to latest LTS: 5.15.47
|
||||||
|
* Update TSI patch
|
||||||
|
- Update to version v2.0.0
|
||||||
|
* Enable virtio-rng device
|
||||||
|
- Update to version v2.1.2
|
||||||
|
* Incorporate AMD SEV support in the main branch
|
||||||
|
* Update to the latest LTS: 5.15.45
|
||||||
|
- Update to version v2.1.0
|
||||||
|
* Makefile: add versioning to the output library by @slp in #12
|
||||||
|
- Update to version v2.0.0
|
||||||
|
* Update to the latest LTS: 5.15.44
|
||||||
|
- Update to version v.2.0.0
|
||||||
|
* Update to TSIv2 and 5.15.43
|
||||||
|
* Adopt SemVer and make the major version follow the internal ABI version,
|
||||||
|
as it's the one signalling breaking changes.
|
||||||
|
- Patches added:
|
||||||
|
* dont-set-soname-as-it-is-plugin-for-us.patch
|
||||||
|
- Patches dropped:
|
||||||
|
* fix-build-with-gcc12.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 16 17:08:46 UTC 2022 - Dario Faggioli <dfaggioli@suse.com>
|
||||||
|
|
||||||
|
- Fix the build with gcc12
|
||||||
|
* Patches added:
|
||||||
|
fix-build-with-gcc12.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 6 13:28:37 UTC 2021 - Frederic Crozat <fcrozat@suse.com>
|
||||||
|
|
||||||
|
- Don't try follow library policy, libkrunfw is a plugin.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 19 02:12:53 UTC 2021 - Dario Faggioli <dfaggioli@suse.com>
|
||||||
|
|
||||||
|
- different approach: let's enable only the arch-es we know are supported
|
||||||
|
(x86_64 and Arm64)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 19 00:12:16 UTC 2021 - Dario Faggioli <dfaggioli@suse.com>
|
||||||
|
|
||||||
|
- doesn't build on i586 so disable it
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 8 11:48:35 UTC 2021 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||||
|
|
||||||
|
- override build date (boo#1047218)
|
||||||
|
- override build host name (boo#1084909) to make package build reproducible
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Feb 28 00:38:44 UTC 2021 - Dario Faggioli <dfaggioli@suse.com>
|
||||||
|
|
||||||
|
- Update to upstream version 0.7
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 17 23:53:48 UTC 2021 - Duncan Mac-Vicar <duncan@mac-vicar.eu>
|
||||||
|
|
||||||
|
- Initial package for 0.6
|
||||||
|
Based on Sergio Lopez <slp@redhat.com> Fedora package
|
||||||
|
|
169
libkrunfw.spec
Normal file
169
libkrunfw.spec
Normal file
@ -0,0 +1,169 @@
|
|||||||
|
#
|
||||||
|
# spec file for package libkrunfw
|
||||||
|
#
|
||||||
|
# Copyright (c) 2023 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define sev 1
|
||||||
|
|
||||||
|
%global kernel linux-6.0.6
|
||||||
|
|
||||||
|
%ifnarch x86_64
|
||||||
|
%define sev 0
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%define descr \
|
||||||
|
libkrunfw is a library bundling a Linux kernel in a dynamic library \
|
||||||
|
in a way that can be easily consumed by libkrun. \
|
||||||
|
By having the kernel bundled in a dynamic library, libkrun can leave to \
|
||||||
|
the linker the work of mapping the sections into the process, and then \
|
||||||
|
directly inject those mappings into the guest without any kind of additional \
|
||||||
|
work nor processing.
|
||||||
|
|
||||||
|
Name: libkrunfw
|
||||||
|
Version: 3.8.1
|
||||||
|
Release: 0
|
||||||
|
Summary: A dynamic library bundling a Linux kernel in a convenient storage format
|
||||||
|
License: GPL-2.0-only AND LGPL-2.1-only
|
||||||
|
URL: https://github.com/containers/libkrunfw
|
||||||
|
Source0: https://github.com/containers/libkrunfw/archive/v%{version}.tar.gz#/libkrunfw-%{version}.tar.gz
|
||||||
|
Source1: https://www.kernel.org/pub/linux/kernel/v6.x/%{kernel}.tar.xz
|
||||||
|
ExclusiveArch: x86_64 aarch64
|
||||||
|
# For building libkrunfw itself, we need:
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: git-core
|
||||||
|
BuildRequires: openssl-devel
|
||||||
|
BuildRequires: python3-pyelftools
|
||||||
|
# For building the embedded kernel, we need:
|
||||||
|
BuildRequires: bc
|
||||||
|
BuildRequires: binutils
|
||||||
|
BuildRequires: bison
|
||||||
|
BuildRequires: flex
|
||||||
|
BuildRequires: libelf-devel
|
||||||
|
# Handling transitions from (very) old versions of the package
|
||||||
|
Conflicts: libkrunfw-devel <= 0.7
|
||||||
|
Conflicts: libkrunfw0 <= 0.7
|
||||||
|
|
||||||
|
%description
|
||||||
|
%{summary}
|
||||||
|
|
||||||
|
%package -n %{name}3
|
||||||
|
Summary: A dynamic library bundling a Linux kernel in a convenient storage format
|
||||||
|
Obsoletes: libkrunfw <= 3.6.3
|
||||||
|
|
||||||
|
%description -n %{name}3
|
||||||
|
%{descr}
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Header files and libraries for libkrunfw development
|
||||||
|
Requires: %{name}3 = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
%{descr}
|
||||||
|
|
||||||
|
This package contains the libraries needed to develop programs
|
||||||
|
that consume the guest payload integrated in libkrunfw.
|
||||||
|
|
||||||
|
%if %{sev}
|
||||||
|
%package sev3
|
||||||
|
Summary: A dynamic library bundling the guest payload consumed by libkrun-sev
|
||||||
|
Obsoletes: libkrunfw <= 3.6.3
|
||||||
|
|
||||||
|
%description sev3
|
||||||
|
%{descr}
|
||||||
|
|
||||||
|
This package contains the library bundling the guest payload consumed
|
||||||
|
by libkrun-sev.
|
||||||
|
|
||||||
|
%package sev-devel
|
||||||
|
Summary: Header files and libraries for libkrunfw-sev development
|
||||||
|
Requires: %{name}-sev3 = %{version}-%{release}
|
||||||
|
Provides: %{name}:%{_libdir}/libkrunfw-sev.so
|
||||||
|
Obsoletes: %{name} < %{version}-%{release}
|
||||||
|
|
||||||
|
%description sev-devel
|
||||||
|
%{descr}
|
||||||
|
|
||||||
|
This package contains the libraries needed to develop programs that
|
||||||
|
consume the guest payload integrated in libkrunfw-sev.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -S git
|
||||||
|
mkdir tarballs
|
||||||
|
cp %{SOURCE1} tarballs/
|
||||||
|
|
||||||
|
%build
|
||||||
|
test -n "$SOURCE_DATE_EPOCH" || export SOURCE_DATE_EPOCH=`date +%s`
|
||||||
|
cat > .kernel-binary.spec.buildenv <<EOF
|
||||||
|
export KBUILD_BUILD_TIMESTAMP="$(LANG=C date -u -d "@$SOURCE_DATE_EPOCH")"
|
||||||
|
export KBUILD_BUILD_USER=geeko
|
||||||
|
export KBUILD_BUILD_HOST=buildhost
|
||||||
|
EOF
|
||||||
|
source ./.kernel-binary.spec.buildenv
|
||||||
|
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%if %{sev}
|
||||||
|
rm -rf %{kernel}
|
||||||
|
rm kernel.c
|
||||||
|
%make_build SEV=1
|
||||||
|
pushd utils
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
make
|
||||||
|
%else
|
||||||
|
# Workaround an issue of "undefined reference to symbol 'dlsym@@GLIBC_2.2.5'"
|
||||||
|
# in older distros.
|
||||||
|
gcc -o krunfw_measurement krunfw_measurement.c -lcrypto -ldl
|
||||||
|
%endif
|
||||||
|
popd
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%install
|
||||||
|
source ./.kernel-binary.spec.buildenv
|
||||||
|
%make_install PREFIX=%{_prefix}
|
||||||
|
|
||||||
|
%if %{sev}
|
||||||
|
%make_install SEV=1 PREFIX=%{_prefix}
|
||||||
|
install -D -p -m 0755 utils/krunfw_measurement %{buildroot}%{_bindir}/krunfw_measurement
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%post -n %{name}3 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n %{name}3 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files -n %{name}3
|
||||||
|
%{_libdir}/libkrunfw.so.3
|
||||||
|
%{_libdir}/libkrunfw.so.%{version}
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_libdir}/libkrunfw.so
|
||||||
|
|
||||||
|
%if %{sev}
|
||||||
|
%files sev3
|
||||||
|
%{_libdir}/libkrunfw-sev.so.3
|
||||||
|
%{_libdir}/libkrunfw-sev.so.%{version}
|
||||||
|
%{_bindir}/krunfw_measurement
|
||||||
|
|
||||||
|
%files sev-devel
|
||||||
|
%{_libdir}/libkrunfw-sev.so
|
||||||
|
|
||||||
|
%post sev3 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun sev3 -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%changelog
|
BIN
linux-6.0.6.tar.xz
(Stored with Git LFS)
Normal file
BIN
linux-6.0.6.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user