Compare commits

...
Sign in to create a new pull request.

39 commits

Author SHA1 Message Date
Fedora Release Engineering
c17e4161f1 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:23:02 +00:00
Yaakov Selkowitz
b2db89032d Rebuilt for openssl 4.0 2026-06-12 20:01:57 -04:00
Fedora Release Engineering
c1711cb343 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 19:48:17 +00:00
Fedora Release Engineering
03ace783f6 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 19:58:59 +00:00
Fedora Release Engineering
f5f7e6f64c Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 14:08:26 +00:00
Miroslav Suchý
d00db21120 convert license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-09-04 22:37:32 +02:00
Fedora Release Engineering
6005bf3b4a Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 08:35:53 +00:00
Fedora Release Engineering
e472cfac9d Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 07:32:14 +00:00
Fedora Release Engineering
b175995c9d Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 17:26:41 +00:00
Javier Martinez Canillas
5cf0fc5429
Update to upstream snapshot 9b08a3c4
While being there also `BuildRequires: flashrom-devel` since all the tools
depending on this are removed from the artifcats and not installed.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
2023-01-27 16:31:53 +01:00
Fedora Release Engineering
700c7b6e65 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 06:07:55 +00:00
Fedora Release Engineering
c2051ced47 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 11:42:39 +00:00
Peter Robinson
3b068dd1bd Upload source 2022-06-22 09:37:11 +01:00
Dorinda Bassey
491e5d6509 - change version number and release
Signed-off-by: Dorinda Bassey <dbassey@redhat.com>
2022-06-21 18:24:42 +02:00
Dorinda Bassey
ff739504b8 - Fix VB2_DEBUG function usage
- New Upstream snapshot 61971455
- Clean up spec file

Signed-off-by: Dorinda Bassey <dbassey@redhat.com>
2022-06-21 18:08:58 +02:00
Fedora Release Engineering
f9492284c5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 03:48:58 +00:00
Sahana Prasad
1b12a82c7b Rebuilt with OpenSSL 3.0.0 2021-09-14 19:17:26 +02:00
Fedora Release Engineering
812ebe822f - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 20:19:42 +00:00
Fedora Release Engineering
47e74c684e - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 22:55:46 +00:00
Tom Stellard
c0511408a4 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-09 00:35:29 +00:00
Fedora Release Engineering
361548fd8e - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 13:34:11 +00:00
Peter Robinson
4bbb14e927 Drop tests to drop python2 dep 2020-03-01 09:38:43 +00:00
Than Ngo
2872cfa932 Fix FTBFS 2020-02-27 15:26:31 +01:00
Fedora Release Engineering
7ac6841013 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-31 02:57:53 +00:00
Peter Robinson
f5ff76ceea upstream 595108c0 snapshot 2019-08-26 13:47:10 +01:00
Tomas Hrcka
8dd5d08cbe Revert "vboot-utils fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1676185"
This reverts commit b29dd9ab7f.

Unretirement request: https://pagure.io/releng/issue/8688
2019-08-26 13:56:43 +02:00
Fedora Release Engineering
b29dd9ab7f vboot-utils fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1676185 2019-08-08 16:47:51 +00:00
Fedora Release Engineering
10a8ce4b77 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-27 02:49:05 +00:00
Fedora Release Engineering
999d2c02f7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-03 11:07:27 +00:00
271ee0a046
add BR: gcc-c++
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-07-25 11:51:08 +02:00
259cd8f02e
Add missing BuildRequires on gcc
make: cc: Command not found

