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)
27 core-y += arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/ arch/$(ARCH)/boards/
29 libs-y += arch/$(ARCH)/lib/ $(LIBGCC)
31 boot := arch/h8300/boot
36 $(Q)$(MAKE) $(clean)=$(boot)
38 vmlinux.srec vmlinux.bin zImage: vmlinux
39 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
42 @echo 'vmlinux.bin - Create raw binary'
43 @echo 'vmlinux.srec - Create srec binary'
44 @echo 'zImage - Compressed kernel image'