Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938760AbcJRQjC (ORCPT ); Tue, 18 Oct 2016 12:39:02 -0400 Received: from mout.web.de ([212.227.17.11]:57476 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938478AbcJRQis (ORCPT ); Tue, 18 Oct 2016 12:38:48 -0400 Subject: Re: Difficulties around "fixdep" for the usage of a kernel build output directory To: Jim Davis References: <4f2251fc-94ee-41d3-cc03-a39cee5a084c@users.sourceforge.net> Cc: linux-kbuild@vger.kernel.org, Michal Marek , linux-kernel From: SF Markus Elfring Message-ID: <1238ba8e-a297-6de5-2e6a-50e6e72e77d3@users.sourceforge.net> Date: Tue, 18 Oct 2016 18:38:22 +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:gs6e/ZO1CFkqtsZb7PxgNqMuxJ8qkJpiNBDLRBxtrORJXkFPeBd sS4YbaEATnFOua6k2qesh0ZlV2GGC5FyZcW9ziC9uO0U2EGmyHzHc+IFG2SXZe7b4tCVS3N m1ZB05ER8h66AICfq/DShIwemajmU2mfWo0Ida9Jehw6xzsa9nDmf+uPOGikXXyO79VChVa x0dttpAFLGUiJ1MZnhGhQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:77B6YXHmajE=:o0P9YoUL2lJGRu3EJRdSvL FNjputa6+ZsZBA1j8hHQhuucvcfQ+GuzohV0NdKFHs6bbGC1jP38RJaSZS5CW1Kg3lhJea8RE F+CbJLaUzUnAqlRC4iLVlDgkxYfRod1h0LG3/Y9NWS3F7opXV8ngBTcrsNyCIN/HzzjXgqPYA Y5pd3P4QFPhPkBVppFY1uhBqu6oXvO0cnCp2Dg8Pr3M3zawQOgG6/gfUkwjD5UxRVMD2P2m5I peOYhZaG6VX/qPwTQxOV++y42BGYdxQP6+VtcrTLE0PUC5tWOyv9Vc+jUe9NytC0VVSZTkurd UlyB0FizNcmvgG4b3qUU3FOj7h0tMJsD7IC8FmdontcrmGAuyFXjWyPb8jB6uCGhiEsR2vxym sEPuTEDQAJgwDZrISQenT0CAvdnzuZ6w83NV1a0kgdmaKimUXJ4wD+NxGUPMJMBv9++lYuMGN Ts47+DdLipaQvRDjg5Hv6kU7EriDL0BuOW5a3ijmJbr236YWut2zkk0UyRhgCDyicUHD5URdi EPWLroULR2+FL0KzIeaVjjgCDC1cvvNNmGoD+kITwxw1ZKtnQ6tx4FBkNiyUfiWfipkqWldbX yJHaGXaarlYPXsAOAwPqYkANZYTvbUIsiK5eeu7l2yTSx1EhD11agAwh5O9WHHZTnhgn93Hdk QGMAN4tDzFODmgFijKfEcRK9aEpBQI9e+rnt2Mue7619f/qYcAYYYj7BsJewjx38obsaFobUi jlTjlKS6ozwLnYzoyb7KZdPBZM2QUKTvrYSzkVzeJG+aVVSGEsKrr54fA4wswPnnO4IWAmvbc N3XpVjg Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1081 Lines: 28 >> 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 … > That's a very complicated command line. I find it "advanced". It shows a few of my imaginations around a specific software development task. > Does something basic, like > > make O=/tmp/$$ allmodconfig > make O=/tmp/$$ > > work for you? Not really. - I would like to achieve the automatic selection of a few compilation settings by a for loop which I reduced in the shown example to one element. I am looking for a "convenient" way to get assembler source files from the preferrred C compiler for some software build configurations. I hope that I can avoid the switching of compilation results in the source file directory hierarchy so that an occasional disassembly by a tool like "objdump" could be compared. Regards, Markus