summaryrefslogtreecommitdiff
path: root/helpers/lh_binary_includes
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-08-14 21:33:56 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:39 +0100
commit3e3bb4260766082847fb162baf1a99aa4fbf7c49 (patch)
tree3ca00b38e66da4a2bd0bf83a1503e89a41ca47b6 /helpers/lh_binary_includes
parentfe8484f3cd11620e793dba71425abcb3cde9757e (diff)
downloadvyos-live-build-3e3bb4260766082847fb162baf1a99aa4fbf7c49.tar.gz
vyos-live-build-3e3bb4260766082847fb162baf1a99aa4fbf7c49.zip
Moving win32-loader inclusion support from external hook into main program (Closes: #476546).
Diffstat (limited to 'helpers/lh_binary_includes')
-rwxr-xr-xhelpers/lh_binary_includes15
1 files changed, 15 insertions, 0 deletions
diff --git a/helpers/lh_binary_includes b/helpers/lh_binary_includes
index 6954377c0..c90e75c9c 100755
--- a/helpers/lh_binary_includes
+++ b/helpers/lh_binary_includes
@@ -164,5 +164,20 @@ then
sed -i -e "s|DEBIAN_NAME|${DEBIAN_NAME}|g" -e "s|DEBIAN_DATE|${DEBIAN_DATE}|g" -e "s|DEBIAN_TOOLS|${DEBIAN_TOOLS_TXT}|g" binary/README.txt
fi
+# Copying win32-loader
+if [ "${LH_WIN32_LOADER}" = "enabled" ]
+then
+ case "${LH_ARCHITECTURE}" in
+ amd64|i386)
+ if Find_files /usr/lib/win32-loader/*
+ then
+ cp /usr/lib/win32-loader/* binary
+ else
+ Echo_warning "win32-loader inclusion is enabled but not found, ignoring."
+ fi
+ ;;
+ esac
+fi
+
# Creating stage file
Create_stagefile .stage/binary_includes