]>
Commit | Line | Data |
---|---|---|
8dbdef22 YS |
1 | # |
2 | # arch/h8300/Makefile | |
3 | # | |
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. | |
7 | # | |
8 | # (C) Copyright 2002-2015 Yoshinori Sato <ysato@users.sourceforge.jp> | |
9 | # | |
10 | ||
7b291be8 RD |
11 | KBUILD_DEFCONFIG := edosk2674_defconfig |
12 | ||
8dbdef22 YS |
13 | cflags-$(CONFIG_CPU_H8300H) := -mh |
14 | aflags-$(CONFIG_CPU_H8300H) := -mh -Wa,--mach=h8300h | |
15 | ldflags-$(CONFIG_CPU_H8300H) := -mh8300helf_linux | |
16 | cflags-$(CONFIG_CPU_H8S) := -ms | |
17 | aflags-$(CONFIG_CPU_H8S) := -ms -Wa,--mach=h8300s | |
18 | ldflags-$(CONFIG_CPU_H8S) := -mh8300self_linux | |
19 | ||
20 | KBUILD_CFLAGS += $(cflags-y) | |
21 | KBUILD_CFLAGS += -mint32 -fno-builtin | |
22 | KBUILD_CFLAGS += -D__linux__ | |
23 | KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\" | |
24 | KBUILD_AFLAGS += $(aflags-y) | |
d503ac53 | 25 | KBUILD_LDFLAGS += $(ldflags-y) |
8dbdef22 | 26 | |
1b803a35 LVO |
27 | CHECKFLAGS += -msize-long |
28 | ||
3bc27cdf | 29 | ifeq ($(CROSS_COMPILE),) |
fc2b47b5 | 30 | CROSS_COMPILE := $(call cc-cross-prefix, h8300-unknown-linux- h8300-linux-) |
3bc27cdf | 31 | endif |
8dbdef22 | 32 | |
8dbdef22 YS |
33 | libs-y += arch/$(ARCH)/lib/ |
34 | ||
35 | boot := arch/h8300/boot | |
36 | ||
8dbdef22 YS |
37 | archclean: |
38 | $(Q)$(MAKE) $(clean)=$(boot) | |
39 | ||
40 | vmlinux.srec vmlinux.bin zImage uImage.bin: vmlinux | |
41 | $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ | |
42 | ||
43 | define archhelp | |
44 | @echo 'vmlinux.bin - Create raw binary' | |
45 | @echo 'vmlinux.srec - Create srec binary' | |
46 | @echo 'zImage - Compressed kernel image' | |
47 | endef |