mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 01:10:28 +00:00
dd5e1339e5
The Hammerhead platform is built around a AVR32 32-bit microcontroller from Atmel. It offers versatile peripherals, such as ethernet, usb device, usb host etc. The board also incooperates a power supply and is a Power over Ethernet (PoE) Powered Device (PD). Additonally, a Cyclone III FPGA from Altera is integrated on the board. The FPGA is mapped into the 32-bit AVR memory bus. The FPGA offers two DDR2 SDRAM interfaces, which will cover even the most exceptional need of memory bandwidth. Together with the onboard video decoder the board is ready for video processing. This patch does include the basic support for the fpga device driver, but not the device driver itself. Signed-off-by: Alex Raimondi <mailinglist@miromico.ch> Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
86 lines
2.6 KiB
Makefile
86 lines
2.6 KiB
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.
|
|
#
|
|
# Copyright (C) 2004-2006 Atmel Corporation.
|
|
|
|
# Default target when executing plain make
|
|
.PHONY: all
|
|
all: uImage vmlinux.elf
|
|
|
|
KBUILD_DEFCONFIG := atstk1002_defconfig
|
|
|
|
KBUILD_CFLAGS += -pipe -fno-builtin -mno-pic
|
|
KBUILD_AFLAGS += -mrelax -mno-pic
|
|
CFLAGS_MODULE += -mno-relax
|
|
LDFLAGS_vmlinux += --relax
|
|
|
|
cpuflags-$(CONFIG_PLATFORM_AT32AP) += -march=ap
|
|
|
|
KBUILD_CFLAGS += $(cpuflags-y)
|
|
KBUILD_AFLAGS += $(cpuflags-y)
|
|
|
|
CHECKFLAGS += -D__avr32__ -D__BIG_ENDIAN
|
|
|
|
machine-$(CONFIG_PLATFORM_AT32AP) := at32ap
|
|
machdirs := $(patsubst %,arch/avr32/mach-%/, $(machine-y))
|
|
|
|
KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs))
|
|
|
|
head-$(CONFIG_LOADER_U_BOOT) += arch/avr32/boot/u-boot/head.o
|
|
head-y += arch/avr32/kernel/head.o
|
|
core-y += $(machdirs)
|
|
core-$(CONFIG_BOARD_ATSTK1000) += arch/avr32/boards/atstk1000/
|
|
core-$(CONFIG_BOARD_ATNGW100) += arch/avr32/boards/atngw100/
|
|
core-$(CONFIG_BOARD_HAMMERHEAD) += arch/avr32/boards/hammerhead/
|
|
core-$(CONFIG_BOARD_FAVR_32) += arch/avr32/boards/favr-32/
|
|
core-$(CONFIG_BOARD_MIMC200) += arch/avr32/boards/mimc200/
|
|
core-$(CONFIG_LOADER_U_BOOT) += arch/avr32/boot/u-boot/
|
|
core-y += arch/avr32/kernel/
|
|
core-y += arch/avr32/mm/
|
|
drivers-$(CONFIG_OPROFILE) += arch/avr32/oprofile/
|
|
libs-y += arch/avr32/lib/
|
|
|
|
CLEAN_FILES += include/asm-avr32/.arch include/asm-avr32/arch
|
|
|
|
BOOT_TARGETS := vmlinux.elf vmlinux.bin uImage uImage.srec
|
|
|
|
.PHONY: $(BOOT_TARGETS) install
|
|
|
|
boot := arch/$(ARCH)/boot/images
|
|
|
|
KBUILD_IMAGE := $(boot)/uImage
|
|
vmlinux.elf: KBUILD_IMAGE := $(boot)/vmlinux.elf
|
|
vmlinux.cso: KBUILD_IMAGE := $(boot)/vmlinux.cso
|
|
uImage.srec: KBUILD_IMAGE := $(boot)/uImage.srec
|
|
uImage: KBUILD_IMAGE := $(boot)/uImage
|
|
|
|
quiet_cmd_listing = LST $@
|
|
cmd_listing = avr32-linux-objdump $(OBJDUMPFLAGS) -lS $< > $@
|
|
quiet_cmd_disasm = DIS $@
|
|
cmd_disasm = avr32-linux-objdump $(OBJDUMPFLAGS) -d $< > $@
|
|
|
|
vmlinux.elf vmlinux.bin uImage.srec uImage vmlinux.cso: vmlinux
|
|
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
|
|
|
|
install: vmlinux
|
|
$(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) $@
|
|
|
|
vmlinux.s: vmlinux
|
|
$(call if_changed,disasm)
|
|
|
|
vmlinux.lst: vmlinux
|
|
$(call if_changed,listing)
|
|
|
|
CLEAN_FILES += vmlinux.s vmlinux.lst
|
|
|
|
archclean:
|
|
$(Q)$(MAKE) $(clean)=$(boot)
|
|
|
|
define archhelp
|
|
@echo '* vmlinux.elf - ELF image with load address 0'
|
|
@echo ' vmlinux.cso - PathFinder CSO image'
|
|
@echo '* uImage - Create a bootable image for U-Boot'
|
|
endef
|