[PATCH] preserve ARCH and CROSS_COMPILE in the build directory generated Makefile

From: Pavel Pisa (pisa_at_cmp.felk.cvut.cz)
Date: 04/29/05

  • Next message: James.Smart_at_Emulex.Com: "RE: Emulex fibre channel HBA support and SAN connection"
    To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, kai@germaschewski.name, sam@ravnborg.org
    Date:	Fri, 29 Apr 2005 13:35:33 +0200
    
    

    This patch ensures, that architecture and target cross-tools prefix
    is preserved in the Makefile generated in the build directory for
    out of source tree kernel compilation. This prevents accidental
    screwing of configuration and builds for the case, that make without
    full architecture specific options is invoked in the build
    directory. It is secure use accustomed "make", "make xconfig",
    etc. without fear and special care now.

    Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>

    Index: linux-2.6.11.5/scripts/mkmakefile
    ===================================================================
    --- linux-2.6.11.5.orig/scripts/mkmakefile
    +++ linux-2.6.11.5/scripts/mkmakefile
    @@ -29,3 +29,9 @@ all:
     
     EOF
     
    +if [ -n "${ARCH}" ] ; then
    + echo "ARCH ?= ${ARCH}"
    +fi
    +if [ -n "${CROSS_COMPILE}" ] ; then
    + echo "CROSS_COMPILE ?= ${CROSS_COMPILE}"
    +fi

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: James.Smart_at_Emulex.Com: "RE: Emulex fibre channel HBA support and SAN connection"

    Relevant Pages

    • RE: a 15 GB file on tmpfs
      ... > That should be no problem on a 64 bit architecture. ... Please read the FAQ at http://www.tux.org/lkml/ ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
      (Linux-Kernel)
    • Re: [PATCH] 2.4.22pre10: {,un}likely_p() macros for pointers
      ... >> Well, I'm not sure about the polarity, but that unlikelymacro isn't ... architecture where there's a pointer type larger than long, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] generic irq subsystem: ppc64 port
      ... >> I still like the idea of the patch, so it would be useful if you added ... >> architecture can provide it's own. ... > generic IRQ code and just provide a way to switch between 1:1 mapped and ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: List of oversized inlines
      ... > on sizes on one architecture. ... style inlines. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] cross-sparse
      ... > After hacking the include paths in the sparse sources, ... supposed to _care_ about the architecture. ... Especially not for a kernel ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)