summaryrefslogtreecommitdiffstats
path: root/uClinux-2.4.20-uc1
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2011-04-19 12:00:32 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2011-04-19 12:00:32 (GMT)
commite6641efc1c9443f1698d1f1e3770cbf5de67dcb9 (patch)
treeba3471f3ef70ec2af243aa18ba0e92373f3a4ffd /uClinux-2.4.20-uc1
parentc9dd914d941ce4a1b0fa2001b2c3227f69ad3157 (diff)
downloadopenipcam-e6641efc1c9443f1698d1f1e3770cbf5de67dcb9.zip
openipcam-e6641efc1c9443f1698d1f1e3770cbf5de67dcb9.tar.gz
openipcam-e6641efc1c9443f1698d1f1e3770cbf5de67dcb9.tar.bz2
We do not want my personal specific version in the repository
Diffstat (limited to 'uClinux-2.4.20-uc1')
-rw-r--r--uClinux-2.4.20-uc1/Makefile9
1 files 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