fixed FTBFS

This commit is contained in:
Than Ngo 2018-05-15 11:38:48 +02:00 committed by Dan Horák
parent 269d8875a6
commit 752d940847
2 changed files with 14 additions and 0 deletions

View File

@ -24,6 +24,7 @@ Requires(preun): systemd
Requires(postun): systemd
Source0: https://github.com/open-power/%{project}/archive/v%{version}/%{project}-%{version}.tar.gz
Patch0: skiboot-5.10.2-alignment.patch
%description
This package provides a daemon to load and run the OpenPower firmware's
@ -55,6 +56,7 @@ services to the OS (Linux) on IBM Power and OpenPower systems.
%prep
%setup -q -n %{project}-%{version}
%patch0 -p1
%build
OPAL_PRD_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}" -C external/opal-prd

View File

@ -0,0 +1,12 @@
diff -up skiboot-5.10.2/hdata/i2c.c.me skiboot-5.10.2/hdata/i2c.c
--- skiboot-5.10.2/hdata/i2c.c.me 2018-05-14 12:23:30.413536519 +0200
+++ skiboot-5.10.2/hdata/i2c.c 2018-05-14 12:26:27.036752163 +0200
@@ -181,7 +181,7 @@ static bool is_zeros(const void *p, size
struct host_i2c_hdr {
const struct HDIF_array_hdr hdr;
__be32 version;
-} __packed;
+};
int parse_i2c_devs(const struct HDIF_common_hdr *hdr, int idata_index,
struct dt_node *xscom)