aboutsummaryrefslogtreecommitdiffstats
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)
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 7acd095e..fd7b43c4 100644
--- a/classes/populate_b2qt_qt5_sdk.bbclass
+++ b/classes/populate_b2qt_qt5_sdk.bbclass
@@ -67,6 +67,9 @@ EOF
echo 'TargetSpec = devices/linux-oe-generic-g++' >> $qtconf
create_qtcreator_configure_script
+
+ # Link /etc/resolv.conf is broken in the toolchain sysroot, remove it
+ rm -f ${SDK_OUTPUT}${SDKTARGETSYSROOT}${sysconfdir}/resolv.conf
}
create_qtcreator_configure_script () {