Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
70f2d5459a
!10 fix date error on 20190823-6
From: @xu_lei_123 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
2022-12-28 03:04:21 +00:00
openeuler-ci-bot
f4f9ae1eb9
!8 [sync] PR-7: 【轻量级 PR】:fix spec changelog date error
From: @openeuler-sync-bot 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
2022-12-28 03:04:07 +00:00
xu_lei_123
7dd4b1cf84 fix date error on 20190823-6 2022-12-27 11:15:41 +08:00
jiangxinyu
eabafd6290 fix spec changelog date error
(cherry picked from commit ad78b9f3648301fc8eb4cd2eddf08eb3d69dc1b1)
2022-06-10 09:20:50 +08:00
openeuler-ci-bot
72ee0263fa !6 upgrade to 20190823 to fix build error
From: @si-gui
Reviewed-by: @overweight
Signed-off-by: @overweight
2021-08-02 03:07:01 +00:00
sunguoshuai
59393872bc upgrade to 20190823 2021-07-30 19:01:37 +08:00
openeuler-ci-bot
7adce5681d !5 disable python2
From: @jackie_wu123
Reviewed-by: @xiezhipeng1
Signed-off-by: @xiezhipeng1
2020-10-30 14:16:20 +08:00
jackie_wu
ece3a4aa89 disable python2 2020-10-29 19:48:20 +08:00
openeuler-ci-bot
4e2ab1e8fa !4 fix complie failed problem
Merge pull request !4 from 雷炬/master
2020-06-03 11:12:37 +08:00
lei_ju
250175b1f4 fix unaligned point value with GCC9 2020-06-03 10:09:48 +08:00
5 changed files with 35 additions and 73 deletions

View File

@ -1,42 +0,0 @@
--- vboot-utils-a1c5f7c/Makefile.orig 2017-06-04 14:06:10.707762796 +0100
+++ vboot-utils-a1c5f7c/Makefile 2017-06-04 14:07:04.347718848 +0100
@@ -227,12 +227,6 @@
CXX ?= g++
PKG_CONFIG ?= pkg-config
-# Static?
-ifneq (${STATIC},)
-LDFLAGS += -static
-PKG_CONFIG += --static
-endif
-
# Determine QEMU architecture needed, if any
ifeq (${ARCH},${HOST_ARCH})
# Same architecture; no need for QEMU
@@ -999,7 +993,6 @@
# Link tests for external repos
${BUILD}/host/linktest/extern: ${HOSTLIB}
${BUILD}/host/linktest/extern: LIBS = ${HOSTLIB}
-${BUILD}/host/linktest/extern: LDLIBS += -static
TEST_OBJS += ${BUILD}/host/linktest/extern.o
.PHONY: hostlib
@@ -1090,9 +1083,6 @@
${UTIL_BINS} ${UTIL_BINS_STATIC}: ${UTILLIB}
${UTIL_BINS} ${UTIL_BINS_STATIC}: LIBS = ${UTILLIB}
-# Utilities for auto-update toolkits must be statically linked.
-${UTIL_BINS_STATIC}: LDFLAGS += -static
-
.PHONY: utils
utils: ${UTIL_BINS} ${UTIL_SCRIPTS}
@@ -1124,7 +1114,7 @@
${FUTIL_STATIC_BIN}: ${FUTIL_STATIC_OBJS} ${UTILLIB}
@${PRINTF} " LD $(subst ${BUILD}/,,$@)\n"
- ${Q}${LD} -o $@ ${CFLAGS} ${LDFLAGS} -static $^ ${LDLIBS}
+ ${Q}${LD} -o $@ ${CFLAGS} ${LDFLAGS} $^ ${LDLIBS}
${FUTIL_BIN}: LDLIBS += ${CRYPTO_LIBS} ${FWLIB20}
${FUTIL_BIN}: ${FUTIL_OBJS} ${UTILLIB} ${FWLIB20} ${UTILBDB}

View File

