18 lines
331 B
Bash
18 lines
331 B
Bash
|
#!/bin/bash
|
||
|
git clone https://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git
|
||
|
|
||
|
set -e
|
||
|
cd kexec-tools
|
||
|
|
||
|
export CFLAGS="-I$PREFIX/include -O3"
|
||
|
export CPPFLAGS="-I$PREFIX/include -O3"
|
||
|
export LDFLAGS="-L$PREFIX/lib"
|
||
|
|
||
|
./bootstrap
|
||
|
|
||
|
./configure --help;
|
||
|
|
||
|
./configure --prefix="$PREFIX" --host="$xHOST"
|
||
|
make clean
|
||
|
make
|
||
|
make install
|