Browse Source

Multiarch: Arch-qualify DEB binary archives

Append "_amd64" (or "_arm64" for binaries built on AArch64) to
the names of plugin archives containing DEB binaries.
E.g. <ovs-dpdk.tar.gz> for <amd64> becomes <ovs-dpdk_amd64.tar.gz>

Change-Id: Ib54e56ad9cc764cf4260b72236e306aaa8857c0e
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Alexandru Avadanii 2 years ago
parent
commit
8736c8f6e6
3 changed files with 7 additions and 4 deletions
  1. 3
    2
      deployment_scripts/install.sh
  2. 2
    1
      ovs_build/build-ovs-dpdk.sh
  3. 2
    1
      ovs_build/build-ovs-nsh-dpdk.sh

+ 3
- 2
deployment_scripts/install.sh View File

@@ -10,10 +10,11 @@ nsh=$2
10 10
 dpdk=$3
11 11
 dpdk_socket_mem=${4:-''}
12 12
 pmd_cpu_mask=${5:-'2'}
13
+deb_arch=$(dpkg --print-architecture)
13 14
 
14
-ovs="ovs-dpdk.tar.gz"
15
+ovs="ovs-dpdk_${deb_arch}.tar.gz"
15 16
 if [ $nsh = 'true' ]; then
16
-    ovs="ovs-nsh-dpdk.tar.gz"
17
+    ovs="ovs-nsh-dpdk_${deb_arch}.tar.gz"
17 18
 fi
18 19
 
19 20
 apt-get install -y --allow-unauthenticated dkms

+ 2
- 1
ovs_build/build-ovs-dpdk.sh View File

@@ -7,6 +7,7 @@ OVS_VER=${OVS_VER:-2.6.90}
7 7
 BUILD_DEST=${BUILD_DEST:-/deb}
8 8
 BUILD_SRC="$(dirname `readlink -f $0`)"
9 9
 BUILD_HOME=${BUILD_HOME:-/tmp/ovs-dpdk}
10
+DEB_ARCH="$(dpkg --print-architecture)"
10 11
 
11 12
 export DEB_BUILD_OPTIONS='parallel=8 nocheck'
12 13
 
@@ -91,4 +92,4 @@ debian/rules build; fakeroot debian/rules binary
91 92
 
92 93
 cp -r ${BUILD_HOME}/*.deb ${BUILD_HOME}/deb
93 94
 cd ${BUILD_HOME}/deb
94
-tar czvf ${BUILD_DEST}/ovs-dpdk.tar.gz .;
95
+tar czvf ${BUILD_DEST}/ovs-dpdk_${DEB_ARCH}.tar.gz .;

+ 2
- 1
ovs_build/build-ovs-nsh-dpdk.sh View File

@@ -7,6 +7,7 @@ OVS_VER=${OVS_VER:-2.6.1}
7 7
 BUILD_DEST=${BUILD_DEST:-/deb}
8 8
 BUILD_SRC="$(dirname `readlink -f $0`)"
9 9
 BUILD_HOME=${BUILD_HOME:-/tmp/ovs-dpdk}
10
+DEB_ARCH="$(dpkg --print-architecture)"
10 11
 
11 12
 export DEB_BUILD_OPTIONS='parallel=8 nocheck'
12 13
 
@@ -103,4 +104,4 @@ debian/rules build; fakeroot debian/rules binary
103 104
 
104 105
 cp -r ${BUILD_HOME}/*.deb ${BUILD_HOME}/deb
105 106
 cd ${BUILD_HOME}/deb
106
-tar czvf ${BUILD_DEST}/ovs-nsh-dpdk.tar.gz .;
107
+tar czvf ${BUILD_DEST}/ovs-nsh-dpdk_${DEB_ARCH}.tar.gz .;

Loading…
Cancel
Save