Commit cf66924f authored by Paul Brook's avatar Paul Brook
Browse files

Detect missing config includes



Terminate make_device_config.sh if the awk command fails.
Typically this means a missing file.

Signed-off-by: default avatarPaul Brook <paul@codesourcery.com>
parent 050e27c8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -18,7 +18,8 @@ process_includes () {

f=$src
while [ -n "$f" ] ; do
  f=`awk '/^include / {print "'$src_dir'/" $2}' $f`
  f=`awk '/^include / {ORS=" " ; print "'$src_dir'/" $2}' $f`
  [ $? = 0 ] || exit 1
  all_includes="$all_includes $f"
done
process_includes $src > $dest