-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqmake_set_env.sh
More file actions
30 lines (26 loc) · 1.19 KB
/
qmake_set_env.sh
File metadata and controls
30 lines (26 loc) · 1.19 KB
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/sh
# test environment variables
: "${TRD_HOME:?environment variable not set or empty}"
: "${PETALINUX:?environment variable not set or empty}"
# set environment variables
export MAKEFLAGS='-j 20' \
OE_QMAKE_AR='aarch64-linux-gnu-ar' \
OE_QMAKE_CC='aarch64-linux-gnu-gcc -Wl,--hash-style=gnu ' \
OE_QMAKE_CFLAGS=' -O2 -pipe -g -feliminate-unused-debug-types' \
OE_QMAKE_COMPILER='aarch64-linux-gnu-gcc -Wl,--hash-style=gnu ' \
OE_QMAKE_CXX='aarch64-linux-gnu-g++ -Wl,--hash-style=gnu ' \
OE_QMAKE_CXXFLAGS=' -O2 -pipe -g -feliminate-unused-debug-types -fvisibility-inlines-hidden' \
OE_QMAKE_LDFLAGS='-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed' \
OE_QMAKE_LINK='aarch64-linux-gnu-g++ -Wl,--hash-style=gnu ' \
OE_QMAKE_STRIP='echo' \
SYSROOT=$SYSROOT \
PATH=$PETALINUX/components/yocto/source/aarch64/buildtools/sysroots/x86_64-petalinux-linux/usr/bin/qt5:$PATH \
QT_CONF_PATH=$TRD_HOME/apu/vcu_qt/qt.conf
# test existence of SYSROOT directory
if [ ! -d "$SYSROOT" ]
then
echo "SYSROOT directory $SYSROOT does not exist!"
fi
# generate Makefile
echo "To generate the Makefile, run the following command chosing the desired Qt project file:"
echo "qmake \$TRD_HOME/apu/vcu_qt/VCU.pro -r -spec linux-oe-g++"