2021-08-04 00:30:02 +02:00
|
|
|
# Description: User space utility to load and exec another kernel
|
|
|
|
# URL: https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git
|
|
|
|
# Maintainer: Steffen Nurpmeso, steffen at sdaoden dot eu
|
|
|
|
# Depends on: zlib
|
|
|
|
|
2022-05-02 21:01:39 +02:00
|
|
|
name=kexec-tools
|
|
|
|
xname=kexec
|
2022-08-04 00:19:56 +02:00
|
|
|
version=2.0.25
|
2021-11-27 19:05:51 +01:00
|
|
|
release=1
|
2022-05-02 21:01:39 +02:00
|
|
|
source=(https://git.kernel.org/pub/scm/utils/kernel/${xname}/\
|
|
|
|
${name}.git/snapshot/${name}-${version}.tar.gz
|
2021-08-04 00:30:02 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
build() {
|
2022-05-02 21:01:39 +02:00
|
|
|
cd ${name}-${version}
|
2021-08-04 00:30:02 +02:00
|
|
|
|
|
|
|
./bootstrap
|
2021-08-05 01:45:45 +02:00
|
|
|
#LDFLAGS="-static ${LDFLAGS}"
|
|
|
|
./configure --prefix=/usr --without-lzma
|
2021-08-04 00:30:02 +02:00
|
|
|
make
|
|
|
|
make DESTDIR="${PKG}" install
|
|
|
|
|
2021-08-05 01:45:45 +02:00
|
|
|
#mv "${PKG}"/usr/sbin/kexec "${PKG}"/usr/sbin/kexec.static
|
2021-08-04 00:30:02 +02:00
|
|
|
rm -rf \
|
|
|
|
"${PKG}"/usr/lib \
|
|
|
|
"${PKG}"/usr/sbin/vmcore-dmesg \
|
|
|
|
"${PKG}"/usr/share/man/man8/vmcore-dmesg.8
|
|
|
|
}
|
|
|
|
|
|
|
|
# s-sh-mode
|