Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758512AbcJRPND (ORCPT ); Tue, 18 Oct 2016 11:13:03 -0400 Received: from mail-io0-f181.google.com ([209.85.223.181]:35135 "EHLO mail-io0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754618AbcJRPM4 (ORCPT ); Tue, 18 Oct 2016 11:12:56 -0400 MIME-Version: 1.0 In-Reply-To: <4f2251fc-94ee-41d3-cc03-a39cee5a084c@users.sourceforge.net> References: <4f2251fc-94ee-41d3-cc03-a39cee5a084c@users.sourceforge.net> From: Jim Davis Date: Tue, 18 Oct 2016 08:12:55 -0700 Message-ID: Subject: Re: Difficulties around "fixdep" for the usage of a kernel build output directory To: SF Markus Elfring Cc: linux-kbuild@vger.kernel.org, Michal Marek , linux-kernel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id u9IFD7KV011315 Content-Length: 1811 Lines: 45 On Tue, Oct 18, 2016 at 6:54 AM, SF Markus Elfring wrote: > Hello, > > The file "README" contains a section "BUILD directory for the kernel". > I would like to use the functionality which is described there. > > One of my commands for such a build try is working as desired. > > > elfring@Sonne:~/Projekte/Linux/next-patched> git checkout next-20161014 && my_off=-O0 && for X in off; do my_output_dir=${my_build_dir}unchanged/optimisation/${X} && my_var="my_${X}" && my_parameters="-Wall -std=gnu89 -fomit-frame-pointer ${!my_var}" && make O="${my_output_dir}" HOSTCC='/usr/bin/gcc-6' HOSTCFLAGS="${my_parameters}" allmodconfig; done > … > # > # configuration written to .config > # > > > I stumble on the following messages for another build command. > > > elfring@Sonne:~/Projekte/Linux/next-patched> my_off=-O0 && for X in off; do my_output_dir=${my_build_dir}unchanged/optimisation/${X} && my_var="my_${X}" && my_parameters="-Wall -std=gnu89 -fomit-frame-pointer ${!my_var}" && LANG=C make V=2 O="${my_output_dir}" HOSTCC='/usr/bin/gcc-6' HOSTCFLAGS="-S ${my_parameters}" drivers/md/; done > make[1]: Entering directory … > HOSTCC scripts/basic/fixdep - due to command line change > scripts/basic/fixdep: line 1: .file: command not found > scripts/basic/fixdep: line 2: .comm: command not found > … > scripts/basic/fixdep: line 6: .section: command not found > scripts/basic/fixdep: line 7: .align: command not found > scripts/basic/fixdep: line 8: .LC0:: command not found > scripts/basic/fixdep: line 9: .string: command not found > … > > > I wonder why this approach does not work so far. > I would appreciate your advices. That's a very complicated command line. Does something basic, like make O=/tmp/$$ allmodconfig make O=/tmp/$$ work for you? -- Jim