summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorSami Nurmenniemi <sami.nurmenniemi@qt.io>2017-08-21 13:21:13 +0300
committerSami Nurmenniemi <sami.nurmenniemi@qt.io>2017-08-24 09:15:47 +0000
commit68a1cb1099d95306679a3e277d79bfb90787cf13 (patch)
tree24a1d328ee83a080f3246838d810ebcfde20dee9 /classes
parente3031b6ff5caf9e2e890657bdc02eca58a1fb3db (diff)
downloadmeta-boot2qt-68a1cb1099d95306679a3e277d79bfb90787cf13.tar.gz
Fix DNS for Qemu running on b2qt toolchain sysroot
The b2qt toolchain had broken link in sysroot/etc/resolv.conf. It was pointing to ../run/resolv.conf which is correct on actual device that gets the file dynamically from systemd. That file is never created for the toolchain and DNS operations fail. This change removes the link from the toolchain. Task-number: QTBUG-62580 Change-Id: I52098e667a9190e300a06b777f9fac778a545faf Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Diffstat (limited to 'classes')
-rw-r--r--classes/populate_b2qt_qt5_sdk.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/populate_b2qt_qt5_sdk.bbclass b/classes/populate_b2qt_qt5_sdk.bbclass
index 7acd095..fd7b43c 100644
--- a/classes/populate_b2qt_qt5_sdk.bbclass
+++ b/classes/populate_b2qt_qt5_sdk.bbclass
@@ -67,6 +67,9 @@ EOF
67 echo 'TargetSpec = devices/linux-oe-generic-g++' >> $qtconf 67 echo 'TargetSpec = devices/linux-oe-generic-g++' >> $qtconf
68 68
69 create_qtcreator_configure_script 69 create_qtcreator_configure_script
70
71 # Link /etc/resolv.conf is broken in the toolchain sysroot, remove it
72 rm -f ${SDK_OUTPUT}${SDKTARGETSYSROOT}${sysconfdir}/resolv.conf
70} 73}
71 74
72create_qtcreator_configure_script () { 75create_qtcreator_configure_script () {