added an error check that catches common case of 'make config' failing to
authorFrank Mori Hess <fmhess@speakeasy.net>
Fri, 30 May 2003 00:23:48 +0000 (00:23 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Fri, 30 May 2003 00:23:48 +0000 (00:23 +0000)
get compile flags from kernel source.

scripts/dep.linux

index 66a29d132c9cfcd29711296e54ebb5271791c654..95d261c88162cb1c49de8129e7100b5f9c7da933 100755 (executable)
@@ -81,6 +81,10 @@ topdir=$(pwd)
 
 cd ${topdir}/scripts/linux_flags
 make LINUXDIR=${LINUXDIR}
+if [ $? != 0 ]; then
+       echo "make in linux source directory failed, do you have write permission?"
+       exit $?
+fi
 cd ${topdir}
 mv scripts/linux_flags/flags .buildvars