# # arch/arm/boot/Makefile # # This file is subject to the terms and conditions of the GNU General Public # License. See the file "COPYING" in the main directory of this archive # for more details. # # RTL = $(shell cd ../../../;pwd) include $(RTL)/.config BOOTIMAGE = sa-rtl.img all: arm-elf-gcc -c start.S -o start.o # arm-linux-gcc -c boot.c -o boot.o ifdef CONFIG_ARM_SA1100 arm-elf-ld -Ttext 0xc0008000 start.o ../../../modules/*.o -o sa-rtl -static $(shell arm-elf-gcc -print-libgcc-file-name) endif ifdef CONFIG_ARM_PXA arm-elf-ld -Ttext 0xa0008000 start.o ../../../modules/*.o -o sa-rtl -static $(shell arm-elf-gcc -print-libgcc-file-name) endif arm-elf-objcopy -O binary -R .note -R .comment sa-rtl $(BOOTIMAGE) cp -f sa-rtl.img /boot clean: find . \( -name '*~' -o -name '*.o' -o -name core \) -exec /bin/rm -r '{}' \;