blob: 63f4c65d53f58a8d0b50c4c9cdb38d74b2f0d7db (
plain)
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
|
#!/bin/bash
#
# Copyright (C) 2021 by Michael Olbrich <m.olbrich@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
ptxd_make_icecc_check() {
local sysroot_host
if [ -z "${PTXDIST_ICECC}" ]; then
return
fi
# old icerun versions cannot handle relative paths
sysroot_host="$(ptxd_get_ptxconf PTXCONF_SYSROOT_HOST)" &&
sysroot_host=".${sysroot_host#${PTXDIST_WORKSPACE}}"
ln -s /bin/true "${sysroot_host}/bin/test-icerun" &&
icerun "${sysroot_host}/bin/test-icerun" || {
echo "Disabling broken icerun!"
unset PTXDIST_ICERUN
}
rm -f "${sysroot_host}/bin/test-icerun"
}
ptxd_make_icecc_check
|