Skip to content

Commit 14eddea

Browse files
committed
Fixed packaging of kernel modules
1 parent 85a03a5 commit 14eddea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ci/build_kernel.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
KVER=4.9
2323

24+
here=`pwd`
25+
2426
minor=`wget -q -O- http://linux-libre.fsfla.org/pub/linux-libre/releases/LATEST-$KVER.N/ | grep -F patch-$KVER-gnu | head -n 1 | cut -f 9 -d . | cut -f 1 -d -`
2527
[ ! -f kernel-cache/linux-libre-$KVER-gnu.tar.xz ] && wget -O kernel-cache/linux-libre-$KVER-gnu.tar.xz http://linux-libre.fsfla.org/pub/linux-libre/releases/LATEST-$KVER.0/linux-libre-$KVER-gnu.tar.xz
2628
[ ! -f kernel-cache/patch-$KVER-gnu-$KVER.$minor-gnu ] && wget -O- https://www.linux-libre.fsfla.org/pub/linux-libre/releases/LATEST-$KVER.N/patch-$KVER-gnu-$KVER.$minor-gnu.xz | xz -d > kernel-cache/patch-$KVER-gnu-$KVER.$minor-gnu
@@ -39,7 +41,7 @@ patch -R -p 1 < ../kernel-cache/ath9k_htc_do_not_use_bulk_on_ep3_and_ep4.patch
3941
sed s/'SUBLEVEL = .*'/'SUBLEVEL = 0'/ -i Makefile
4042
cp -f ../kernel/config .config
4143

42-
export PATH=`pwd`/ci:$PATH
44+
export PATH=$here/ci:$PATH
4345
kmake="make -j `nproc` CROSS_COMPILE=arm-none-eabi- ARCH=arm"
4446

4547
$kmake olddefconfig
@@ -66,6 +68,6 @@ vbutil_kernel --pack ../devsus-kernel/boot/vmlinux.kpart \
6668
cd ..
6769

6870
# put kernel modules in /lib/modules
69-
$kmake -C linux-$KVER INSTALL_MOD_PATH=devsus-kernel modules_install
71+
$kmake -C linux-$KVER INSTALL_MOD_PATH=$here/devsus-kernel modules_install
7072
rm -f devsus-kernel/lib/modules/$KVER.0-gnu/{build,source}
7173
tar -c devsus-kernel | gzip -1 > devsus-kernel.tar.gz

0 commit comments

Comments
 (0)