summaryrefslogtreecommitdiffstats
path: root/uClinux-2.4.20-uc1/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'uClinux-2.4.20-uc1/Makefile')
-rw-r--r--uClinux-2.4.20-uc1/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/uClinux-2.4.20-uc1/Makefile b/uClinux-2.4.20-uc1/Makefile
index a91c787..13aa4a2 100644
--- a/uClinux-2.4.20-uc1/Makefile
+++ b/uClinux-2.4.20-uc1/Makefile
@@ -5,14 +5,11 @@ 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; \
@@ -27,7 +24,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
@@ -324,6 +321,8 @@ $(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