Back to home page

LXR

 
 

    


0001 #
0002 # arch/h8300/Makefile
0003 #
0004 # This file is subject to the terms and conditions of the GNU General Public
0005 # License.  See the file "COPYING" in the main directory of this archive
0006 # for more details.
0007 #
0008 # (C) Copyright 2002-2015 Yoshinori Sato <ysato@users.sourceforge.jp>
0009 #
0010 
0011 cflags-$(CONFIG_CPU_H8300H)     := -mh
0012 aflags-$(CONFIG_CPU_H8300H)     := -mh -Wa,--mach=h8300h
0013 ldflags-$(CONFIG_CPU_H8300H)    := -mh8300helf_linux
0014 cflags-$(CONFIG_CPU_H8S)        := -ms
0015 aflags-$(CONFIG_CPU_H8S)        := -ms -Wa,--mach=h8300s
0016 ldflags-$(CONFIG_CPU_H8S)       := -mh8300self_linux
0017 
0018 KBUILD_CFLAGS += $(cflags-y)
0019 KBUILD_CFLAGS += -mint32 -fno-builtin
0020 KBUILD_CFLAGS += -D__linux__
0021 KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\"
0022 KBUILD_AFLAGS += $(aflags-y)
0023 LDFLAGS += $(ldflags-y)
0024 
0025 ifeq ($(CROSS_COMPILE),)
0026 CROSS_COMPILE := h8300-unknown-linux-
0027 endif
0028 
0029 core-y  += arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/
0030 ifneq '$(CONFIG_H8300_BUILTIN_DTB)' '""'
0031 core-y += arch/h8300/boot/dts/
0032 endif
0033 
0034 libs-y  += arch/$(ARCH)/lib/
0035 
0036 boot := arch/h8300/boot
0037 
0038 %.dtb %.dtb.S %.dtb.o: | scripts
0039         $(Q)$(MAKE) $(build)=arch/h8300/boot/dts arch/h8300/boot/dts/$@
0040 
0041 PHONY += dtbs
0042 dtbs: scripts
0043         $(Q)$(MAKE) $(build)=arch/h8300/boot/dts
0044 
0045 archmrproper:
0046 
0047 archclean:
0048         $(Q)$(MAKE) $(clean)=$(boot)
0049 
0050 vmlinux.srec vmlinux.bin zImage uImage.bin: vmlinux
0051         $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
0052 
0053 define archhelp
0054   @echo  'vmlinux.bin  - Create raw binary'
0055   @echo  'vmlinux.srec - Create srec binary'
0056   @echo  'zImage       - Compressed kernel image'
0057 endef