Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756979AbcJSRHE (ORCPT ); Wed, 19 Oct 2016 13:07:04 -0400 Received: from mout.web.de ([217.72.192.78]:51243 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755473AbcJSRHB (ORCPT ); Wed, 19 Oct 2016 13:07:01 -0400 Subject: Re: Challenges around the usage of different "HOSTCFLAGS" for kernel build configuration and module generation To: Jim Davis References: <4f2251fc-94ee-41d3-cc03-a39cee5a084c@users.sourceforge.net> <1238ba8e-a297-6de5-2e6a-50e6e72e77d3@users.sourceforge.net> Cc: linux-kbuild@vger.kernel.org, Michal Marek , linux-kernel , kernel-janitors@vger.kernel.org From: SF Markus Elfring Message-ID: <4fe8b518-6145-5322-a852-beeb61abd559@users.sourceforge.net> Date: Wed, 19 Oct 2016 09:25:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:QtT4eceUcB6YKybQBIQeAgdh9B01zVB1Keku3DnG8zROTzn47JS gIHJEHfL0NXsn52Hd4665hrg24xKCPTszboxBfl/THhtu5IpPmjYmpAo8rIe/Kj4KZYC0YP BzdI6DH7s3cHDjesHuaL6OEjuihIH+rIeHsJPjzcaVPqTr/1xnVrzvJuzSEnEChvCwKWzLn qsbcfvwFgsDE5DzixO44w== X-UI-Out-Filterresults: notjunk:1;V01:K0:cGbtTv0PbO8=:Yf+7DpzR0ErIr9UAtgbE4q +oQeivadQ8NhalPhLwQX+LbaE+v97cf+bEddmmw4iDJrLM318q91DwoeGohQzhLsyK0v4Hxh8 N9mTaqW+J8yTGdRuiLdZH4xIyqp9TchJSpNVFXifjV46l7PZ8bhQRTFRvt8hcM2m+LR8euWcZ KL1MFm7HlgXo7XuZUyegmTFpK+B8R/7+xZ12Ub5ytoPoJvrdZfYNRzm76NaNpn0/QnZJdt4tQ dV8XTxoxQk4JdAy2K4+NTRa6jhUE46lnYyFxQ5qtN3kvKeCNYKXy4w0qmmLfg75vuTwi+dSmm YaXgbgbZZuye6CL/k01pWE8aDN3onhYPf8wMD2sweK5eHWePiCy/hOItgCEga8e1dwijPGby9 897ep3PQURxvZRFxz6rDrWZJInJ+0iKf2U7CpkOIKezvqyT3jVJqwXges5VhUrdanCRm61p9t uDhcCnU1aNYMts1e5q79HV4ffHCRly52h6wywTN+B+bGZ8gNlroZnIX/F5SyA51XiQyVEDEYn 5Wswjvl5iPbxyn0UyyLR5IU9yGq7Cr6iEPBOzXgST3TFdMB5iiNfVq6X/YNRioKAVKv5ThXyt yxiX0UOT4yeN8fbTWW3thBo8/oHxJbga9EjfT03HQ5s86SFcvM754DVSHxQTzo17LIAfLjAwr mAb+i4GwuC1ak9bdAUiMcikupeqF6AMpefAXlQOal+hEZinUkwuoos2O/L45RNFPLaGVWqwUt Wx7AJyyzpoXDv1E0au9qUcv/XLyupF/xaNUa3aOny/cVjZ6y7vb5/7QuX8joT52N9M728grdy RfRdv7I Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1727 Lines: 55 >> Can it be that the passing of the adjusted parameter "HOSTCFLAGS" has got a significant >> influence (with unwanted side effects) in this use case? > > That's probably it. If I strip down your advanced original example to just > > make defconfig > make HOSTCFLAGS=-S > > then I get a similar error: > > HOSTCC scripts/basic/fixdep > scripts/basic/fixdep: 1: scripts/basic/fixdep: .file: not found … > and so forth. Thanks that you could reproduce my observation also with a simple example on your test system. > The problem is that, with -S, fixdep isn't build as an executable: > > jim@krebstar:~/linux-next/scripts/basic$ file fixdep > fixdep: assembler source, ASCII text Are you interested that a software generation parameter like "-S" (for output of assembler source files) could be directly supported for a special build variant? * Does this issue indicate further development challenges? * How are the chances that the involved software dependencies can be handled better in more detail? > I'm guessing that in your original example you wanted to look at the > assembly output gcc produced; Yes. - I became interested in this use case once more. > you'd probably have better luck using objdump for that. This approach can occasionally work to some degree. I am looking for a better (or more convenient) solution. I got the impression that I need to put special build parameters into the make files directly so far while I would prefer to pass extra settings as command line arguments for the tool "make". Will it make sense to distinguish such parameters for development phases (or stages) like "kernel build configuration" and corresponding "module generation" any more? Regards, Markus