Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v2.6.27-rc4 82 lines 2.4 kB view raw
1# 2# This file is subject to the terms and conditions of the GNU General Public 3# License. See the file "COPYING" in the main directory of this archive 4# for more details. 5# 6# Copyright (C) 2004-2006 Atmel Corporation. 7 8# Default target when executing plain make 9.PHONY: all 10all: uImage vmlinux.elf 11 12KBUILD_DEFCONFIG := atstk1002_defconfig 13 14KBUILD_CFLAGS += -pipe -fno-builtin -mno-pic 15KBUILD_AFLAGS += -mrelax -mno-pic 16CFLAGS_MODULE += -mno-relax 17LDFLAGS_vmlinux += --relax 18 19cpuflags-$(CONFIG_PLATFORM_AT32AP) += -march=ap 20 21KBUILD_CFLAGS += $(cpuflags-y) 22KBUILD_AFLAGS += $(cpuflags-y) 23 24CHECKFLAGS += -D__avr32__ -D__BIG_ENDIAN 25 26machine-$(CONFIG_PLATFORM_AT32AP) := at32ap 27machdirs := $(patsubst %,arch/avr32/mach-%/, $(machine-y)) 28 29KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs)) 30 31head-$(CONFIG_LOADER_U_BOOT) += arch/avr32/boot/u-boot/head.o 32head-y += arch/avr32/kernel/head.o 33core-y += $(machdirs) 34core-$(CONFIG_BOARD_ATSTK1000) += arch/avr32/boards/atstk1000/ 35core-$(CONFIG_BOARD_ATNGW100) += arch/avr32/boards/atngw100/ 36core-$(CONFIG_LOADER_U_BOOT) += arch/avr32/boot/u-boot/ 37core-y += arch/avr32/kernel/ 38core-y += arch/avr32/mm/ 39drivers-$(CONFIG_OPROFILE) += arch/avr32/oprofile/ 40libs-y += arch/avr32/lib/ 41 42CLEAN_FILES += include/asm-avr32/.arch include/asm-avr32/arch 43 44BOOT_TARGETS := vmlinux.elf vmlinux.bin uImage uImage.srec 45 46.PHONY: $(BOOT_TARGETS) install 47 48boot := arch/$(ARCH)/boot/images 49 50 KBUILD_IMAGE := $(boot)/uImage 51vmlinux.elf: KBUILD_IMAGE := $(boot)/vmlinux.elf 52vmlinux.cso: KBUILD_IMAGE := $(boot)/vmlinux.cso 53uImage.srec: KBUILD_IMAGE := $(boot)/uImage.srec 54uImage: KBUILD_IMAGE := $(boot)/uImage 55 56quiet_cmd_listing = LST $@ 57 cmd_listing = avr32-linux-objdump $(OBJDUMPFLAGS) -lS $< > $@ 58quiet_cmd_disasm = DIS $@ 59 cmd_disasm = avr32-linux-objdump $(OBJDUMPFLAGS) -d $< > $@ 60 61vmlinux.elf vmlinux.bin uImage.srec uImage vmlinux.cso: vmlinux 62 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ 63 64install: vmlinux 65 $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) $@ 66 67vmlinux.s: vmlinux 68 $(call if_changed,disasm) 69 70vmlinux.lst: vmlinux 71 $(call if_changed,listing) 72 73CLEAN_FILES += vmlinux.s vmlinux.lst 74 75archclean: 76 $(Q)$(MAKE) $(clean)=$(boot) 77 78define archhelp 79 @echo '* vmlinux.elf - ELF image with load address 0' 80 @echo ' vmlinux.cso - PathFinder CSO image' 81 @echo '* uImage - Create a bootable image for U-Boot' 82endef