Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2318869pxu; Sat, 28 Nov 2020 10:01:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwiiMj4hUqJu0tX0+hItGHhg41bkocPLstaDUsphWCsEGJMpMNrDhrm8qhD79nOVCCA9Bsg X-Received: by 2002:a05:6402:17ad:: with SMTP id j13mr14006905edy.347.1606586478776; Sat, 28 Nov 2020 10:01:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606586478; cv=none; d=google.com; s=arc-20160816; b=qAAUa1/VmaT3Nw1nd+o2utZKoaoBfyuiIZxEF5ZxDzQDE68sA892rtlPX8nMBKPbL4 SFauj4fG5VqoNwCqMlqDE7CjRPQCJ6d3UZxMg2SKv+yaNshJ9XLLHuRW1fNeHGwqeYWV 3KIhB3k7ohZqZj5vQMLEqlDt2hki2SmvzpQbzzjji/lRJ8DkUYkrBKlrBVaz+ZlC5/U6 6YfCTbOuawX9a+AOCAedA5QV/TvzyQ0b4etabjPsswGmYmVqHNYOqCgQBuzon+zVETzm mQ42+EjT2OQ0KWxbBDVuUC+EqAeKZ2KfQUL7GhYByrKDvqvqQrOdE/C6V5Ze7aFvRSbd csSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=J/RUqOLrtG/yyp8LIFv88+rY6UY1ibdpQZmu4ra8MIc=; b=poFh0aaxcOPtTbPyj8FBsKCgDQYcasRngRaF0YVmyiw++cVTjNkA1EQqaEydQ7EaRj DcO5rHH7IYjjmw4jrQ7B2lG25VfZJI2JYlWcl4Lz9+c4O5LGI6GVdZkTpOpBs7aMZ38/ cCXcxffxAbj8Gy8J6APHENvR7uSRRv+d7bJQTaIzdaISivSTB6GI3GIsvxnwTSIrCYd8 qbgae1tHZIqCg0pX69E3d7U5OoATlwJHj4AsP8vr5iNsXZm8gcZ8X1A0bJPXkUIEqBAJ ac6R7ps5N/3bk/gqnGE1Vfmx3kQ47UTcLQdb8YZe5jrTRS7ALTfaNI0G3Gk2S/b9coKc wAoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=NwcWu3Dn; 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 go40si6993249ejc.141.2020.11.28.10.00.55; Sat, 28 Nov 2020 10:01:18 -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=NwcWu3Dn; 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 S1732135AbgK1AyN (ORCPT + 99 others); Fri, 27 Nov 2020 19:54:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731947AbgK1AwU (ORCPT ); Fri, 27 Nov 2020 19:52:20 -0500 Received: from mail-oi1-x261.google.com (mail-oi1-x261.google.com [IPv6:2607:f8b0:4864:20::261]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B7DDC0613D2 for ; Fri, 27 Nov 2020 16:45:32 -0800 (PST) Received: by mail-oi1-x261.google.com with SMTP id v202so7617956oia.9 for ; Fri, 27 Nov 2020 16:45:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=J/RUqOLrtG/yyp8LIFv88+rY6UY1ibdpQZmu4ra8MIc=; b=NwcWu3Dn+7J31LulCNEb8sfGRew7LV15BVccEBmzBPELzHoQ5PetqiagK3Qfu/Sn6A vHiKKWfgnUrCy+eYmTaBnJvuFMvzfU7Bta1y9gbIodIefPoJZ24Xs/JIiZL7ajtlvt7N Q1bT6Fsdn3l30EDxKo2oI1d1TSXF24SgUq/bo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=J/RUqOLrtG/yyp8LIFv88+rY6UY1ibdpQZmu4ra8MIc=; b=JT2iQkwFy6Dg5K6/lMhLZPNuiVv8x099PJPZ3vpMIHMs+5RS0XPLH8iRCMLjpnwFeJ N0WmSs9TTmHyC2TC7/mqobz2qDL+SbzBOL4HNEg41nLIwKDr1mbe+SKdXRjkJGzbzf1T onxGhX++jtI8XDT6ST10V9ILNYyI0ERyJB4FidS2QDRXoVWFvduxQ/7CqBq05C6iHW6F JJsyIVnkj/mvv270gLDY9JBTb/4akrgMrQAuttaSt0hE8A4VbFWD/hfZv/ulXEhjer6W ktK/xwyi6bVDpwJUk1OP0LNHtR2Z/LDvUhOtdFu9I9LLC8GGUA4jV2PrlIc/rWnlK6lN gW3w== X-Gm-Message-State: AOAM532XJ895sRfnhsxnFooTx39Bn+Gw709E0V8i9/eCuhmzeljj88Fs Pf/OCp22lVVUVbNmaYJHHrpmF9AClpCfAxeU3xJwELjXq+fT X-Received: by 2002:aca:f03:: with SMTP id 3mr7552629oip.92.1606524331466; Fri, 27 Nov 2020 16:45:31 -0800 (PST) Received: from lbrmn-lnxub113.broadcom.net ([192.19.228.250]) by smtp-relay.gmail.com with ESMTPS id v26sm1302459oth.8.2020.11.27.16.45.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2020 16:45:31 -0800 (PST) X-Relaying-Domain: broadcom.com From: Scott Branden To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, bruce.ashfield@gmail.com, Bruce Ashfield , Jason Wessel , Michal Marek , Scott Branden Subject: [PATCH] menuconfig,mconf-cfg: Allow specification of ncurses location Date: Fri, 27 Nov 2020 16:45:05 -0800 Message-Id: <20201128004505.27619-1-scott.branden@broadcom.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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