Skip to content

Commit 9c2199f

Browse files
committed
Fix source packaging
1 parent 81fe25d commit 9c2199f

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

build-kernel.sh

+11-5
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,15 @@ ls -al
224224
echo "Moving .deb packages to $_output_dir"
225225
mv $_workdir/*.deb /output
226226

227-
echo "Compressing linux source to $_output_dir"
228-
mv linux linux-source-${_kernel_version}-${_arg_kernel_localversion}+
229-
tar cJf \
230-
$_output_dir/linux-source-${_kernel_version}-${_arg_kernel_localversion}+.tar.xz \
231-
linux-source-${_kernel_version}-${_arg_kernel_localversion}+
227+
echo "Compressing kernel source to $_output_dir"
228+
make clean
229+
mv $_workdir/linux $_workdir/linux-source-${_kernel_version}-${_arg_kernel_localversion}+
230+
tar cjf \
231+
$_output_dir/linux-source-${_kernel_version}-${_arg_kernel_localversion}+.tar.bz2 \
232+
$_workdir/linux-source-${_kernel_version}-${_arg_kernel_localversion}+
232233

233234

235+
echo ""
234236
echo "SUCCESS The kernel has been successfully packaged."
235237
echo ""
236238
echo "INSTALL"
@@ -244,5 +246,9 @@ echo "sudo sh -c \"sed -i '$ s/$/ selinux=1 security=selinux/' /boot/cmdline.txt
244246
echo "sudo touch /.autorelabel"
245247
echo "sudo reboot"
246248
echo "sestatus"
249+
echo ""
250+
echo "INSTALL SOURCE (OPTIONAL)"
251+
echo "tar xjf linux-source-${_kernel_version}-${_arg_kernel_localversion}+.tar.bz2 --directory /usr/src/"
252+
echo "ln -s linux-source-${_kernel_version}-${_arg_kernel_localversion}+ /usr/src/linux"
247253

248254
# ] <-- needed because of Argbash

0 commit comments

Comments
 (0)