@ -0,0 +1,13 @@
diff -up vboot-utils-595108c0/futility/futility.h.me vboot-utils-595108c0/futility/futility.h
--- vboot-utils-595108c0/futility/futility.h.me 2020-02-27 15:17:14.991440799 +0100
+++ vboot-utils-595108c0/futility/futility.h 2020-02-27 15:17:48.392751737 +0100
@@ -40,7 +40,7 @@ enum vboot_version {
};
/* What's our preferred API & data format? */
-enum vboot_version vboot_version;
+extern enum vboot_version vboot_version;
/* Here's a structure to define the commands that futility implements. */
struct futil_cmd_t {
diff -up vboot-utils-595108c0/tests/vboot_common_tests.c.me vboot-utils-595108c0/tests/vboot_common_tests.c

View File

@ -1,11 +0,0 @@
--- vboot-utils-a1c5f7c/Makefile.orig 2017-06-04 13:24:39.666009720 +0100
+++ vboot-utils-a1c5f7c/Makefile 2017-06-04 13:25:23.960977143 +0100
@@ -158,7 +158,7 @@
else
# FIRMWARE_ARCH not defined; assuming local compile.
CC ?= gcc
-CFLAGS += -DCHROMEOS_ENVIRONMENT -Wall ${WERROR} ${DEBUG_FLAGS}
+CFLAGS += $(COMMON_FLAGS) -DCHROMEOS_ENVIRONMENT -Wall ${WERROR} ${DEBUG_FLAGS}
endif
ifneq (${CUSTOM_MUSIC},)

View File

@ -1,39 +1,34 @@
%define _default_patch_fuzz 2
Name: vboot-utils
Version: 20180531
Release: 3
Summary: Chromium OS verified boot utility
License: BSD
URL: https://chromium.googlesource.com/chromiumos/platform/vboot_reference
ExclusiveArch: aarch64 x86_64
# https://chromium.googlesource.com/chromiumos/platform/vboot_reference/+archive/2cc35b0f31fe1cf69ce6781e7d502f07c64c93c9.tar.gz
Source0: %{name}-2cc35b0.tar.xz
Patch0001: vboot-utils-00-disable-static-linking.patch
Patch0002: vboot-utils-cflags.patch
BuildRequires: gcc-c++ openssl-devel trousers-devel libyaml-devel xz-devel libuuid-devel python2
Name: vboot-utils
Version: 20190823
Release: 6
Summary: Chromium OS verified boot utility
License: BSD
URL: https://chromium.googlesource.com/chromiumos/platform/vboot_reference
ExclusiveArch: aarch64 x86_64
Source0: %{name}-595108c0.tar.xz
Patch0001: vboot-utils-595108c0-gcc10.patch
BuildRequires: gcc-c++ openssl-devel trousers-devel libyaml-devel xz-devel libuuid-devel python3
%description
Verify boot is a collection of utilities for chromebook computers. Package and sign the kernel and
manage gpt partitions.
%prep
%autosetup -n vboot-utils-2cc35b0 -p1
%autosetup -n vboot-utils-595108c0 -p1
%build
%ifarch aarch64
%global ARCH arm
%endif
%ifarch x86_64
%global ARCH x86_64
%endif
%make_build V=1 ARCH=%{ARCH} COMMON_FLAGS="$RPM_OPT_FLAGS"
%install
%make_install V=1 DESTDIR=%{buildroot}/usr ARCH=%{ARCH} COMMON_FLAGS="$RPM_OPT_FLAGS"
rm -rf %{buildroot}/usr/lib/pkgconfig/
rm -rf %{buildroot}/usr/default/
%check
make runtests || true
@ -41,9 +36,16 @@ make runtests || true
%files
%doc README LICENSE
%{_bindir}/*
/usr/default/
/usr/lib/pkgconfig/
%changelog
* Fri Jul 30 2021 sunguoshuai <sunguoshuai@huawei.com> - 20190823-6
- upgrade to 20190823
* Tue Oct 27 2020 Anan Fu <fuanan3@huawei.com> - 20180531-5
- disable python2
* Wed Jan 8 2020 leiju <leiju4@huawei.com> - 20180531-4
- fix unaligned point value with GCC9
* Wed Jan 8 2020 fengbing <fengbing7@huawei.com> - 20180531-3
- Package init