[PATCH] halloween candy for make mips/mips64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




For lazy fingers, this patch saves quite some typing when
you work on mips64.  It detects which arch you are working with
from .config if it is present.  Otherwise, it defaults to
mips.

Like this treat?

Jun

diff -Nru Makefile.orig Makefile
--- Makefile.orig	Wed Sep 11 05:44:23 2002
+++ Makefile	Thu Oct 31 11:02:47 2002
@@ -5,7 +5,7 @@
 
 KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
 
-ARCH = mips
+ARCH = $(shell echo mips`grep '^CONFIG_MIPS64=y$$' .config | sed -e 's/..*/64/'`)
 KERNELPATH=kernel-$(shell echo $(KERNELRELEASE) | sed -e "s/-//g")
 
 CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \

[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux