Skip to contentSkip to conversation

halloween candy for make mips/mips64

PATCH New Jun Sun 1 participant 1 message Oct 31, 2002

Subsystems (2)
lore
Share & tools
lore

Jun Sun

author
#0 lore raw

PATCH 1/1 halloween candy for make mips/mips64

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

Makefile renamed from Makefile.orig +1 -1
diff -Nru Makefile.orig Makefile
@@ -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; \