summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild/gen-image-deps.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/build/gen-image-deps.sh b/build/gen-image-deps.sh
index 10c4001..fcbb64c 100755
--- a/build/gen-image-deps.sh
+++ b/build/gen-image-deps.sh
@@ -18,17 +18,25 @@
# misrepresented as being the original software.
# 3. This notice may not be removed or altered from any source distribution.
+deps_script=$0
img_cfg_file=$1
img_file=$2
dep_file=$3
rm -f ${dep_file}
-bct=`grep -i bctfile ${img_cfg_file} | sed -e 's/^.*=//' -e s'/[,;].*$//'`
-bootloader=`grep -i bootloader ${img_cfg_file} | sed -e 's/^.*=//' -e s'/[,;].*$//'`
+bct=`grep -i bctfile ${img_cfg_file} | sed -e 's/^.*=\s*//' -e s'/[,;].*$//'`
+bootloader=`grep -i bootloader ${img_cfg_file} | sed -e 's/^.*=\s*//' -e s'/[,;].*$//'`
cat > ${dep_file} <<ENDOFHERE
${img_file}: \\
+ ${deps_script} \\
${img_cfg_file} \\
${bct} \\
${bootloader}
+
+${img_cfg_file}:
+
+${bct}:
+
+${bootloader}:
ENDOFHERE