Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp212006pxu; Tue, 1 Dec 2020 09:24:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzhYlmi1J6ebeHDvDy1G5qa4m8glNUq+173UNohvzmPCMRM/XNMYiR9i2FER/eK0wUhiwJ2 X-Received: by 2002:a50:fc96:: with SMTP id f22mr4198986edq.162.1606843482538; Tue, 01 Dec 2020 09:24:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606843482; cv=none; d=google.com; s=arc-20160816; b=LJg/BnPnsluknYMRiLSDx59YmqJXGVeyNVSXHo7AhDW3OSyQwTK8JwsUni+JuAODmh NyncZ9xogQpOYk6kjmcJLE1A8Irh4mEmvQhsMV9LIbGJSCWGzTRq6yuwTlXj7TsGuG9y QLhatTAOyjkNr+p9HPPfV2bLrTfQxsXjH5nDy72ni4S+fDq3gidev3aEfqmWQJu1lbK0 +aRo88EYZel4mveRGmW/oYYoKV/RrYB+YJ46yzc94PS8MARMxVRVJAKpf7SjtMHgQTe9 8E7k3vT5QGXAZwAbmiD/Wi+u1SrR+Q10MP+vyPlCOSWD/NACe4Hw2P7WVlVpUMFOFkMk YkEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=rvplo0QIZm2HwMkvf+juC83EzSGTaTyNj9sgi8XrNSo=; b=Olg4Rxkog3s6yHhprqJ+KsSgXWYvhbMBhioSGRHyKdVQeGntfzibx+BzC0jJ3L8Fd+ EOB/OamS1qaVRhKw5EhZwLMj8/YKdQPvYDiHJai4PRCg9bnsCW9eqTMy+mk/kZvLx9rw F7Trgfo60+SYOlYlp+ozWJ+71L8jWVc8c0y3rTTE52GtL18f486+RjXTgpDCCzCsi0Pn q6nls31dr5XTIgwA6bSRFXqaCCHXd3snmwmqlbUAV60uPgjUqQ1TQ8DCaa/IspygCMfU K7T7cXiEx/aeqwqSINqpY6E/6GexFtCU9QkDi5ZIPdkRHZzwDUk3Y8eUZfjG9G6WkXEo vG9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=BJTG9ovw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i59si269080edd.308.2020.12.01.09.24.16; Tue, 01 Dec 2020 09:24:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=BJTG9ovw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730897AbgLARUT (ORCPT + 99 others); Tue, 1 Dec 2020 12:20:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730686AbgLARUS (ORCPT ); Tue, 1 Dec 2020 12:20:18 -0500 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3F00C0613D6 for ; Tue, 1 Dec 2020 09:19:38 -0800 (PST) Received: by mail-pl1-x641.google.com with SMTP id b23so1485304pls.11 for ; Tue, 01 Dec 2020 09:19:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to; bh=rvplo0QIZm2HwMkvf+juC83EzSGTaTyNj9sgi8XrNSo=; b=BJTG9ovwepFrEQ970bGEXe6X5F4M8GLrP4febOWwLsmjg48tFxVwde5DLQTFtUv8m5 9E9D67HHiRgyiGl+hKcR7k7WTZhGNTXYHEZNJ0NPUuP9ZGVytnVJlpST9xN9ngRlODVs CcldUvZaKpOP1hVrUWeLiNNQpk4W6DAPr/kg0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=rvplo0QIZm2HwMkvf+juC83EzSGTaTyNj9sgi8XrNSo=; b=titNbaOZ6AsFOYUUaZAcO4zdSxfampCrTgbdaqyx50taCOmNK33Ke5UshGuMb9SXuN SM87Oz4lCnxDqLnSHYrBp1UdE1AAu01ZLuNE0TAo/eRxCxJB5ww1c1143vGmyqqEmw1K wSs2sfmabus4JnUs8L2ewNPbJaaY+A10thUCosOVW7wRXKlKfsvhfVxKBbUj+VjhJmmL sNAuAJw4G4QDL81o5Ar0oXCAhNAtkvBvvMpQ8/wtc9NZI/dZcbXK0hUe2XCHKYAFBISE tYJADkuIoY0T+Fz2Lu6GYI2graegv/OLpzOeOyBf/ziIvKpeuTEsFD4tzXYuPCNbo486 KDFA== X-Gm-Message-State: AOAM533rGxWB/4fxrHWeywPxd1+3BmQ0mCyIQn05WwBUDPVhX0mAD5sS M3UOersy1ybpv6WSztAxHZ0F2A== X-Received: by 2002:a17:90b:3594:: with SMTP id mm20mr3755250pjb.121.1606843177852; Tue, 01 Dec 2020 09:19:37 -0800 (PST) Received: from [10.136.13.65] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id p14sm261792pjo.53.2020.12.01.09.19.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Dec 2020 09:19:36 -0800 (PST) Subject: Re: [PATCH] menuconfig,mconf-cfg: Allow specification of ncurses location To: Masahiro Yamada Cc: Linux Kbuild mailing list , Linux Kernel Mailing List , Broadcom Kernel Feedback List , Bruce Ashfield , OE-core , openembeded-devel , Michal Marek References: <20201128004505.27619-1-scott.branden@broadcom.com> From: Scott Branden Message-ID: Date: Tue, 1 Dec 2020 09:19:34 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000dc8d9805b56a5431" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --000000000000dc8d9805b56a5431 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-CA Hi Masahiro, On 2020-12-01 4:25 a.m., Masahiro Yamada wrote: > On Sat, Nov 28, 2020 at 9:45 AM Scott Branden > wrote: >> From: Bruce Ashfield >> >> In some cross build environments such as the Yocto Project build >> environment it provides an ncurses library that is compiled >> differently than the host's version. This causes display corruption >> problems when the host's curses includes are used instead of the >> includes from the provided compiler are overridden. There is a second >> case where there is no curses libraries at all on the host system and >> menuconfig will just fail entirely. >> >> The solution is simply to allow an override variable in >> check-lxdialog.sh for environments such as the Yocto Project. Adding >> a CROSS_CURSES_LIB and CROSS_CURSES_INC solves the issue and allowing >> compiling and linking against the right headers and libraries. >> >> Signed-off-by: Jason Wessel >> cc: Michal Marek >> cc: linux-kbuild@vger.kernel.org >> Signed-off-by: Bruce Ashfield >> Signed-off-by: Scott Branden >> --- > > Some people solve the cross-compiling in Yocto > by using pkg-config. > > > For example, > > commit 067c650c456e758f933aaf87a202f841d34be269 > Author: Pavel Modilaynen > Date: Fri Jul 12 13:52:19 2019 +0200 > > dtc: Use pkg-config to locate libyaml > > Using Makefile's wildcard with absolute path to detect > the presence of libyaml results in false-positive > detection when cross-compiling e.g. in yocto environment. > > > > mconf-cfg.sh already allows the path flexibility with pkg-config. > Why do you want yet another hook? I hope the yocto community can provide more details on this patch. The yocto environment isolates the build environment from the host tools. Running menuconfig with the upstream kernel does not work on the latest yocto without this patch. >> scripts/kconfig/mconf-cfg.sh | 8 ++++++++ >> 1 file changed, 8 insertions(+) >> mode change 100755 => 100644 scripts/kconfig/mconf-cfg.sh >> >> diff --git a/scripts/kconfig/mconf-cfg.sh b/scripts/kconfig/mconf-cfg.sh >> old mode 100755 >> new mode 100644 >> index aa68ec95620d..32448bc198a5 >> --- a/scripts/kconfig/mconf-cfg.sh >> +++ b/scripts/kconfig/mconf-cfg.sh >> @@ -4,6 +4,14 @@ >> PKG="ncursesw" >> PKG2="ncurses" >> >> +if [ "$CROSS_CURSES_LIB" != "" ]; then >> + echo libs=\'$CROSS_CURSES_LIB\' >> + if [ x"$CROSS_CURSES_INC" != x ]; then >> + echo cflags=\'$CROSS_CURSES_INC\' >> + fi >> + exit 0 >> +fi >> + >> if [ -n "$(command -v pkg-config)" ]; then >> if pkg-config --exists $PKG; then >> echo cflags=\"$(pkg-config --cflags $PKG)\" >> -- >> 2.17.1 >> > --000000000000dc8d9805b56a5431 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQRQYJKoZIhvcNAQcCoIIQNjCCEDICAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg2aMIIE6DCCA9CgAwIBAgIOSBtqCRO9gCTKXSLwFPMwDQYJKoZIhvcNAQELBQAwTDEgMB4GA1UE CxMXR2xvYmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMT Ckdsb2JhbFNpZ24wHhcNMTYwNjE1MDAwMDAwWhcNMjQwNjE1MDAwMDAwWjBdMQswCQYDVQQGEwJC RTEZMBcGA1UEChMQR2xvYmFsU2lnbiBudi1zYTEzMDEGA1UEA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