18c2ecf20Sopenharmony_ci#
28c2ecf20Sopenharmony_ci# arch/h8300/Makefile
38c2ecf20Sopenharmony_ci#
48c2ecf20Sopenharmony_ci# This file is subject to the terms and conditions of the GNU General Public
58c2ecf20Sopenharmony_ci# License.  See the file "COPYING" in the main directory of this archive
68c2ecf20Sopenharmony_ci# for more details.
78c2ecf20Sopenharmony_ci#
88c2ecf20Sopenharmony_ci# (C) Copyright 2002-2015 Yoshinori Sato <ysato@users.sourceforge.jp>
98c2ecf20Sopenharmony_ci#
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ciKBUILD_DEFCONFIG := edosk2674_defconfig
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_cicflags-$(CONFIG_CPU_H8300H)	:= -mh
148c2ecf20Sopenharmony_ciaflags-$(CONFIG_CPU_H8300H)	:= -mh -Wa,--mach=h8300h
158c2ecf20Sopenharmony_cildflags-$(CONFIG_CPU_H8300H)	:= -mh8300helf_linux
168c2ecf20Sopenharmony_cicflags-$(CONFIG_CPU_H8S)	:= -ms
178c2ecf20Sopenharmony_ciaflags-$(CONFIG_CPU_H8S)	:= -ms -Wa,--mach=h8300s
188c2ecf20Sopenharmony_cildflags-$(CONFIG_CPU_H8S)	:= -mh8300self_linux
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ciKBUILD_CFLAGS += $(cflags-y)
218c2ecf20Sopenharmony_ciKBUILD_CFLAGS += -mint32 -fno-builtin
228c2ecf20Sopenharmony_ciKBUILD_CFLAGS += -D__linux__
238c2ecf20Sopenharmony_ciKBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\"
248c2ecf20Sopenharmony_ciKBUILD_AFLAGS += $(aflags-y)
258c2ecf20Sopenharmony_ciKBUILD_LDFLAGS += $(ldflags-y)
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ciCHECKFLAGS += -msize-long
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ciifeq ($(CROSS_COMPILE),)
308c2ecf20Sopenharmony_ciCROSS_COMPILE := $(call cc-cross-prefix, h8300-unknown-linux- h8300-linux-)
318c2ecf20Sopenharmony_ciendif
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_cicore-y	+= arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/
348c2ecf20Sopenharmony_cicore-y	+= arch/$(ARCH)/boot/dts/
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_cilibs-y	+= arch/$(ARCH)/lib/
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ciboot := arch/h8300/boot
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ciarchclean:
418c2ecf20Sopenharmony_ci	$(Q)$(MAKE) $(clean)=$(boot)
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_civmlinux.srec vmlinux.bin zImage uImage.bin: vmlinux
448c2ecf20Sopenharmony_ci	$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_cidefine archhelp
478c2ecf20Sopenharmony_ci  @echo  'vmlinux.bin  - Create raw binary'
488c2ecf20Sopenharmony_ci  @echo  'vmlinux.srec - Create srec binary'
498c2ecf20Sopenharmony_ci  @echo  'zImage       - Compressed kernel image'
508c2ecf20Sopenharmony_ciendef
51