forked from petermilne/BOLODSP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake.package
More file actions
executable file
·31 lines (24 loc) · 772 Bytes
/
Copy pathmake.package
File metadata and controls
executable file
·31 lines (24 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# BOLODSP DSP support for BOLO8
DC=$(date +%y%m%d%H%M)
SEQ=35
PKG=bolodsp
PACKAGES=../../PACKAGES.OPT
rm -Rf opkg/*
mkdir -p opkg release
cp -a usr opkg
# Make sure arm-xilinx-linux-gnueabi-gcc (and -g++) are in PATH, possibly
# by sourcing the Vivado settings script. Or specify the cross compiler
# to use (e.g. CROSS_COMPILE=arm-linux-gnueabi- ./make.package). In this case,
# ensure ${CROSS_COMPILE}{gcc,g++} are in PATH
if [ -z ${CROSS_COMPILE+word} ]
then
make -C calibfit
else
make CROSS_COMPILE=${CROSS_COMPILE} -C calibfit
fi
cp calibfit/calibfit opkg/usr/local/bin/
tar cvzf release/${SEQ}-${PKG}-${DC}.tgz -C opkg .
ls -l release/${SEQ}-${PKG}-${DC}.tgz
rm -f ${PACKAGES}/${SEQ}-${PKG}*
cp release/${SEQ}-${PKG}-${DC}.tgz ${PACKAGES}