Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 8EC58E009B2; Tue, 28 Aug 2018 00:43:24 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (schnitzeltony[at]gmail.com) * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [74.125.82.41 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -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 Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id EEF10E00953 for ; Tue, 28 Aug 2018 00:43:23 -0700 (PDT) Received: by mail-wm0-f41.google.com with SMTP id 207-v6so872322wme.5 for ; Tue, 28 Aug 2018 00:43:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=WjFbCeH2JC5idJhbaFoWsmojCa21R8G5SYRbGy5sXNE=; b=nKPiOrPRQDFIkJi1wl1MmdLkdgJ7XjK3kM3oLHPEBdiLeQfQjMe6oXDgWodo2NaFAg GTKj1cXt3CPSZUmVFI0aCK0YMBuXRWqA7IEA+EQAHsQoB1ad4jz7CQoTqMC9PEdJmJ9j q2jfu3UpTsRP27ruQMqVswptLDaFs07n8rFnsH7WYa79TqW0kgXVymJVysGCySxx1Bmi db5KDVTarznNhGjYZUFPMJMBDCJ7cqJE0qZ0IwI/OB20+Qp1NpqsEqg/uicOLX9zP+/n yJwO4T5odOZ0Mf8pDEYQkecPtIpd0fJQvZCnkqVAM2HP+LB2XT6mkOnmRs4iavwOgs3M nJyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WjFbCeH2JC5idJhbaFoWsmojCa21R8G5SYRbGy5sXNE=; b=RAigcFC1Zi7EQDJ0TwcF6JDV8SNf+QaQQKKhyVOBsVqLMGoM1oNY0iJzcX1t+6DGoa KoBaqAP6/Oi/UGb/QrM8ll8RdGt51l7jtVZWNotTHzxX5hHTd0TQOQpkx4YZkUR/gZHi xV2UTr+HRifz1sSDMaJM6rxI0TMzxow/hICV8AuwYaphHJKNUCPOPPWS1m+YlroYbEp1 YYDMfAWSFahm3oSHfdEpP/jrY9FPEn+1qGHivQak/tChP/spPidCZc8NErv20CXHXTdy E9kBoxHg1jfbG1bZJWG4KGpkSNW1E2FEJ9MoOX9KvHqnR4v26XmPrOYMRqKUo3KmfiKd T7+w== X-Gm-Message-State: APzg51BbnjkLg5UvDcc5icocSujt+e+zu2EHCVftwelODmI+4EfyBMen GoHFhi/MCwvhUfLvef6l8UqILDwt X-Google-Smtp-Source: ANB0Vda6d5kAQQfPpe8NNF4mAfafeOjtUdOv7DKpZmOypCdvOUnYpPCTvAG9P1X2bdkc0FG2LAZNjw== X-Received: by 2002:a1c:7e92:: with SMTP id z140-v6mr528540wmc.48.1535442202502; Tue, 28 Aug 2018 00:43:22 -0700 (PDT) Received: from mueller-a-nb-linux.zera.local (p509737a3.dip0.t-ipconnect.de. [80.151.55.163]) by smtp.gmail.com with ESMTPSA id u7-v6sm924182wmd.46.2018.08.28.00.43.21 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Aug 2018 00:43:21 -0700 (PDT) From: =?UTF-8?q?Andreas=20M=C3=BCller?= To: meta-freescale@yoctoproject.org Date: Tue, 28 Aug 2018 09:43:03 +0200 Message-Id: <20180828074303.23507-4-schnitzeltony@gmail.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180828074303.23507-1-schnitzeltony@gmail.com> References: <20180828074303.23507-1-schnitzeltony@gmail.com> MIME-Version: 1.0 Subject: [PATCH 4/4] Fix menuconfig for our kernels X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Aug 2018 07:43:24 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * See discussion at [1] * Tested for linux-fslc [1] http://lists.openembedded.org/pipermail/openembedded-core/2018-April/149912.html Signed-off-by: Andreas Müller --- ...check-lxdiaglog.sh-Allow-specification-of.patch | 63 ++++++++++++++++++++++ recipes-kernel/linux/linux-imx.inc | 1 + 2 files changed, 64 insertions(+) create mode 100644 recipes-kernel/linux/files/0001-menuconfig-check-lxdiaglog.sh-Allow-specification-of.patch diff --git a/recipes-kernel/linux/files/0001-menuconfig-check-lxdiaglog.sh-Allow-specification-of.patch b/recipes-kernel/linux/files/0001-menuconfig-check-lxdiaglog.sh-Allow-specification-of.patch new file mode 100644 index 00000000..bc806c05 --- /dev/null +++ b/recipes-kernel/linux/files/0001-menuconfig-check-lxdiaglog.sh-Allow-specification-of.patch @@ -0,0 +1,63 @@ +From e6ebc8e654bba53f28af5229a1069fc74fa58b7b Mon Sep 17 00:00:00 2001 +From: Jason Wessel +Date: Thu, 25 Sep 2014 11:26:49 -0700 +Subject: [PATCH] menuconfig,check-lxdiaglog.sh: Allow specification of ncurses + location + +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. + +Upstream-Status: submitted [https://lkml.org/lkml/2013/3/3/103] + +Signed-off-by: Jason Wessel +cc: Michal Marek +cc: linux-kbuild@vger.kernel.org +Signed-off-by: Bruce Ashfield +Signed-off-by: California Sullivan +--- + scripts/kconfig/lxdialog/check-lxdialog.sh | 8 ++++++++ + 1 file changed, 8 insertions(+) + mode change 100755 => 100644 scripts/kconfig/lxdialog/check-lxdialog.sh + +diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh +old mode 100755 +new mode 100644 +index 5075ebf2d3b9..ba9242101190 +--- a/scripts/kconfig/lxdialog/check-lxdialog.sh ++++ b/scripts/kconfig/lxdialog/check-lxdialog.sh +@@ -4,6 +4,10 @@ + # What library to link + ldflags() + { ++ if [ "$CROSS_CURSES_LIB" != "" ]; then ++ echo "$CROSS_CURSES_LIB" ++ exit ++ fi + pkg-config --libs ncursesw 2>/dev/null && exit + pkg-config --libs ncurses 2>/dev/null && exit + for ext in so a dll.a dylib ; do +@@ -21,6 +25,10 @@ ldflags() + # Where is ncurses.h? + ccflags() + { ++ if [ x"$CROSS_CURSES_INC" != x ]; then ++ echo "$CROSS_CURSES_INC" ++ exit ++ fi + if pkg-config --cflags ncursesw 2>/dev/null; then + echo '-DCURSES_LOC="" -DNCURSES_WIDECHAR=1' + elif pkg-config --cflags ncurses 2>/dev/null; then +-- +2.14.3 + + diff --git a/recipes-kernel/linux/linux-imx.inc b/recipes-kernel/linux/linux-imx.inc index 9a8a035f..f6d5374f 100644 --- a/recipes-kernel/linux/linux-imx.inc +++ b/recipes-kernel/linux/linux-imx.inc @@ -13,6 +13,7 @@ SRCBRANCH ?= "" SRC_URI = "git://source.codeaurora.org/external/imx/linux-imx;protocol=https;branch=${SRCBRANCH} \ file://defconfig \ + file://0001-menuconfig-check-lxdiaglog.sh-Allow-specification-of.patch \ " S = "${WORKDIR}/git" -- 2.14.4