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
8 # (C) Copyright 2002,2003 Yoshinori Sato <ysato@users.sourceforge.jp>
11 -include $(TOPDIR
)/.config
14 platform-
$(CONFIG_CPU_H8300H
) := h8300h
15 platform-
$(CONFIG_CPU_H8S
) := h8s
16 PLATFORM
:= $(platform-y
)
18 board-
$(CONFIG_H8300H_GENERIC
) := generic
19 board-
$(CONFIG_H8300H_AKI3068NET
) := aki3068net
20 board-
$(CONFIG_H8300H_H8MAX
) := h8max
21 board-
$(CONFIG_H8300H_SIM
) := generic
22 board-
$(CONFIG_H8S_GENERIC
) := generic
23 board-
$(CONFIG_H8S_EDOSK2674
) := edosk2674
24 board-
$(CONFIG_H8S_SIM
) := generic
27 model-
$(CONFIG_RAMKERNEL
) := ram
28 model-
$(CONFIG_ROMKERNEL
) := rom
31 cflags-
$(CONFIG_CPU_H8300H
) := -mh
32 ldflags-
$(CONFIG_CPU_H8300H
) := -mh8300helf
33 cflags-
$(CONFIG_CPU_H8S
) := -ms
34 ldflags-
$(CONFIG_CPU_H8S
) := -mh8300self
37 CFLAGS
+= -mint32
-fno-builtin
40 CFLAGS
+= -DUTS_SYSNAME
=\"uClinux
\"
41 AFLAGS
+= -DPLATFORM
=$(PLATFORM
) -DMODEL
=$(MODEL
) $(cflags-y
)
42 LDFLAGS
+= $(ldflags-y
)
44 CROSS_COMPILE
= h8300-elf-
45 LIBGCC
:= $(shell $(CROSS-COMPILE
)$(CC
) $(CFLAGS
) -print-libgcc-file-name
)
47 head-y
:= arch
/$(ARCH
)/platform
/$(platform-y
)/$(board-y
)/crt0_
$(model-y
).o
49 core-y
+= arch
/$(ARCH
)/kernel
/ \
51 arch
/$(ARCH
)/platform
/$(PLATFORM
)/ \
52 arch
/$(ARCH
)/platform
/$(PLATFORM
)/$(BOARD
)/
54 libs-y
+= arch
/$(ARCH
)/lib
/ $(LIBGCC
)
56 boot
:= arch
/h8300
/boot
58 export MODEL PLATFORM BOARD
63 $(Q
)$(MAKE
) $(clean)=$(boot
)
65 prepare
: include/asm-
$(ARCH
)/asm-offsets.h
67 include/asm-
$(ARCH
)/asm-offsets.h
: arch
/$(ARCH
)/kernel
/asm-offsets.s \
68 include/asm
include/linux
/version.h
69 $(call filechk
,gen-asm-offsets
)
71 vmlinux.srec vmlinux.bin
: vmlinux
72 $(Q
)$(MAKE
) $(build
)=$(boot
) $(boot
)/$@
75 echo
'vmlinux.bin - Create raw binary'
76 echo
'vmlinux.srec - Create srec binary'
79 CLEAN_FILES
+= include/asm-
$(ARCH
)/asm-offsets.h