1 ## SPDX-License-Identifier: GPL-2.0-only
3 ppc64_flags
= -I
$(src
)/arch
/ppc64
/ -mbig-endian
-mcpu
=power8
-mtune
=power8
7 ################################################################################
9 ################################################################################
10 ifeq ($(CONFIG_ARCH_BOOTBLOCK_PPC64
),y
)
12 bootblock-y
= bootblock_crt0.S
13 bootblock-y
+= arch_timer.c
16 $(top
)/src
/lib
/memchr.c \
17 $(top
)/src
/lib
/memcmp.c \
18 $(top
)/src
/lib
/memcpy.c \
19 $(top
)/src
/lib
/memmove.c \
20 $(top
)/src
/lib
/memset.c
22 bootblock-generic-ccopts
+= $(ppc64_flags
)
24 $(eval
$(call link_stage
,bootblock
))
28 ################################################################################
30 ################################################################################
31 ifeq ($(CONFIG_ARCH_ROMSTAGE_PPC64
),y
)
33 romstage-y
+= arch_timer.c
35 romstage-y
+= stages.c
37 $(top
)/src
/lib
/memchr.c \
38 $(top
)/src
/lib
/memcmp.c \
39 $(top
)/src
/lib
/memcpy.c \
40 $(top
)/src
/lib
/memmove.c \
41 $(top
)/src
/lib
/memset.c
43 romstage-
$(CONFIG_COLLECT_TIMESTAMPS
) += timestamp.c
47 $(eval
$(call link_stage
,romstage
))
49 romstage-c-ccopts
+= $(ppc64_flags
)
50 romstage-S-ccopts
+= $(ppc64_asm_flags
)
54 ################################################################################
56 ################################################################################
57 ifeq ($(CONFIG_ARCH_RAMSTAGE_PPC64
),y
)
59 ramstage-y
+= stages.c
60 ramstage-y
+= arch_timer.c
62 ramstage-y
+= tables.c
64 $(top
)/src
/lib
/memchr.c \
65 $(top
)/src
/lib
/memcmp.c \
66 $(top
)/src
/lib
/memcpy.c \
67 $(top
)/src
/lib
/memmove.c \
68 $(top
)/src
/lib
/memset.c
70 $(eval
$(call create_class_compiler
,rmodules
,power8
))
72 ramstage-
$(CONFIG_COLLECT_TIMESTAMPS
) += timestamp.c
74 ramstage-srcs
+= src
/mainboard
/$(MAINBOARDDIR
)/mainboard.c
78 $(eval
$(call link_stage
,ramstage
))
80 ramstage-c-ccopts
+= $(ppc64_flags
)
81 ramstage-S-ccopts
+= $(ppc64_asm_flags
)