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 cflags-$(CONFIG_CPU_H8300H) := -mh
12 ldflags-$(CONFIG_CPU_H8300H) := -mh8300helf_linux
13 cflags-$(CONFIG_CPU_H8S) := -ms
14 ldflags-$(CONFIG_CPU_H8S) := -mh8300self_linux
16 KBUILD_CFLAGS += $(cflags-y)
17 KBUILD_CFLAGS += -mint32 -fno-builtin
19 KBUILD_CFLAGS += -D__linux__
20 KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\"
21 KBUILD_AFLAGS += $(cflags-y)
22 LDFLAGS += $(ldflags-y)
24 CROSS_COMPILE := h8300-unknown-linux-
25 LIBGCC := $(shell $(CROSS-COMPILE)$(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
28 core-y += arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/ arch/$(ARCH)/boards/
30 head-y := arch/$(ARCH)/platform/$(PLATFORM)/$(BOARD)/crt0_$(MODEL).o
32 core-y += arch/$(ARCH)/kernel/ \
35 core-y += arch/$(ARCH)/platform/$(PLATFORM)/
39 libs-y += arch/$(ARCH)/lib/ $(LIBGCC)
41 boot := arch/h8300/boot
46 $(Q)$(MAKE) $(clean)=$(boot)
48 vmlinux.srec vmlinux.bin zImage: vmlinux
49 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
52 @echo 'vmlinux.bin - Create raw binary'
53 @echo 'vmlinux.srec - Create srec binary'
54 @echo 'zImage - Compressed kernel image'