From patchwork Tue Jul 9 09:57:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Joonas_Kylm=C3=A4l=C3=A4?= X-Patchwork-Id: 11036783 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BD3DD1395 for ; Tue, 9 Jul 2019 09:58:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC36E2870D for ; Tue, 9 Jul 2019 09:58:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9DE2428715; Tue, 9 Jul 2019 09:58:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7CD292870D for ; Tue, 9 Jul 2019 09:58:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726683AbfGIJ6G (ORCPT ); Tue, 9 Jul 2019 05:58:06 -0400 Received: from mx1.riseup.net ([198.252.153.129]:46900 "EHLO mx1.riseup.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726679AbfGIJ6G (ORCPT ); Tue, 9 Jul 2019 05:58:06 -0400 Received: from capuchin.riseup.net (capuchin-pn.riseup.net [10.0.1.176]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id D92CF1A0249; Tue, 9 Jul 2019 02:58:04 -0700 (PDT) X-Riseup-User-ID: 077506A9166EDD611D1BDA0D2B4B64163B74DD2F9F782D635CDA95E7F337946F Received: from [127.0.0.1] (localhost [127.0.0.1]) by capuchin.riseup.net (Postfix) with ESMTPSA id 6B2681207E6; Tue, 9 Jul 2019 02:58:00 -0700 (PDT) To: Masahiro Yamada , Michal Marek Cc: linux-kbuild@vger.kernel.org, Denis 'GNUtoo' Carikli From: =?utf-8?q?Joonas_Kylm=C3=A4l=C3=A4?= Openpgp: preference=signencrypt Autocrypt: addr=joonas.kylmala@iki.fi; prefer-encrypt=mutual; keydata= mQINBFuAFyMBEACWAPtxMyFIyFCANHBamWWdV/TQ7OwGCjxv+18fxn88eMd5pwy9W00fbgQ1 Hj54wckednit7BcksxwKkf7BDBF3HfGP7hohD34nH3Njf6a37kJA4UqHAQceam96pI9Vmn8n DYJFRer4wMrBhED8tXSQvKYUHi2wc+imi9mBRYG6Bs1AU/W1Mr7vVK48GxUMlbyCqhSrijHB ObG/gK1cygOeguMDO1XJbcTvD0iu3OJpT04m0YJCJS1TBDdO4Ok81Cka1tGEdGQ5UUdzGM1e O+XMy3R8l+PjZm4v+tx7vkFQPkJLtm0m2Yl/BqLYQXso0vmwSv9vwfQagRkHMdNg4qhAUmIE AivEVkIjwq8L7T6O1+u5qeP4CocT8oeOjOgIJVxkC552JCTDlvY/VhAesZ1G14a0lg8KCwbi HuMIOoiuzs6qzLkI5FDlIjMJ9OAKwaE30IIYHvLws0EKb7g1R9jGm5SvhZ5EsAiZogh1bTxi VaN/XRMQQkyN/xoPen/JoW+9UWm7fSZZRZ+/EGfSwEQ9Wd+DYtiXO+jBTPPBlyhUd/2PjxuG rOb4yP/O2NnZ2ZHu/Qmk+OoqNA7WmEe4nQI82KF6E6c/ujbBMa+7QD58myTyXauTwIXBpk0V mywlH3BuMf4cq9ETWOvh9xNHSdk7Chc1SQK5tZElUy5LKWwWlwARAQABtChKb29uYXMgS3ls bcOk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LGjoz8VxwhKDPowPxN55kOaaPNcGk3siGVZls1xpRLDI9s XiiCs4cAT7o+5vz7GXv0gda5mH2H/v6S25nGxzoiinpcjeup8JJ9M64QC5CNVgg/rCgFwA2d GBofCExy51CODjqDmPQv1V18ofFpuY+Wujl9+n8VVcN801zSELtjoWKLgDMLMBzh7UrKi219 gKPkEg== Subject: Issue/Bug report: auto.conf not generated correctly when CROSS_COMPILE environment var set Message-ID: Date: Tue, 9 Jul 2019 12:57:57 +0300 MIME-Version: 1.0 Content-Language: en-US Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Masahiro and Michal, I'm having a build issue regarding auto.conf generation with the the latest master (commit 5ad18b2e60b7) plus this patch to use CONFIG_USB_FUNCTIONFS as built-in module: Here is a excerpt from my terminal so you can understand and reproduce the bug/issue easily: user@builder:~/linux$ export CROSS_COMPILE=arm-none-eabi- user@builder:~/linux$ export ARCH=arm user@builder:~/linux$ make mrproper && make clean && make imx_v6_v7_defconfig && rgrep USB_FUNCTIONFS | grep "auto.conf" CLEAN scripts/basic CLEAN scripts/kconfig CLEAN include/config include/generated CLEAN .config HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/confdata.o HOSTCC scripts/kconfig/expr.o LEX scripts/kconfig/lexer.lex.c YACC scripts/kconfig/parser.tab.h HOSTCC scripts/kconfig/lexer.lex.o YACC scripts/kconfig/parser.tab.c HOSTCC scripts/kconfig/parser.tab.o HOSTCC scripts/kconfig/preprocess.o HOSTCC scripts/kconfig/symbol.o HOSTLD scripts/kconfig/conf # # configuration written to .config # user@builder:~/linux$ make mrproper && make clean && make imx_v6_v7_defconfig && make syncconfig && rgrep USB_FUNCTIONFS | grep "auto.conf" CLEAN scripts/basic CLEAN scripts/kconfig CLEAN include/config include/generated CLEAN .config HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/confdata.o HOSTCC scripts/kconfig/expr.o LEX scripts/kconfig/lexer.lex.c YACC scripts/kconfig/parser.tab.h HOSTCC scripts/kconfig/lexer.lex.o YACC scripts/kconfig/parser.tab.c HOSTCC scripts/kconfig/parser.tab.o HOSTCC scripts/kconfig/preprocess.o HOSTCC scripts/kconfig/symbol.o HOSTLD scripts/kconfig/conf # # configuration written to .config # scripts/kconfig/conf --syncconfig Kconfig include/config/auto.conf:CONFIG_USB_FUNCTIONFS=y include/config/auto.conf:CONFIG_USB_FUNCTIONFS_GENERIC=y As we can see in the first build command run CONFIG_USB_FUNCTIONFS=y doesn't appear in the file include/config/auto.conf, it only appears after running "make syncconfig". Normally this is not a problem for me since for "make *_defconfig" I don't use CROSS_COMPILE in that step and I only use it in "make zImage". If I run "CROSS_COMPILE=xxxx make zImage" then I think syncconfig is triggered because in the "make *_defconfig" stage the compiler was different [1] and so I don't hit this issue with auto.conf not being generated correctly. Anyways, some projects like LineageOS set the CROSS_COMPILE variable even for "make *_defconfig" command (for reproducibility reasons I guess) so this issue exists there. And it is quite handy to just put to your shell profile "export CROSS_COMPILE=xxx" so one doesn't need to type it always. I'm using Debian 9 for compilation so I think the version of arm-none-eabi-gcc is 5.4.1 (debian package version 15:5.4.1+svn241155-1). As I understood, Denis (in CC) was able to reproduce this in Trisquel 8 with similar commands but slightly older kernel version 5.2rc7 plus some additional patches. [1] https://patchwork.kernel.org/patch/10507817/ -Joonas diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 8116648a8efd..228098c64c48 100644 --- a/arch/arm/configs/imx_v6_v7_defconfig +++ b/arch/arm/configs/imx_v6_v7_defconfig @@ -345,14 +345,7 @@ CONFIG_USB_CONFIGFS_F_MIDI=y CONFIG_USB_CONFIGFS_F_HID=y CONFIG_USB_CONFIGFS_F_UVC=y CONFIG_USB_CONFIGFS_F_PRINTER=y -CONFIG_USB_ZERO=m -CONFIG_USB_AUDIO=m -CONFIG_USB_ETH=m -CONFIG_USB_G_NCM=m -CONFIG_USB_GADGETFS=m -CONFIG_USB_FUNCTIONFS=m -CONFIG_USB_MASS_STORAGE=m -CONFIG_USB_G_SERIAL=m +CONFIG_USB_FUNCTIONFS=y CONFIG_MMC=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_PLTFM=y