phase1: dont include stderr output in stageroot variable
authorPetr Štetiar <ynezz@true.cz>
Tue, 8 Sep 2020 06:47:34 +0000 (08:47 +0200)
committerPetr Štetiar <ynezz@true.cz>
Sat, 12 Dec 2020 03:42:06 +0000 (04:42 +0100)
Otherwise it can result in strange error messages which are hard to
debug.

Ref: http://lists.openwrt.org/pipermail/openwrt-devel/2020-August/030826.html
Signed-off-by: Petr Štetiar <ynezz@true.cz>
phase1/master.cfg

index edc41189bc9479dc87cab7892c17ff6ac694b209..7186f5ae994aaa5e767eec892bd08ed3bc84b884 100644 (file)
@@ -1019,7 +1019,8 @@ for target in targets:
                        property = "stageroot",
                        description = "Finding the rootfs staging directory",
                        command=["make", "--no-print-directory", "val.STAGING_DIR_ROOT"],
-                       env = { 'TOPDIR': Interpolate("%(kw:cwd)s/build", cwd=GetCwd) }
+                       env = { 'TOPDIR': Interpolate("%(kw:cwd)s/build", cwd=GetCwd) },
+                       want_stderr = False
                ))
 
                factory.addStep(ShellCommand(