From e6641efc1c9443f1698d1f1e3770cbf5de67dcb9 Mon Sep 17 00:00:00 2001 From: Oliver Schinagl Date: Tue, 19 Apr 2011 12:00:32 +0000 Subject: We do not want my personal specific version in the repository --- uClinux-2.4.20-uc1/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/uClinux-2.4.20-uc1/Makefile b/uClinux-2.4.20-uc1/Makefile index 13aa4a2..a91c787 100644 --- a/uClinux-2.4.20-uc1/Makefile +++ b/uClinux-2.4.20-uc1/Makefile @@ -5,11 +5,14 @@ EXTRAVERSION = -uc1 KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) -ARCH := armnommu +# ARCH := armnommu # ARCH := m68knommu # ARCH := h8300 # ARCH := niosnommu +ifndef ARCH +ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/) +endif KERNELPATH=kernel-$(shell echo $(KERNELRELEASE) | sed -e "s/-//g") CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ @@ -24,7 +27,7 @@ HOSTCC = unset GCC_EXEC_PREFIX; gcc HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer # CROSS_COMPILE = m68k-elf- -CROSS_COMPILE = arm-elf- +# CROSS_COMPILE = arm-elf- # CROSS_COMPILE = h8300-elf- # CROSS_COMPILE = nios-elf- ifndef CROSS_COMPILE @@ -321,8 +324,6 @@ $(LINUX): include/linux/version.h $(CONFIGURATION) init/main.o init/version.o in --end-group \ -o $(LINUX) $(NM) $(LINUX) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map - rm -f linux.bin - arm-elf-objcopy -I elf32-littlearm -O binary linux linux.bin symlinks: rm -f include/asm -- cgit v0.12