xref: /aosp_15_r20/external/ltp/testcases/kernel/hotplug/cpu_hotplug/tools/cpuhotplug_do_kcompile_loop (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1#!/bin/sh
2
3# Must be run from a kernel source code directory
4
5echo $$
6
7KERNEL_DIR=${1:-/usr/src/linux}
8
9if [ ! -d $KERNEL_DIR ]; then
10	echo "${0##*/}: ERROR: kernel directory - $KERNEL_DIR - does not exist"
11	exit 1
12fi
13
14cd $KERNEL_DIR || exit $?
15
16while :
17do
18	make mrproper
19	make defconfig
20	make -j20 bzImage
21done
22