Diff kexec-tools-2.0.29-r1 with a kexec-tools-9999
/usr/portage/sys-apps/kexec-tools/kexec-tools-9999.ebuild 2024-12-25 14:59:52.767270182 +0300 | ||
---|---|---|
11 | 11 |
else |
12 | 12 |
SRC_URI="https://www.kernel.org/pub/linux/utils/kernel/kexec/${P/_/-}.tar.xz" |
13 | 13 |
[[ "${PV}" == *_rc* ]] || \ |
14 |
KEYWORDS="amd64 arm64 ~ppc64 x86" |
|
14 |
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
|
15 | 15 |
fi |
16 | 16 | |
17 | 17 |
DESCRIPTION="Load another kernel from the currently executing Linux kernel" |
... | ... | |
41 | 41 |
"${FILESDIR}"/${PN}-2.0.4-out-of-source.patch |
42 | 42 |
) |
43 | 43 | |
44 |
pkg_setup() { |
|
45 |
# GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC) |
|
46 |
export ASFLAGS="${CCASFLAGS}" |
|
47 |
} |
|
48 | ||
49 | 44 |
src_prepare() { |
50 | 45 |
default |
51 | 46 | |
52 |
# Append PURGATORY_EXTRA_CFLAGS flags set by configure, instead of overriding them completely. |
|
53 |
sed -e "/^PURGATORY_EXTRA_CFLAGS =/s/=/+=/" -i Makefile.in || die |
|
54 | ||
55 | 47 |
if [[ "${PV}" == 9999 ]] ; then |
56 | 48 |
eautoreconf |
57 | 49 |
else |
... | ... | |
60 | 52 |
} |
61 | 53 | |
62 | 54 |
src_configure() { |
55 |
# GNU Make's $(COMPILE.S) passes ASFLAGS to $(CCAS), CCAS=$(CC) |
|
56 |
export ASFLAGS="${CCASFLAGS}" |
|
57 | ||
63 | 58 |
local myeconfargs=( |
64 | 59 |
$(use_with booke) |
65 | 60 |
$(use_with lzma) |
... | ... | |
69 | 64 |
econf "${myeconfargs[@]}" |
70 | 65 |
} |
71 | 66 | |
72 |
src_compile() { |
|
73 |
# Respect CFLAGS for purgatory. |
|
74 |
# purgatory/Makefile uses PURGATORY_EXTRA_CFLAGS variable. |
|
75 |
# -mfunction-return=thunk and -mindirect-branch=thunk conflict with |
|
76 |
# -mcmodel=large which is added by build system. |
|
77 |
# Replace them with -mfunction-return=thunk-inline and -mindirect-branch=thunk-inline. |
|
78 |
local flag flags=() |
|
79 |
for flag in ${CFLAGS}; do |
|
80 |
[[ ${flag} == -mfunction-return=thunk ]] && flag="-mfunction-return=thunk-inline" |
|
81 |
[[ ${flag} == -mindirect-branch=thunk ]] && flag="-mindirect-branch=thunk-inline" |
|
82 |
flags+=("${flag}") |
|
83 |
done |
|
84 |
local -x PURGATORY_EXTRA_CFLAGS="${flags[*]}" |
|
85 | ||
86 |
default |
|
87 |
} |
|
88 | ||
89 | 67 |
src_install() { |
90 | 68 |
default |
91 | 69 |