References: https://bugzilla.redhat.com/show_bug.cgi?id=1606637
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-07-24 16:00:21 +02:00
Fedora Release Engineering
0dcdc2c8eb - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 08:26:07 +00:00
Peter Robinson
08eb53027f Update to upstream 2cc35b0 for new functionality and openssl 1.1 2018-06-04 05:39:03 +01:00
Iryna Shcherbina
fe8cd89bdc Update Python 2 dependency declarations to new packaging standards 2018-03-18 14:39:46 +01:00
836ed46776
Escape macros in %changelog
Reference: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/Y2ZUKK2B7T2IKXPMODNF6HB2O5T5TS6H/
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-09 09:06:28 +01:00
Fedora Release Engineering
d729362386 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 09:58:57 +00:00
Fedora Release Engineering
95e0894449 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 21:11:53 +00:00
Peter Robinson
cd6201e4e6 Move to newer upstream snapshot needed for some devices, Spec cleanups 2017-06-04 14:56:24 +01:00
Fedora Release Engineering
1a55cffc60 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 16:57:26 +00:00
11 changed files with 218 additions and 235 deletions

2
.gitignore vendored
View file

@ -1 +1 @@
/vboot-utils-20130222gite6cf2c2.tar.xz
/vboot-utils-*.tar.xz

View file

@ -0,0 +1,49 @@
From f9ae6c12bd0b67ee336089ce15d5255d7d6d11b7 Mon Sep 17 00:00:00 2001
From: Nobel Barakat <nobelbarakat@google.com>
Date: Tue, 22 Nov 2022 00:40:20 +0000
Subject: [PATCH] flashrom: ensure flashrom symbols are not loaded if
!USE_FLASHROM
The linking process during the installation phase of this package
breaks if you compile with make USE_FLASHROM=0. A new conditional has
been added to the make file that prevents utility/crossystem from
compiling if USE_FLASHROM is either not set or set to the number 0.
BUG=b:256682063
TEST=cros_run_unit_tests --board amd64-generic --packages vboot_reference
TEST=env USE="test -flashrom" emerge-amd64-generic vboot_reference
TEST=env USE="-flashrom" emerge-amd64-generic vboot_reference
BRANCH=none
Signed-off-by: Nobel Barakat nobelbarakat@google.com
Change-Id: Ia8cdd24653fdb74c9bb5f4de86b7711b138299cf
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/4045302
Commit-Queue: Nobel Barakat <nobelbarakat@google.com>
Reviewed-by: Yu-Ping Wu <yupingso@chromium.org>
Tested-by: Nobel Barakat <nobelbarakat@google.com>
---
Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 129ace99a424..cb504ff33a62 100644
--- a/Makefile
+++ b/Makefile
@@ -593,10 +593,13 @@ UTIL_BIN_NAMES_SDK = \
utility/signature_digest_utility \
utility/verify_data
UTIL_BIN_NAMES_BOARD = \
- utility/crossystem \
utility/dumpRSAPublicKey \
utility/tpmc
+ifneq ($(filter-out 0,${USE_FLASHROM}),)
+UTIL_BIN_NAMES_BOARD += utility/crossystem
+endif
+
UTIL_SCRIPTS_SDK = $(addprefix ${BUILD}/,${UTIL_SCRIPT_NAMES_SDK})
UTIL_SCRIPTS_BOARD = $(addprefix ${BUILD}/,${UTIL_SCRIPT_NAMES_BOARD})
UTIL_BINS_SDK = $(addprefix ${BUILD}/,${UTIL_BIN_NAMES_SDK})
--
2.39.1

View file

@ -1 +1 @@
11df5e40246ad87ac4d6f8b1de2a8edd vboot-utils-20130222gite6cf2c2.tar.xz
SHA512 (vboot-utils-9b08a3c4.tar.xz) = 0cf34f8a2b9a17781a7faf55974bdc9e88b1c09cb8efccd05ddba745f38a5ea803b12b2ffa31b847026d56b0672a9d97ab2f5d8e9ae7ca31a54d0d19d0895204

View file

