[PATCH] VIDEO_SAA7134 must depend on SOUND
[linux-2.6/mini2440.git] / arch / h8300 / Makefile
blobc9b80cffd71d5309c79747518de03190682a04a2
2 # arch/h8300/Makefile
4 # This file is subject to the terms and conditions of the GNU General Public
5 # License. See the file "COPYING" in the main directory of this archive
6 # for more details.
8 # (C) Copyright 2002,2003 Yoshinori Sato <ysato@users.sourceforge.jp>
11 platform-$(CONFIG_CPU_H8300H) := h8300h
12 platform-$(CONFIG_CPU_H8S) := h8s
13 PLATFORM := $(platform-y)
15 board-$(CONFIG_H8300H_GENERIC) := generic
16 board-$(CONFIG_H8300H_AKI3068NET) := aki3068net
17 board-$(CONFIG_H8300H_H8MAX) := h8max
18 board-$(CONFIG_H8300H_SIM) := generic
19 board-$(CONFIG_H8S_GENERIC) := generic
20 board-$(CONFIG_H8S_EDOSK2674) := edosk2674
21 board-$(CONFIG_H8S_SIM) := generic
22 BOARD := $(board-y)
24 model-$(CONFIG_RAMKERNEL) := ram
25 model-$(CONFIG_ROMKERNEL) := rom
26 MODEL := $(model-y)
28 cflags-$(CONFIG_CPU_H8300H) := -mh
29 ldflags-$(CONFIG_CPU_H8300H) := -mh8300helf
30 cflags-$(CONFIG_CPU_H8S) := -ms
31 ldflags-$(CONFIG_CPU_H8S) := -mh8300self
33 CFLAGS += $(cflags-y)
34 CFLAGS += -mint32 -fno-builtin
35 CFLAGS += -g
36 CFLAGS += -D__linux__
37 CFLAGS += -DUTS_SYSNAME=\"uClinux\"
38 AFLAGS += -DPLATFORM=$(PLATFORM) -DMODEL=$(MODEL) $(cflags-y)
39 LDFLAGS += $(ldflags-y)
41 CROSS_COMPILE = h8300-elf-
42 LIBGCC := $(shell $(CROSS-COMPILE)$(CC) $(CFLAGS) -print-libgcc-file-name)
44 head-y := arch/$(ARCH)/platform/$(platform-y)/$(board-y)/crt0_$(model-y).o
46 core-y += arch/$(ARCH)/kernel/ \
47 arch/$(ARCH)/mm/
48 ifdef PLATFORM
49 core-y += arch/$(ARCH)/platform/$(PLATFORM)/ \
50 arch/$(ARCH)/platform/$(PLATFORM)/$(BOARD)/
51 endif
53 libs-y += arch/$(ARCH)/lib/ $(LIBGCC)
55 boot := arch/h8300/boot
57 export MODEL PLATFORM BOARD
59 archmrproper:
61 archclean:
62 $(Q)$(MAKE) $(clean)=$(boot)
64 prepare: include/asm-$(ARCH)/asm-offsets.h
66 include/asm-$(ARCH)/asm-offsets.h: arch/$(ARCH)/kernel/asm-offsets.s \
67 include/asm include/linux/version.h
68 $(call filechk,gen-asm-offsets)
70 vmlinux.srec vmlinux.bin: vmlinux
71 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
73 define archhelp
74 echo 'vmlinux.bin - Create raw binary'
75 echo 'vmlinux.srec - Create srec binary'
76 endef
78 CLEAN_FILES += include/asm-$(ARCH)/asm-offsets.h