Linux Audio

Check our new training course

Loading...
v4.6
 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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11cflags-$(CONFIG_CPU_H8300H)	:= -mh
12aflags-$(CONFIG_CPU_H8300H)	:= -mh -Wa,--mach=h8300h
13ldflags-$(CONFIG_CPU_H8300H)	:= -mh8300helf_linux
14cflags-$(CONFIG_CPU_H8S)	:= -ms
15aflags-$(CONFIG_CPU_H8S)	:= -ms -Wa,--mach=h8300s
16ldflags-$(CONFIG_CPU_H8S)	:= -mh8300self_linux
17
18KBUILD_CFLAGS += $(cflags-y)
19KBUILD_CFLAGS += -mint32 -fno-builtin
 
20KBUILD_CFLAGS += -D__linux__
21KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\"
22KBUILD_AFLAGS += $(aflags-y)
23LDFLAGS += $(ldflags-y)
24
25ifeq ($(CROSS_COMPILE),)
26CROSS_COMPILE := h8300-unknown-linux-
27endif
28
29core-y	+= arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/
30ifneq '$(CONFIG_H8300_BUILTIN_DTB)' '""'
31core-y += arch/h8300/boot/dts
 
 
 
 
32endif
33
34libs-y	+= arch/$(ARCH)/lib/
35
36boot := arch/h8300/boot
37
38%.dtb %.dtb.S %.dtb.o: | scripts
39	$(Q)$(MAKE) $(build)=arch/h8300/boot/dts arch/h8300/boot/dts/$@
40
41PHONY += dtbs
42dtbs: scripts
43	$(Q)$(MAKE) $(build)=arch/h8300/boot/dts
44
45archmrproper:
46
47archclean:
48	$(Q)$(MAKE) $(clean)=$(boot)
49
50vmlinux.srec vmlinux.bin zImage uImage.bin: vmlinux
51	$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
52
53define archhelp
54  @echo  'vmlinux.bin  - Create raw binary'
55  @echo  'vmlinux.srec - Create srec binary'
56  @echo  'zImage       - Compressed kernel image'
57endef
v3.5.6
 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,2003 Yoshinori Sato <ysato@users.sourceforge.jp>
 9#
10
11platform-$(CONFIG_CPU_H8300H)	:= h8300h
12platform-$(CONFIG_CPU_H8S)	:= h8s
13PLATFORM := $(platform-y)
14
15board-$(CONFIG_H8300H_GENERIC)		:= generic
16board-$(CONFIG_H8300H_AKI3068NET)	:= aki3068net
17board-$(CONFIG_H8300H_H8MAX)		:= h8max
18board-$(CONFIG_H8300H_SIM)		:= generic
19board-$(CONFIG_H8S_GENERIC)		:= generic
20board-$(CONFIG_H8S_EDOSK2674)		:= edosk2674
21board-$(CONFIG_H8S_SIM)			:= generic
22BOARD := $(board-y)
23
24model-$(CONFIG_RAMKERNEL)	:= ram
25model-$(CONFIG_ROMKERNEL)	:= rom
26MODEL := $(model-y)
27
28cflags-$(CONFIG_CPU_H8300H)	:= -mh
29ldflags-$(CONFIG_CPU_H8300H)	:= -mh8300helf
 
30cflags-$(CONFIG_CPU_H8S)	:= -ms
31ldflags-$(CONFIG_CPU_H8S)	:= -mh8300self
 
32
33KBUILD_CFLAGS += $(cflags-y)
34KBUILD_CFLAGS += -mint32 -fno-builtin
35KBUILD_CFLAGS += -g
36KBUILD_CFLAGS += -D__linux__
37KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\"
38KBUILD_AFLAGS += -DPLATFORM=$(PLATFORM) -DMODEL=$(MODEL) $(cflags-y)
39LDFLAGS += $(ldflags-y)
40
41CROSS_COMPILE = h8300-elf-
42LIBGCC := $(shell $(CROSS-COMPILE)$(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
 
43
44head-y := arch/$(ARCH)/platform/$(PLATFORM)/$(BOARD)/crt0_$(MODEL).o
45
46core-y	+= arch/$(ARCH)/kernel/ \
47	   arch/$(ARCH)/mm/
48ifdef PLATFORM
49core-y	+= arch/$(ARCH)/platform/$(PLATFORM)/ \
50	   arch/$(ARCH)/platform/$(PLATFORM)/$(BOARD)/
51endif
52
53libs-y	+= arch/$(ARCH)/lib/ $(LIBGCC)
54
55boot := arch/h8300/boot
56
57export MODEL PLATFORM BOARD
 
 
 
 
 
58
59archmrproper:
60
61archclean:
62	$(Q)$(MAKE) $(clean)=$(boot)
63
64vmlinux.srec vmlinux.bin zImage: vmlinux
65	$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
66
67define archhelp
68  @echo  'vmlinux.bin  - Create raw binary'
69  @echo  'vmlinux.srec - Create srec binary'
70  @echo  'zImage       - Compressed kernel image'
71endef