summaryrefslogtreecommitdiff
path: root/functions/architecture.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-12-05 14:27:08 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:20:37 +0100
commit51944c015f98cf25b3f8a51ccd35a8c77a674d27 (patch)
tree0f7cfc897e02a2194df886fdcdd6b8411d22daaf /functions/architecture.sh
parentd703d361fc6b707934ac521516999d31c92e6bc7 (diff)
downloadvyos-live-build-51944c015f98cf25b3f8a51ccd35a8c77a674d27.tar.gz
vyos-live-build-51944c015f98cf25b3f8a51ccd35a8c77a674d27.zip
Renaming --architecture to --architectures in preparation for multi-arch.
Diffstat (limited to 'functions/architecture.sh')
-rwxr-xr-xfunctions/architecture.sh88
1 files changed, 0 insertions, 88 deletions
diff --git a/functions/architecture.sh b/functions/architecture.sh
deleted file mode 100755
index b49729348..000000000
--- a/functions/architecture.sh
+++ /dev/null
@@ -1,88 +0,0 @@
-#!/bin/sh
-
-## live-build(7) - System Build Scripts
-## Copyright (C) 2006-2010 Daniel Baumann <daniel@debian.org>
-##
-## live-build comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
-## This is free software, and you are welcome to redistribute it
-## under certain conditions; see COPYING for details.
-
-
-Check_architecture ()
-{
- ARCHITECTURES="${@}"
- VALID="false"
-
- for ARCHITECTURE in ${ARCHITECTURES}
- do
- if [ "$(echo ${LB_ARCHITECTURE} | grep ${ARCHITECTURE})" ]
- then
- VALID="true"
- break
- fi
- done
-
- if [ "${VALID}" = "false" ]
- then
- Echo_warning "skipping %s, foreign architecture." "${0}"
- exit 0
- fi
-}
-
-Check_crossarchitecture ()
-{
- if [ -x /usr/bin/dpkg ]
- then
- HOST="$(dpkg --print-architecture)"
- else
- HOST="$(uname -m)"
- fi
-
- case "${HOST}" in
- amd64|i386|x86_64)
- CROSS="amd64 i386"
- ;;
-
- powerpc|ppc64)
- CROSS="powerpc ppc64"
- ;;
-
- *)
- CROSS="${HOST}"
- ;;
- esac
-
- Check_architecture "${CROSS}"
-}
-
-Check_multiarchitecture ()
-{
- if [ "$(echo ${LB_ARCHITECTURE} | wc -w)" -gt "1" ]
- then
- # First, only support multiarch on iso
- case "${LB_BINARY_IMAGES}" in
- iso*)
- # Assemble multi-arch
- case "${LB_CURRENT_ARCHITECTURE}" in
- amd64)
- DESTDIR="${DESTDIR}.amd"
- DESTDIR_LIVE="${DESTDIR_LIVE}.amd"
- DESTDIR_INSTALL="${DESTDIR_INSTALL}.amd"
- ;;
-
- i386)
- DESTDIR="${DESTDIR}.386"
- DESTDIR_LIVE="${DESTDIR_LIVE}.386"
- DESTDIR_INSTALL="${DESTDIR_INSTALL}.386"
- ;;
-
- powerpc)
- DESTDIR="${DESTDIR}.ppc"
- DESTDIR_LIVE="${DESTDIR_LIVE}.ppc"
- DESTDIR_INSTALL="${DESTDIR_INSTALL}.ppc"
- ;;
- esac
- ;;
- esac
- fi
-}