2005-04-17 02:20:36 +04:00
#
# arch/h8300/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.
#
# (C) Copyright 2002,2003 Yoshinori Sato <ysato@users.sourceforge.jp>
#
platform-$(CONFIG_CPU_H8300H) := h8300h
platform-$(CONFIG_CPU_H8S) := h8s
PLATFORM := $( platform-y)
board-$(CONFIG_H8300H_GENERIC) := generic
board-$(CONFIG_H8300H_AKI3068NET) := aki3068net
board-$(CONFIG_H8300H_H8MAX) := h8max
board-$(CONFIG_H8300H_SIM) := generic
board-$(CONFIG_H8S_GENERIC) := generic
board-$(CONFIG_H8S_EDOSK2674) := edosk2674
board-$(CONFIG_H8S_SIM) := generic
BOARD := $( board-y)
model-$(CONFIG_RAMKERNEL) := ram
model-$(CONFIG_ROMKERNEL) := rom
MODEL := $( model-y)
cflags-$(CONFIG_CPU_H8300H) := -mh
ldflags-$(CONFIG_CPU_H8300H) := -mh8300helf
cflags-$(CONFIG_CPU_H8S) := -ms
ldflags-$(CONFIG_CPU_H8S) := -mh8300self
2007-10-15 00:21:35 +04:00
KBUILD_CFLAGS += $( cflags-y)
KBUILD_CFLAGS += -mint32 -fno-builtin
KBUILD_CFLAGS += -g
KBUILD_CFLAGS += -D__linux__
KBUILD_CFLAGS += -DUTS_SYSNAME= \" uClinux\"
2007-10-15 23:59:31 +04:00
KBUILD_AFLAGS += -DPLATFORM= $( PLATFORM) -DMODEL= $( MODEL) $( cflags-y)
2005-04-17 02:20:36 +04:00
LDFLAGS += $( ldflags-y)
CROSS_COMPILE = h8300-elf-
2007-10-15 00:21:35 +04:00
LIBGCC := $( shell $( CROSS-COMPILE) $( CC) $( KBUILD_CFLAGS) -print-libgcc-file-name)
2005-04-17 02:20:36 +04:00
2007-05-07 01:50:35 +04:00
head-y := arch/$( ARCH) /platform/$( PLATFORM) /$( BOARD) /crt0_$( MODEL) .o
2005-04-17 02:20:36 +04:00
core-y += arch/$( ARCH) /kernel/ \
arch/$( ARCH) /mm/
i f d e f P L A T F O R M
core-y += arch/$( ARCH) /platform/$( PLATFORM) / \
arch/$( ARCH) /platform/$( PLATFORM) /$( BOARD) /
e n d i f
libs-y += arch/$( ARCH) /lib/ $( LIBGCC)
boot := arch/h8300/boot
export MODEL PLATFORM BOARD
archmrproper :
archclean :
$( Q) $( MAKE) $( clean) = $( boot)
2007-07-16 10:38:35 +04:00
vmlinux.srec vmlinux.bin zImage : vmlinux
2005-04-17 02:20:36 +04:00
$( Q) $( MAKE) $( build) = $( boot) $( boot) /$@
d e f i n e a r c h h e l p
2007-07-16 10:38:35 +04:00
@echo 'vmlinux.bin - Create raw binary'
@echo 'vmlinux.srec - Create srec binary'
@echo 'zImage - Compressed kernel image'
2005-04-17 02:20:36 +04:00
e n d e f