From 752d940847dccd6b004e492a8636b277e4dd819e Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Tue, 15 May 2018 11:38:48 +0200 Subject: [PATCH] fixed FTBFS --- opal-prd.spec | 2 ++ skiboot-5.10.2-alignment.patch | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 skiboot-5.10.2-alignment.patch diff --git a/opal-prd.spec b/opal-prd.spec index d9d3d69..c94c454 100644 --- a/opal-prd.spec +++ b/opal-prd.spec @@ -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 diff --git a/skiboot-5.10.2-alignment.patch b/skiboot-5.10.2-alignment.patch new file mode 100644 index 0000000..6d5a0c0 --- /dev/null +++ b/skiboot-5.10.2-alignment.patch @@ -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)