diff options
Diffstat (limited to 'scripts/setup-environment.sh')
-rwxr-xr-x | scripts/setup-environment.sh | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/scripts/setup-environment.sh b/scripts/setup-environment.sh index fbe8672..3045e3c 100755 --- a/scripts/setup-environment.sh +++ b/scripts/setup-environment.sh | |||
@@ -56,10 +56,16 @@ BUILDDIRECTORY=${BUILDDIRECTORY:-build-${MACHINE}} | |||
56 | 56 | ||
57 | if [ ! -f ${PWD}/${BUILDDIRECTORY}/conf/bblayers.conf ]; then | 57 | if [ ! -f ${PWD}/${BUILDDIRECTORY}/conf/bblayers.conf ]; then |
58 | case ${MACHINE} in | 58 | case ${MACHINE} in |
59 | apalis-imx8|imx8qmlpddr4arm2) | ||
60 | LAYERSCONF="bblayers.conf.fsl-imx8.sample" | ||
61 | ;; | ||
59 | apalis-imx6|colibri-imx6|colibri-vf|colibri-imx7) | 62 | apalis-imx6|colibri-imx6|colibri-vf|colibri-imx7) |
60 | LAYERSCONF="bblayers.conf.toradex.sample" | 63 | LAYERSCONF="bblayers.conf.toradex.sample" |
61 | ;; | 64 | ;; |
62 | imx6qsabresd|imx6dlsabresd|nitrogen6x|imx7dsabresd|imx7s-warp) | 65 | nitrogen6x|nitrogen7) |
66 | LAYERSCONF="bblayers.conf.boundary.sample" | ||
67 | ;; | ||
68 | imx6qsabresd|imx6dlsabresd|imx7dsabresd|imx7s-warp) | ||
63 | LAYERSCONF="bblayers.conf.fsl.sample" | 69 | LAYERSCONF="bblayers.conf.fsl.sample" |
64 | ;; | 70 | ;; |
65 | smarc-samx6i) | 71 | smarc-samx6i) |
@@ -83,7 +89,7 @@ if [ ! -f ${PWD}/${BUILDDIRECTORY}/conf/bblayers.conf ]; then | |||
83 | emulator) | 89 | emulator) |
84 | LAYERSCONF="bblayers.conf.emulator.sample" | 90 | LAYERSCONF="bblayers.conf.emulator.sample" |
85 | ;; | 91 | ;; |
86 | jetson-tx1|jetson-tk1) | 92 | jetson-tx1|jetson-tx2|jetson-tk1) |
87 | LAYERSCONF="bblayers.conf.jetson.sample" | 93 | LAYERSCONF="bblayers.conf.jetson.sample" |
88 | ;; | 94 | ;; |
89 | *) | 95 | *) |
@@ -93,18 +99,14 @@ if [ ! -f ${PWD}/${BUILDDIRECTORY}/conf/bblayers.conf ]; then | |||
93 | esac | 99 | esac |
94 | 100 | ||
95 | mkdir -p ${PWD}/${BUILDDIRECTORY}/conf | 101 | mkdir -p ${PWD}/${BUILDDIRECTORY}/conf |
96 | cp ${PWD}/sources/meta-boot2qt/conf/${LAYERSCONF} ${PWD}/${BUILDDIRECTORY}/conf/bblayers.conf | 102 | cp ${PWD}/sources/meta-boot2qt/meta-boot2qt-distro/conf/${LAYERSCONF} ${PWD}/${BUILDDIRECTORY}/conf/bblayers.conf |
97 | |||
98 | if [ ! -d ${PWD}/sources/meta-qt5 ]; then | ||
99 | sed -i -e '/meta-qt5/d' ${PWD}/${BUILDDIRECTORY}/conf/bblayers.conf | ||
100 | fi | ||
101 | 103 | ||
102 | if [ ! -d ${PWD}/sources/meta-boot2qt/.git ]; then | 104 | if [ ! -d ${PWD}/sources/meta-boot2qt/.git ]; then |
103 | QT_SDK_PATH=$(readlink -f ${PWD}/sources/meta-boot2qt/../../../../) | 105 | QT_SDK_PATH=$(readlink -f ${PWD}/sources/meta-boot2qt/../../../../) |
104 | fi | 106 | fi |
105 | fi | 107 | fi |
106 | 108 | ||
107 | export TEMPLATECONF="${PWD}/sources/meta-boot2qt/conf" | 109 | export TEMPLATECONF="${PWD}/sources/meta-boot2qt/meta-boot2qt-distro/conf" |
108 | . sources/poky/oe-init-build-env ${BUILDDIRECTORY} | 110 | . sources/poky/oe-init-build-env ${BUILDDIRECTORY} |
109 | 111 | ||
110 | # use sources from Qt SDK if that is available | 112 | # use sources from Qt SDK if that is available |