2019-05-18 10:09:51 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2019-07-13 15:16:54 -06:00
|
|
|
# Grab the package version.
|
|
|
|
read -r version _ < "${0%/*}/version"
|
|
|
|
|
2019-06-25 10:17:07 -06:00
|
|
|
mkdir -p "$1/boot" "$1/usr/lib/modules"
|
2019-05-18 10:09:51 -06:00
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
make \
|
|
|
|
INSTALL_PATH="$1/boot" \
|
2019-06-25 10:17:07 -06:00
|
|
|
INSTALL_MOD_PATH="$1/usr" \
|
2019-05-18 10:09:51 -06:00
|
|
|
modules_install
|
|
|
|
|
|
|
|
make \
|
|
|
|
INSTALL_PATH="$1/boot" \
|
2019-06-25 10:17:07 -06:00
|
|
|
INSTALL_MOD_PATH="$1/usr" \
|
2019-05-18 10:09:51 -06:00
|
|
|
install
|
2019-07-13 15:16:54 -06:00
|
|
|
|
2019-07-19 02:07:42 -06:00
|
|
|
# Rename 'vmlinuz' and 'System.map" according to package version.
|
2019-07-13 15:16:54 -06:00
|
|
|
mv "$1/boot/vmlinuz" "$1/boot/vmlinuz-$version" || :
|
2019-07-19 02:07:42 -06:00
|
|
|
mv "$1/boot/System.map" "$1/boot/System.map-$version" || :
|