Title: [9709] scripts/randconfig: randconfig: switch to ncpu+1 jobs and skip common build errors
Revision
9709
Author
vapier
Date
2011-03-15 15:06:34 -0400 (Tue, 15 Mar 2011)

Log Message

randconfig: switch to ncpu+1 jobs and skip common build errors

Modified Paths


Diff

Modified: scripts/randconfig (9708 => 9709)


--- scripts/randconfig	2011-03-15 19:04:15 UTC (rev 9708)
+++ scripts/randconfig	2011-03-15 19:06:34 UTC (rev 9709)
@@ -6,14 +6,44 @@
 
 export CONFIG_DEBUG_SECTION_MISMATCH=y
 jobs=$(grep -cs processor /proc/cpuinfo)
-jobs=$((${jobs:-1} * 2))
+jobs=$((${jobs:-1} + 1))
 
 rm -f randconfig-*.{config,log}
 
 i=0
 while [ ${i} -lt ${1:-10} ] ; do
 	echo $i
-	(make randconfig && make -s -j${jobs} -k) >& randconfig-${i}.log
+	(
+	r=0
+	while [ ${r} -lt 10 ] ;  do
+		: $(( r++ ))
+		make -s randconfig
+		sed -i \
+			-e '/^CONFIG_PLL_BYPASS=/d' \
+			-e '/CAN4LINUX/d' \
+			-e '/^CONFIG_B4[34]=/d' \
+			-e '/^CONFIG_B43LEGACY=/d' \
+			-e '/^CONFIG_SSB=/d' \
+			-e '/^CONFIG_SND_BFIN_AD73322=/d' \
+			-e '/^CONFIG_STAGING=/d' \
+			-e '/^CONFIG_PROFILE_ANNOTATED_BRANCHES=/d' \
+			-e '/^CONFIG_PROFILE_ALL_BRANCHES=/d' \
+			-e '/^CONFIG_LOCALVERSION_AUTO/d' \
+			.config
+		echo '# CONFIG_LOCALVERSION_AUTO is not set' >> .config
+		# Make sure at least one ticksource is selected (see time-ts.c)
+		if grep -q CONFIG_GENERIC_CLOCKEVENTS=y .config ; then
+			if ! grep -q ^CONFIG_.*TICKSOURCE.*=y .config ; then
+				sed -i '/CONFIG_.*TICKSOURCE/d' .config
+				echo CONFIG_TICKSOURCE_CORETMR=y >> .config
+			fi
+		fi
+		yes "" | make -s oldconfig >/dev/null
+		make -s -j${jobs} arch/blackfin/mach-common/arch_checks.o && break
+	done
+
+	make -s -j${jobs} -k
+	) >& randconfig-${i}.log
 	cp .config randconfig-${i}.config
 	((++i))
 done
@@ -22,6 +52,13 @@
 (
 for f in ${failures} ; do
 	printf "\n#### ${f}:\n"
-	grep -h ${f} randconfig-[0-9]*.log | sort -u
+	if [ "${f}" = ".tmp_vmlinux1" ] ; then
+		# special: these are final link failures, so look for .o errors
+		sed -n '/[.]o:/,/^make/p' randconfig-[0-9]*.log
+	elif [ "${f}" = "__modpost" ] ; then
+		grep -h "^ERROR:" randconfig-[0-9]*.log | sort -u
+	else
+		grep -h ${f} randconfig-[0-9]*.log | sort -u
+	fi
 done
 ) > randconfig-summary.log
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to