[From nobody Thu Jun 25 05:55:23 2020
Received: from mail-vs1-xe42.google.com ([2607:f8b0:4864:20::e42])
 by bombadil.infradead.org with esmtps (Exim 4.92.2 #3 (Red Hat Linux))
 id 1iBo00-0002NW-OQ
 for openwrt-devel@lists.openwrt.org; Sat, 21 Sep 2019 22:37:06 +0000
Received: by mail-vs1-xe42.google.com with SMTP id p13so7083183vsr.4
 for &lt;openwrt-devel@lists.openwrt.org&gt;; Sat, 21 Sep 2019 15:37:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=googlemail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=XLl0sgCaTw/vwOwFRsNIuYc8aHn/syr9BSG54w5YgnI=;
 b=AG6Fa0zGwn9bxWA3BziNsuWJcdvW/jf36Obuk2/ixsUvIm2fY5ReXiY+E1rWbOKmqn
 y1SmZsStJyaE2yLM0hP+puPQbnxyFl3Cnm8gNMul8XKW0GZT23/olPNLswLGcBSH4Js2
 tuqwRlopdWzpBLzc2Y4KC5XZz19aIwqw4Rrb0WzlHnWsgC4bMto9UymNruT8hoJ0YasG
 W5w0AdfLmzpWg7DeLaTyR93ZwHUy1Qulkzl2riDGn/LQn+gkAy7IL1jzgtQCIJ5VgEFT
 UJD9HcT1CfxkSp2km/FqJW6vXimnPfY621m1KGfr2DCHZZ0YxcMv0LMuwQq2J4Lw8Vnv
 Tb5A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=XLl0sgCaTw/vwOwFRsNIuYc8aHn/syr9BSG54w5YgnI=;
 b=uRDSshTCqzTCE7qopA1hcsIkbKjQILGgTI+EfUzPSH7cfVhI9HrKssRURvnYDprCWA
 /bPMkz/3SDVXqTcke1ZEgtBMOaCYP7+Z39HyfWIypj+Zs7U27j89yZnPukl6Y1LJSyuo
 xe178N8kpwiCKgvXupeE1yliyQ6M8Q43I1WIb0Jgi03NrB4JSIr64jBHHz0uPFzpTe/g
 my5jB14OGGAycAmdBUaaAJr6MDHFOgifnwqFRmsgi1Z/H3uzT8wMl4iIm6sBTxeSDo3z
 wS7LnVFnVbqE96WN6M9pbSz5kx709EO4nKl3Dkp2lgOC+wslmxZ5NweKG3Y4uhssYGMo
 9v7g==
X-Gm-Message-State: APjAAAWO0eTKl6uV9FJBm0Jxe5ONXfTvk2tYheCHHCNZN5F+FH9CJ45v
 ySRncXh7utvAnziFUReo9Jnb8SfsUK1gCsGvTWw/s+yV
X-Google-Smtp-Source: APXvYqxIGE/lYx9VMZ+y229da0CpyyDEm81lXv7bQGnEPBN0sjUHjfLC9QujNL6QwF2EshNJY7of/0o2c7gYaZ0CGG8=
X-Received: by 2002:a67:f08d:: with SMTP id i13mr6638893vsl.193.1569105422984; 
 Sat, 21 Sep 2019 15:37:02 -0700 (PDT)
MIME-Version: 1.0
References: &lt;mailman.25186.1568674551.19300.openwrt-devel@lists.openwrt.org&gt;
 &lt;20190920191550.GA40628@meh.true.cz&gt;
In-Reply-To: &lt;20190920191550.GA40628@meh.true.cz&gt;
From: Thomas Albers &lt;thomas.gameiro@googlemail.com&gt;
Date: Sat, 21 Sep 2019 17:36:52 -0500
Message-ID: &lt;CALYGOBUcJBgubAZnLr0jYjQfWMFeECKW2ah_qsqvTip8WbieSA@mail.gmail.com&gt;
Subject: Re: [OpenWrt-Devel] [PATCH] build: fix make kernel_menuconfig
To: =?UTF-8?Q?Petr_=C5=A0tetiar?= &lt;ynezz@true.cz&gt;
Cc: openwrt-devel@lists.openwrt.org
Content-Type: text/plain; charset=&quot;UTF-8&quot;
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 
X-CRM114-CacheID: sfid-20190921_153704_831446_29CDF1A0 
X-CRM114-Status: UNSURE (   4.65  )
X-CRM114-Notice: Please train this message.
X-Spam-Score: -0.2 (/)
X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary:
 Content analysis details:   (-0.2 points)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2607:f8b0:4864:20:0:0:0:e42 listed in]
 [list.dnswl.org]
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (thomas.gameiro[at]googlemail.com)
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from
 author's domain
 0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily
 valid
 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
 -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from
 envelope-from domain

This patch is working for me.

Minor issue: currently make kernel_nconfig is failing for the same
reason (target calling pkg-config from the toolchain/host), so we
might fix that target as well now.

Around line 157 in file include/toplevel.mk the patch should read

+ifneq ($(DISTRO_PKG_CONFIG),)
+kernel_menuconfig: export PATH:=$(dir $(DISTRO_PKG_CONFIG)):$(PATH)
+kernel_nconfig: export PATH:=$(dir $(DISTRO_PKG_CONFIG)):$(PATH)
+endif

Regards,
Thomas

]