On Sat, Sep 19, 2009 at 05:19:50AM -0700, Roland McGrath wrote: > > One thing I'd thought to do in "finishing it up" was to write just the > $ARCH string alone to kernel.arch (then needing a kernel.subarch too) > rather than a makefile fragment. My thinking is that any scripty things > that would like to look at a given build dir (as in the installed > /lib/modules/foo/build in kernel-devel packages) would like to extract > the arch name as well as the kernel release string, and not necessarily > do it by running make or parsing makeish assignment lines. Another approach would be to ask kbuild for this information so we do not expose various filenames to the outer world. Somthing like this: diff --git a/Makefile b/Makefile index c41035a..8f488c9 100644 --- a/Makefile +++ b/Makefile @@ -1528,6 +1523,12 @@ kernelrelease: kernelversion: @echo $(KERNELVERSION) +kernelarch: + @echo $(ARCH) + +kernelsubarch: + @echo $(SUBARCH) + # Single targets # --------------------------------------------------------------------------- # Single targets are compatible with: This is analogous to the way we ask for kernelrelease and kernelversion these days. Sam -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html