SHA256
1
0
forked from pool/openafs

Accepting request 635286 from home:hauky:branches:filesystems_GA

- add retpoline support

OBS-URL: https://build.opensuse.org/request/show/635286
OBS-URL: https://build.opensuse.org/package/show/filesystems/openafs?expand=0&rev=25
This commit is contained in:
Christof Hanke 2018-09-12 10:25:00 +00:00 committed by Git OBS Bridge
parent 3c6be877a4
commit 7fd66bcc31
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Sep 12 05:46:01 UTC 2018 - christof.hanke@mpcdf.mpg.de
- add retpoline support
-------------------------------------------------------------------
Sun Sep 9 08:14:26 UTC 2018 - christof.hanke@mpcdf.mpg.de

View File

@ -369,9 +369,12 @@ for flavor in %flavors_to_build; do
rm -rf obj/$flavor
cp -a libafs_tree obj/$flavor
pushd obj/$flavor
find . -name *.c -print0 | xargs -0 sed -i '/MODULE_LICENSE(/a MODULE_INFO(retpoline, "Y");'
./configure --with-linux-kernel-build=/usr/src/linux-obj/%{_target_cpu}/$flavor --with-linux-kernel-headers=/usr/src/linux \
--disable-transarc-paths
export LINUX_MAKE_ARCH=%{?linux_make_arch}
export EXTRA_CFLAGS='-DVERSION=\"%version\"'
export KCFLAGS='-mindirect-branch=thunk-inline -mindirect-branch-register'
export LINUX_MAKE_ARCH="ARCH=%{_arch}"
make
popd
done