@ -1,20 +0,0 @@
--- Makefile.orig 2013-02-22 23:37:25.911542016 -0600
+++ Makefile 2013-02-22 23:37:49.286029980 -0600
@@ -642,7 +642,7 @@
.PHONY: cgpt
cgpt: ${CGPT}
-${CGPT}: LDFLAGS += -static
+#${CGPT}: LDFLAGS += -static
${CGPT}: LDLIBS += -luuid
${CGPT}: ${CGPT_OBJS} ${LIBS}
@@ -662,7 +662,7 @@
${BUILD}/utility/%: INCLUDES += -Ihost/include -Iutility/include
# Utilities for auto-update toolkits must be statically linked.
-${UTIL_BINS_STATIC}: LDFLAGS += -static
+#${UTIL_BINS_STATIC}: LDFLAGS += -static
.PHONY: utils
utils: ${UTIL_BINS} ${UTIL_SCRIPTS} ${UTIL_SBINS}

View file

@ -1,43 +0,0 @@
--- utility/orig.bmpblk_utility.cc 2013-01-29 14:12:00.560456478 -0600
+++ utility/bmpblk_utility.cc 2013-01-29 14:12:00.570456506 -0600
@@ -99,11 +99,11 @@
// The number of localizations should match the number of locale_index
if (debug_) {
- printf("%ld image_names\n", config_.image_names.size());
+ printf("%zu image_names\n", config_.image_names.size());
for (unsigned int i = 0; i < config_.image_names.size(); ++i) {
printf(" %d: \"%s\"\n", i, config_.image_names[i].c_str());
}
- printf("%ld images_map\n", config_.images_map.size());
+ printf("%zu images_map\n", config_.images_map.size());
for (StrImageConfigMap::iterator it = config_.images_map.begin();
it != config_.images_map.end();
++it) {
@@ -114,7 +114,7 @@
it->second.data.tag,
it->second.data.format);
}
- printf("%ld screens_map\n", config_.screens_map.size());
+ printf("%zu screens_map\n", config_.screens_map.size());
for (StrScreenConfigMap::iterator it = config_.screens_map.begin();
it != config_.screens_map.end();
++it) {
@@ -591,7 +591,7 @@
current_filled += sizeof(it->second.data);
current_offset += sizeof(it->second.data);
if (debug_)
- printf("I1: current offset is 0x%08x (len %ld)\n",
+ printf("I1: current offset is 0x%08x (len %zu)\n",
current_offset, it->second.compressed_content.length());
std::copy(it->second.compressed_content.begin(),
it->second.compressed_content.end(),
@@ -603,7 +603,7 @@
current_offset = config_.header.locale_string_offset;
current_filled = bmpblock_.begin() + current_offset;
if (debug_)
- printf("locale_names: offset 0x%08x (len %ld)\n",
+ printf("locale_names: offset 0x%08x (len %zu)\n",
current_offset, config_.locale_names.size());
std::copy(config_.locale_names.begin(),
config_.locale_names.end(),

View file

@ -0,0 +1,12 @@
diff -ru vboot-utils-61971455-orig/futility/updater_utils.c vboot-utils-61971455/futility/updater_utils.c
--- vboot-utils-61971455-orig/futility/updater_utils.c 2022-06-16 02:45:02.000000000 +0200
+++ vboot-utils-61971455/futility/updater_utils.c 2022-06-20 15:06:24.192678422 +0200
@@ -700,7 +700,7 @@
if (!cmd)
return -1;
- VB2_DEBUG(cmd);
+ VB2_DEBUG("flashrom cmd: %s\n", cmd);
r = system(cmd);
free(cmd);
if (r)

View file

@ -1,12 +0,0 @@
diff -up vboot-utils-20130222gite6cf2c2/Makefile.cflags vboot-utils-20130222gite6cf2c2/Makefile
--- vboot-utils-20130222gite6cf2c2/Makefile.cflags 2013-03-07 13:11:00.697225786 -0500
+++ vboot-utils-20130222gite6cf2c2/Makefile 2013-03-07 13:11:49.488465926 -0500
@@ -124,7 +124,7 @@ CFLAGS ?= ${COMMON_FLAGS} \
else
# FIRMWARE_ARCH not defined; assuming local compile.
CC ?= gcc
-CFLAGS += -DCHROMEOS_ENVIRONMENT -Wall -Werror # HEY: always want last two?
+CFLAGS += $(COMMON_FLAGS) -DCHROMEOS_ENVIRONMENT -Wall -Werror # HEY: always want last two?
endif
ifneq (${DEBUG},)

View file

@ -1,12 +0,0 @@
diff -up vboot-utils-20130222gite6cf2c2/Makefile.pthread vboot-utils-20130222gite6cf2c2/Makefile
--- vboot-utils-20130222gite6cf2c2/Makefile.pthread 2013-03-07 17:55:02.920179806 -0500
+++ vboot-utils-20130222gite6cf2c2/Makefile 2013-03-07 17:55:06.360237213 -0500
@@ -861,7 +861,7 @@ ${BUILD}/tests/vboot_common2_tests: LDLI
${BUILD}/tests/vboot_common3_tests: LDLIBS += ${CRYPTO_LIBS}
${BUILD}/utility/bmpblk_utility: LD = ${CXX}
-${BUILD}/utility/bmpblk_utility: LDLIBS = -llzma -lyaml
+${BUILD}/utility/bmpblk_utility: LDLIBS = -llzma -lyaml -lpthread
BMPBLK_UTILITY_DEPS = \
${BUILD}/utility/bmpblk_util.o \

View file

@ -1,68 +0,0 @@
diff -up vboot-utils-20130222gite6cf2c2/cgpt/cgpt_add.c.werror vboot-utils-20130222gite6cf2c2/cgpt/cgpt_add.c
--- vboot-utils-20130222gite6cf2c2/cgpt/cgpt_add.c.werror 2013-03-07 15:57:45.797727161 -0500
+++ vboot-utils-20130222gite6cf2c2/cgpt/cgpt_add.c 2013-03-07 16:07:02.987337266 -0500
@@ -16,49 +16,49 @@ static const char* DumpCgptAddParams(con
buf[0] = 0;
snprintf(tmp, sizeof(tmp), "-i %d ", params->partition);
- strncat(buf, tmp, sizeof(buf));
+ strncat(buf, tmp, sizeof(tmp));
if (params->label) {
snprintf(tmp, sizeof(tmp), "-l %s ", params->label);
- strncat(buf, tmp, sizeof(buf));
+ strncat(buf, tmp, sizeof(tmp));
}
if (params->set_begin) {
snprintf(tmp, sizeof(tmp), "-b %llu ", (unsigned long long)params->begin);
- strncat(buf, tmp, sizeof(buf));
+ strncat(buf, tmp, sizeof(tmp));
}
if (params->set_size) {
snprintf(tmp, sizeof(tmp), "-s %llu ", (unsigned long long)params->size);
- strncat(buf, tmp, sizeof(buf));
+ strncat(buf, tmp, sizeof(tmp));
}
if (params->set_type) {
GuidToStr(&params->type_guid, tmp, sizeof(tmp));
- strncat(buf, "-t ", sizeof(buf));
- strncat(buf, tmp, sizeof(buf));
- strncat(buf, " ", sizeof(buf));
+ strncat(buf, "-t ", sizeof(tmp));
+ strncat(buf, tmp, sizeof(tmp));
+ strncat(buf, " ", sizeof(tmp));
}
if (params->set_unique) {
GuidToStr(&params->unique_guid, tmp, sizeof(tmp));
- strncat(buf, "-u ", sizeof(buf));
- strncat(buf, tmp, sizeof(buf));
- strncat(buf, " ", sizeof(buf));
+ strncat(buf, "-u ", sizeof(tmp));
+ strncat(buf, tmp, sizeof(tmp));
+ strncat(buf, " ", sizeof(tmp));
}
if (params->set_successful) {
snprintf(tmp, sizeof(tmp), "-S %d ", params->successful);
- strncat(buf, tmp, sizeof(buf));
+ strncat(buf, tmp, sizeof(tmp));
}
if (params->set_tries) {
snprintf(tmp, sizeof(tmp), "-T %d ", params->tries);
- strncat(buf, tmp, sizeof(buf));
+ strncat(buf, tmp, sizeof(tmp));
}
if (params->set_priority) {
snprintf(tmp, sizeof(tmp), "-P %d ", params->priority);
- strncat(buf, tmp, sizeof(buf));
+ strncat(buf, tmp, sizeof(tmp));
}
if (params->set_raw) {
snprintf(tmp, sizeof(tmp), "-A 0x%x ", params->raw_value);
- strncat(buf, tmp, sizeof(buf));
+ strncat(buf, tmp, sizeof(tmp));
}
- strncat(buf, "\n", sizeof(buf));
+ strncat(buf, "\n", sizeof(tmp));
return buf;
}

View file

@ -1,25 +0,0 @@
diff -up vboot-utils-20130222gite6cf2c2/host/arch/arm/lib/crossystem_arch.c.unused vboot-utils-20130222gite6cf2c2/host/arch/arm/lib/crossystem_arch.c
--- vboot-utils-20130222gite6cf2c2/host/arch/arm/lib/crossystem_arch.c.unused 2012-12-19 11:37:24.000000000 -0500
+++ vboot-utils-20130222gite6cf2c2/host/arch/arm/lib/crossystem_arch.c 2013-03-07 16:55:13.899853426 -0500
@@ -81,6 +81,7 @@ static int ReadFdtValue(const char *prop
char filename[FNAME_SIZE];
FILE *file;
int data = 0;
+ size_t count;
snprintf(filename, sizeof(filename), FDT_BASE_PATH "/%s", property);
file = fopen(filename, "rb");
@@ -89,8 +90,12 @@ static int ReadFdtValue(const char *prop
return E_FILEOP;
}
- fread(&data, 1, sizeof(data), file);
+ count = fread(&data, 1, sizeof(data), file);
fclose(file);
+ if (count < 0) {
+ fprintf(stderr, "Unable to read FDT property %s\n", property);
+ return E_FILEOP;
+ }
if (value)
*value = ntohl(data); /* FDT is network byte order */

View file

@ -1,64 +1,48 @@
%define gitshort 9b08a3c4
Name: vboot-utils
Version: 20130222gite6cf2c2
Release: 9%{?dist}
Version: 20230127
Release: 10.git%{gitshort}%{?dist}
Summary: Verified Boot Utility from Chromium OS
ExclusiveArch: %{arm} %{ix86} x86_64
# Automatically converted from old format: BSD - review is highly recommended.
License: LicenseRef-Callaway-BSD
URL: https://chromium.googlesource.com/chromiumos/platform/vboot_reference
ExclusiveArch: %{arm} aarch64 %{ix86} x86_64
Group: Applications/System
License: BSD
# The source for this package was pulled from upstream's vcs. Use the
# following commands to generate the tarball:
# git clone https://git.chromium.org/git/chromiumos/platform/vboot_reference.git
# cd vboot_reference/
# git archive --format=tar --prefix=vboot-utils-20130222gite6cf2c2/ e6cf2c2 | xz > vboot-utils-20130222gite6c.tar.xz
URL: http://gitrw.chromium.org/gitweb/?p=chromiumos/platform/vboot_reference.git
Source0: %{name}-%{version}.tar.xz
## Patch0 disabled static building.
Patch0: vboot-utils-00-disable-static-linking.patch
## Patch1 fixes printf formating issues that break the build.
## http://code.google.com/p/chromium-os/issues/detail?id=37804
Patch1: vboot-utils-01-bmpblk_utility-fix-printf.patch
#make sure get the rpmbuild flags passed in
Patch2: vboot-utils-cflags.patch
# some fixes for picker compile
Patch3: vboot-utils-strncat.patch
Patch4: vboot-utils-unused.patch
Patch5: vboot-utils-pthread.patch
# git archive --format=tar --prefix=vboot-utils-9b08a3c4/ 9b08a3c4 | xz > vboot-utils-9b08a3c4.tar.xz
Source0: %{name}-%{gitshort}.tar.xz
# Fix VB2_DEBUG function usage
Patch0: vboot-utils-9b08a3c4.patch
# Fix linking error with USE_FLASHROM=0
Patch1: flashrom-ensure-flashrom-symbols-are-not-loaded-if-U.patch
BuildRequires: make
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: glibc-static
BuildRequires: openssl-devel
BuildRequires: trousers-devel
BuildRequires: libyaml-devel
BuildRequires: xz-devel
BuildRequires: libuuid-devel
# for the test scripts
BuildRequires: python
%description
Verified boot is a collection of utilities helpful for chromebook computer.
Pack and sign the kernel, manage gpt partitions.
%prep
%setup -q
%patch0 -p0 -b .nostatic
%patch1 -p0 -b .fixprintf
%patch2 -p1 -b .cflags
%patch3 -p1 -b .strncat
%patch4 -p1 -b .unused
%patch5 -p1 -b .pthread
%autosetup -p1 -n %{name}-%{gitshort}
%build
%ifarch %{arm}
%ifarch %{arm} aarch64
%global ARCH arm
%endif
@ -71,25 +55,144 @@ Pack and sign the kernel, manage gpt partitions.
%endif
make V=1 ARCH=%{ARCH} COMMON_FLAGS="$RPM_OPT_FLAGS"
make V=1 ARCH=%{ARCH} COMMON_FLAGS="$RPM_OPT_FLAGS" USE_FLASHROM=0
%install
make install V=1 DESTDIR=%{buildroot}%{_bindir} ARCH=%{ARCH} COMMON_FLAGS="$RPM_OPT_FLAGS"
## Tests are enabled but ignored (will not break the build).
## This is because tests fail in a chroot (mock) but work otherwise.
%check
make runtests || true
make install V=1 DESTDIR=%{buildroot} ARCH=%{ARCH} COMMON_FLAGS="$RPM_OPT_FLAGS" USE_FLASHROM=0
mkdir -p %{buildroot}%{_datadir}/vboot/
cp -rf tests/devkeys %{buildroot}%{_datadir}/vboot/
# Remove unneeded build artifacts
rm -rf %{buildroot}/usr/lib/pkgconfig/
rm -rf %{buildroot}/usr/default/
rm -rf %{buildroot}/etc/default/
rm -rf %{buildroot}/usr/share/vboot/bin/
rm -f %{buildroot}/usr/bin/chromeos-tpm-recovery
rm -f %{buildroot}/usr/bin/crossystem
rm -f %{buildroot}/usr/bin/dev_debug_vboot
rm -f %{buildroot}/usr/bin/dumpRSAPublicKey
rm -f %{buildroot}/usr/bin/dump_fmap
rm -f %{buildroot}/usr/bin/dump_kernel_config
rm -f %{buildroot}/usr/bin/enable_dev_usb_boot
rm -f %{buildroot}/usr/bin/gbb_utility
rm -f %{buildroot}/usr/bin/tpm-nvsize
rm -f %{buildroot}/usr/bin/tpmc
rm -f %{buildroot}/usr/bin/vbutil_firmware
rm -f %{buildroot}/usr/bin/vbutil_key
rm -f %{buildroot}/usr/bin/vbutil_keyblock
rm -f %{buildroot}/usr/lib/libvboot_host.a
%files
%{_bindir}/*
%doc LICENSE README
%license LICENSE
%doc README
%{_bindir}/futility
%{_bindir}/vbutil_kernel
%{_bindir}/cgpt
%{_datadir}/vboot/devkeys/
%changelog
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 20230127-10.git9b08a3c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
* Sat Jun 13 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 20230127-9.git9b08a3c4
- Rebuilt for openssl 4.0
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 20230127-8.git9b08a3c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 20230127-7.git9b08a3c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 20230127-6.git9b08a3c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Wed Sep 04 2024 Miroslav Suchý <msuchy@redhat.com> - 20230127-5.git9b08a3c4
- convert license to SPDX
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 20230127-4.git9b08a3c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 20230127-3.git9b08a3c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 20230127-2.git9b08a3c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri Jan 27 2023 Javier Martinez Canillas <javierm@redhat.com> - 20230127-1.git9b08a3c4
- Update to upstream snapshot 9b08a3c4
- Drop `BuildRequires: flashrom-devel` since all tools depending on it are removed.
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 20220621-3.git61971455
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20220621-2.git61971455
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Tue Jun 21 2022 Dorinda Bassey <dbassey@redhat.com> - 20220621-1.git61971455
- Fix VB2_DEBUG function usage
- New Upstream snapshot 61971455
- Clean up spec file
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 20190823-9.git595108c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 20190823-8.git595108c0
- Rebuilt with OpenSSL 3.0.0
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20190823-7.git595108c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 20190823-6.git595108c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20190823-5.git595108c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sun Mar 01 2020 Peter Robinson <pbrobinson@fedoraproject.org> - 20190823-4.git595108c0
- Drop tests to drop python2 dep
* Thu Feb 27 2020 Than Ngo <than@redhat.com> - 20190823-3.git595108c
- Fix FTBFS
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 20190823-2.git595108c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Mon Aug 26 2019 Peter Robinson <pbrobinson@fedoraproject.org> 20190823.1.git595108c0
- Rebase to upstream 595108c0 snapshot
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20180531-4.git2cc35b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20180531-3.git2cc35b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20180531-2.git2cc35b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Sun Jun 3 2018 Peter Robinson <pbrobinson@fedoraproject.org> 20180531-1.2cc35b0
- New upstream snapshot
* Sun Mar 18 2018 Iryna Shcherbina <ishcherb@redhat.com> - 20170302-5.gita1c5f7c
- Update Python 2 dependency declarations to new packaging standards
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 20170302-4.gita1c5f7c
- Escape macros in %%changelog
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20170302-3.gita1c5f7c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20170302-2.gita1c5f7c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Sun Jun 4 2017 Peter Robinson <pbrobinson@fedoraproject.org> 20170302-1.gita1c5f7c
- Move to newer upstream snapshot needed for some devices
- Spec cleanups
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20130222gite6cf2c2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 20130222gite6cf2c2-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
@ -108,14 +211,14 @@ make runtests || true
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20130222gite6cf2c2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Apr 07 2013 Jon Disnard <jdisnard@gmail.com> 20130222gite6cf2c2-3
* Thu Apr 04 2013 Jon Disnard <jdisnard@gmail.com> 20130222gite6cf2c2-3
- Clean up spec file
- Honor rpmbuild CFLAGS
- Fix strncat arguments in cgpt/cgpt_add.c
* Sat Feb 23 2013 Jon Disnard <jdisnard@gmail.com> 20130222gite6cf2c2-2
- Put back wcohen's fixes for i686 builds.
- Put back the patch to fix bmpblk_utility.cc printf formating %ld -> %zu
- Put back the patch to fix bmpblk_utility.cc printf formating %%ld -> %%zu
- Put back BR for gcc-c++ & libstdc++
* Fri Feb 22 2013 Jon Disnard <jdisnard@gmail.com> 20130222gite6cf2c2-1
@ -141,4 +244,3 @@ make runtests || true
- Patch0 prevents static building.
- Patch1 fixes minor printf formating bug in c++ code.
- tests disabled as they do not work in mock chroot.