How about using this: ASTMP := $(if $(KBUILD_EXTMOD),$(firstword $(KBUILD_EXTMOD))/)astest$$$$.out This is also used in the Makefile in the source tree top-level directory (see line 332) If KBUILD_EXTMOD is used, temp files are created in the module's source directory, otherwise in the kernel source top-level directory Jan Peter - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: [PATCH -mm] replacement for broken kbuild-dont-put-temp-files-in-the-source-tree.patch
- From: Horst Schirmeier <[email protected]>
- Re: [PATCH -mm] replacement for broken kbuild-dont-put-temp-files-in-the-source-tree.patch
- From: Oleg Verych <[email protected]>
- Re: [PATCH -mm] replacement for broken kbuild-dont-put-temp-files-in-the-source-tree.patch
- From: Horst Schirmeier <[email protected]>
- Re: [PATCH -mm] replacement for broken kbuild-dont-put-temp-files-in-the-source-tree.patch
- From: Andi Kleen <[email protected]>
- Re: [PATCH -mm] replacement for broken kbuild-dont-put-temp-files-in-the-source-tree.patch
- From: Horst Schirmeier <[email protected]>
- Re: [PATCH -mm] replacement for broken kbuild-dont-put-temp-files-in-the-source-tree.patch
- From: Oleg Verych <[email protected]>
- Re: [PATCH -mm] replacement for broken kbuild-dont-put-temp-files-in-the-source-tree.patch
- Prev by Date: Re: unchecked_isa_dma and BusLogic SCSI controller
- Next by Date: [PATCH] spufs: always map local store non-guarded
- Previous by thread: Re: [PATCH -mm] replacement for broken kbuild-dont-put-temp-files-in-the-source-tree.patch
- Next by thread: kbuild: O= with M= (Re: [PATCH -mm] replacement for broken kbuild-dont-put-temp-files-in-the-source-tree.patch)
- Index(es):