1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
|
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# $Source: src/build/img_defs.mk $
#
# OpenPOWER sbe Project
#
# Contributors Listed Below - COPYRIGHT 2015,2018
# [+] International Business Machines Corp.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied. See the License for the specific language governing
# permissions and limitations under the License.
#
# IBM_PROLOG_END_TAG
# Make header for SBE image build
#
# Settings to for SBE image file build
#
# IMG_INCLUDES : Aplication-specific header search paths
#
# DEFS : A string of -D<symbol>[=<value>] to control compilation
#
# PK : Default ..; The path to the PK source code.
# The default is set for building the PK
# subdirectories.
#
# PK_THREAD_SUPPORT : (0/1, default 1); Compile PK thread and
# semaphore suppprt
#
# PK_TIMER_SUPPORT : (0/1, default 1); Compile PK timer suppprt
#
# GCC-O-LEVEL : The optimization level passed to GCC (default -Os). May
# also be defined empty (GCC-O-LEVEL=) to disable
# optimization. This variable can also be used to pass
# any other non-default setting to GCC, e.g.
# make GCC-O-LEVEL="-Os -fno-branch-count-reg"
#
# CROSS_COMPILER_PATH : Cross-development tool chain path.
# From the SBE package, make must be called like this:
# make LD_LIBRARY_PATH=$(HOST_DIR)/usr/lib CROSS_COMPILER_PATH=$(PPE42_GCC_BIN)
# Defaults to IBM CTE tools path.
#
# OBJDIR : target directory for all generated files
ifndef PPE_TYPE
PPE_TYPE := std
endif
ifndef SBE_ROOT_DIR
export SBE_ROOT_DIR = $(abspath ../..)
endif
ifndef SBE_SRC_DIR
export SBE_SRC_DIR = $(SBE_ROOT_DIR)/src
endif
ifndef SBE_FW_DIR
export SBE_FW_DIR = $(SBE_SRC_DIR)/sbefw
endif
ifndef BUILD_DIR
export BUILD_DIR = $(SBE_SRC_DIR)/build
endif
# Required for pk/std/makefile
ifndef IMAGE_SRCDIR
export IMAGE_SRCDIR = $(BUILD_DIR)
endif
ifndef BUILDDATA_SRCDIR
export BUILDDATA_SRCDIR = $(BUILD_DIR)/utils
endif
ifndef LINKER_DIR
export LINKER_DIR = $(BUILD_DIR)/linkerscripts/$(project)
endif
ifndef IMPORT_HWP_MK_DIR
export IMPORT_HWP_MK_DIR = $(BUILD_DIR)/import_hwp_mk/$(project)
endif
ifndef BOOT_SRCDIR
export BOOT_SRCDIR = $(SBE_SRC_DIR)/boot
endif
ifndef IMPORT_SRCDIR
export IMPORT_SRCDIR = $(SBE_SRC_DIR)/import
endif
ifndef TOOLS_SRCDIR
export TOOLS_SRCDIR = $(SBE_SRC_DIR)/tools
endif
ifndef TEST_SRCDIR
export TEST_SRCDIR = $(SBE_SRC_DIR)/test/testcases
endif
ifndef DEBUGTOOLS_SRCDIR
export DEBUGTOOLS_SRCDIR = $(TOOLS_SRCDIR)/debug
endif
ifndef SIMICSTOOLS_SRCDIR
export SIMICSTOOLS_SRCDIR = $(DEBUGTOOLS_SRCDIR)/simics
endif
ifndef UTILS_SRCDIR
export UTILS_SRCDIR = $(IMPORT_SRCDIR)/chips/p9/utils
endif
ifndef CACHE_SRCDIR
export CACHE_SRCDIR = $(IMPORT_SRCDIR)/chips/p9/procedures/hwp/cache
endif
ifndef CORE_SRCDIR
export CORE_SRCDIR = $(IMPORT_SRCDIR)/chips/p9/procedures/hwp/core
endif
ifndef PERV_SRCDIR
export PERV_SRCDIR = $(IMPORT_SRCDIR)/chips/p9/procedures/hwp/perv
endif
ifndef HWPERR_SRCDIR
export HWPERR_SRCDIR = $(IMPORT_SRCDIR)/chips/p9/procedures/xml/error_info
endif
ifndef NEST_SRCDIR
export NEST_SRCDIR = $(IMPORT_SRCDIR)/chips/p9/procedures/hwp/nest
endif
ifndef IO_SRCDIR
export IO_SRCDIR = $(IMPORT_SRCDIR)/chips/p9/procedures/hwp/io
endif
ifndef PM_SRCDIR
export PM_SRCDIR = $(IMPORT_SRCDIR)/chips/p9/procedures/hwp/pm
endif
ifndef INITFILES_SRCDIR
export INITFILES_SRCDIR = $(IMPORT_SRCDIR)/chips/p9/procedures/hwp/initfiles
endif
ifndef HWPLIB_SRCDIR
export HWPLIB_SRCDIR = $(IMPORT_SRCDIR)/chips/p9/procedures/hwp/lib
endif
ifndef HWPFFDC_SRCDIR
export HWPFFDC_SRCDIR = $(IMPORT_SRCDIR)/chips/p9/procedures/hwp/ffdc
endif
ifndef IMAGEPROCS_TOOL_DIR
export IMAGEPROCS_TOOL_DIR = $(IMPORT_SRCDIR)/tools/imageProcs
endif
ifndef IMAGEPROCS_COMMON_SRCDIR
export IMAGEPROCS_COMMON_SRCDIR = $(IMPORT_SRCDIR)/chips/common/utils/imageProcs
endif
ifndef IMAGEPROCS_P9_SRCDIR
export IMAGEPROCS_P9_SRCDIR = $(IMPORT_SRCDIR)/chips/p9/utils/imageProcs
endif
ifndef IMAGEPROCS_CEN_SRCDIR
export IMAGEPROCS_CEN_SRCDIR = $(IMPORT_SRCDIR)/chips/centaur/utils/imageProcs
endif
ifndef BASE_OBJDIR
export BASE_OBJDIR = $(SBE_ROOT_DIR)/obj/$(project)
endif
ifndef TAR_OBJDIR
export TAR_OBJDIR = $(SBE_ROOT_DIR)/obj/simics-tar-dir
endif
ifndef P9_XIP_SRCDIR
export P9_XIP_SRCDIR = $(IMPORT_SRCDIR)/chips/p9/xip
endif
ifndef P9_XIP_BINDIR
export P9_XIP_BINDIR = $(BASE_OBJDIR)/xip
endif
ifndef IMG_INCLUDES
export IMG_INCLUDES = -I$(IMAGEPROCS_COMMON_SRCDIR) -I$(IMAGEPROCS_P9_SRCDIR) -I$(IMAGEPROCS_CEN_SRCDIR) -I$(P9_XIP_SRCDIR) -I$(BUILD_DIR) -I$(CACHE_SRCDIR) -I$(UTILS_SRCDIR) -I$(CORE_SRCDIR) -I$(PERV_SRCDIR) -I$(NEST_SRCDIR) -I$(IO_SRCDIR) -I$(PM_SRCDIR) -I$(INITFILES_SRCDIR) -I$(HWPLIB_SRCDIR) -I$(HWPFFDC_SRCDIR)
endif
ifndef BOOT_OBJDIR
export BOOT_OBJDIR = $(BASE_OBJDIR)/boot
endif
ifndef BUILDDATA_OBJDIR
export BUILDDATA_OBJDIR = $(BASE_OBJDIR)/build/utils
endif
ifndef IMG_ROOT_DIR
export IMG_ROOT_DIR = $(SBE_ROOT_DIR)/images
endif
ifndef IMG_DIR
export IMG_DIR = $(IMG_ROOT_DIR)
endif
ifndef PK_SRCDIR
export PK_SRCDIR = $(IMPORT_SRCDIR)/chips/p9/procedures/ppe/pk
endif
ifndef TOOLS_ATTR_DIR
export TOOLS_ATTR_DIR = $(TOOLS_SRCDIR)/scripts
endif
ifndef IMPORT_TOOLS_DIR
export IMPORT_TOOLS_DIR = $(IMPORT_SRCDIR)/hwpf/fapi2/tools
endif
ifndef TOOLS_IMAGE_DIR
export TOOLS_IMAGE_DIR = $(TOOLS_SRCDIR)/image
endif
ifndef IPL_BUILD_DIR
export IPL_BUILD_DIR = $(TOOLS_SRCDIR)/iplbuild
endif
ifndef IMPORT_XML_DIR
export IMPORT_XML_DIR = $(IMPORT_SRCDIR)/chips/p9/procedures/xml
endif
ifndef IMPORT_UTILS_DIR
export IMPORT_UTILS_DIR = $(IMPORT_SRCDIR)/chips/p9/utils
endif
ifndef IMPORT_COMMON_DIR
export IMPORT_COMMON_DIR = $(IMPORT_SRCDIR)/chips/p9/common
endif
ifndef PPETRACEPP_DIR
export PPETRACEPP_DIR = $(TOOLS_SRCDIR)/trace
endif
ifndef PPETRACEPP_BIN_DIR
export PPETRACEPP_BIN_DIR = $(BASE_OBJDIR)/genfiles
endif
ifndef GENFILES_DIR
export GENFILES_DIR = $(BASE_OBJDIR)/genfiles
endif
ifndef PLAT_FAPI2_DIR
export PLAT_FAPI2_DIR = $(SBE_SRC_DIR)/hwpf
endif
ifndef BASE_FAPI2_DIR
export BASE_FAPI2_DIR = $(IMPORT_SRCDIR)/hwpf/fapi2
endif
ifndef FAPI2_TOOLS_DIR
export FAPI2_TOOLS_DIR = $(IMPORT_SRCDIR)/hwpf/fapi2/tools/
endif
ifndef IMPORT_OBJDIR
export IMPORT_OBJDIR= import_hwp_mk
endif
ifndef SECURITY_SRC_DIR
export SECURITY_SRC_DIR = $(BUILD_DIR)/security
endif
ifndef SECURITY_LIST
export SECURITY_LIST = $(IMPORT_SRCDIR)/chips/p9/security/p9_security_white_black_list.csv
endif
ifndef CROSS_COMPILER_PATH
$(warning The CROSS_COMPILER_PATH variable is not defined; Defaulting to IBM CTE tools path)
export CROSS_COMPILER_PATH = /afs/awd/projects/cte/tools/ppetools/prod
endif
ifndef GCC-TOOL-PREFIX
GCC-TOOL-PREFIX = $(CROSS_COMPILER_PATH)/bin/powerpc-eabi-
endif
ifndef BINUTILS-TOOL-PREFIX
BINUTILS-TOOL-PREFIX = $(CROSS_COMPILER_PATH)/powerpc-eabi/bin/
endif
ifndef FAPI_RC
FAPI_RC = hwp_return_codes.H
#FAPI_RC =
endif
OBJDIR = $(BASE_OBJDIR)$(SUB_OBJDIR)
CC_ASM = $(GCC-TOOL-PREFIX)gcc
#TCC = $(PPETRACEPP_DIR)/ppetracepp $(GCC-TOOL-PREFIX)g++
TCC = $(PPETRACEPP_BIN_DIR)/ppetracepp $(GCC-TOOL-PREFIX)gcc
CC = $(PPETRACEPP_BIN_DIR)/ppetracepp $(GCC-TOOL-PREFIX)gcc
AS = $(BINUTILS-TOOL-PREFIX)as
AR = $(BINUTILS-TOOL-PREFIX)ar
LD = $(BINUTILS-TOOL-PREFIX)ld
NM = $(BINUTILS-TOOL-PREFIX)nm -S
OBJDUMP = $(BINUTILS-TOOL-PREFIX)objdump
OBJCOPY = $(BINUTILS-TOOL-PREFIX)objcopy
TCPP = $(PPETRACEPP_BIN_DIR)/ppetracepp $(GCC-TOOL-PREFIX)gcc
THASH = $(PPETRACEPP_DIR)/tracehash.pl
CPP = $(GCC-TOOL-PREFIX)gcc
ifdef P2P_ENABLE
PCP = $(P2P_SRCDIR)/ppc-ppe-pcp.py
endif
ifeq "$(PK_TIMER_SUPPORT)" ""
PK_TIMER_SUPPORT = 1
endif
ifeq "$(PK_THREAD_SUPPORT)" ""
PK_THREAD_SUPPORT = 1
endif
ifeq "$(PK_TRACE_SUPPORT)" ""
PK_TRACE_SUPPORT = 1
endif
ifdef SBE_ISTEP_STUBBED
GCC-DEFS += -DSBE_ISTEP_STUBBED=1
endif
ifdef SIM_ONLY_OSC_SWC_CHK
GCC-DEFS += -DSIM_ONLY_OSC_SWC_CHK=1
endif
ifdef __FAPI_DELAY_SIM__
GCC-DEFS += -D__FAPI_DELAY_SIM__=1
endif
ifdef __AWAN_SIM_ENV__
GCC-DEFS += -D__FAPI_DELAY_SIM__=1
# allow invalid scoms in AWAN run to let regression test cases run
GCC-DEFS += -D__ALLOW_INVALID_SCOMS__=1
GCC-DEFS += -DSIM_DPLL_LOCK_CHK=1
endif
# Generate a 16bit trace string hash prefix value based on the name of this image. This will form
# the upper 16 bits of the 32 bit trace hash values.
ifndef PK_TRACE_HASH_PREFIX
PK_TRACE_HASH_PREFIX := $(shell echo "SBE_MAIN" | md5sum | cut -c1-4 | xargs -i printf "%d" 0x{})
endif
ifndef GCC-O-LEVEL
ifdef P2P_ENABLE
GCC-O-LEVEL = -O
#GCC-O-LEVEL = -O -g
else
GCC-O-LEVEL = -Os
#GCC-O-LEVEL = -Os -g
endif
endif
ifdef FAPI_TRACE_LEVEL_ENV
FAPI_TRACE_LEVEL_DEF = $(FAPI_TRACE_LEVEL_ENV)
endif
GCC-DEFS += -DIMAGE_NAME=SBE_TRACE
GCC-DEFS += -DPK_TIMER_SUPPORT=$(PK_TIMER_SUPPORT)
GCC-DEFS += -DPK_THREAD_SUPPORT=$(PK_THREAD_SUPPORT)
GCC-DEFS += -DPK_TRACE_SUPPORT=$(PK_TRACE_SUPPORT)
GCC-DEFS += -DPK_TRACE_HASH_PREFIX=$(PK_TRACE_HASH_PREFIX)
GCC-DEFS += -DUSE_PK_APP_CFG_H=1
GCC-DEFS += -D__PK__=1
GCC-DEFS += -D__SBE__=1
GCC-DEFS += -D__PPE__=1
GCC-DEFS += -DMINIMUM_FFDC=1
GCC-DEFS += -DFAPI_TRACE_LEVEL=$(FAPI_TRACE_LEVEL_DEF)
GCC-DEFS += -DSBE_TRACE_LEVEL=$(SBE_TRACE_LEVEL_DEF)
GCC-DEFS += -DPLAT_NO_THREAD_LOCAL_STORAGE=1
# disable assert
GCC-DEFS += -DNDEBUG
GCC-DEFS += -DHOST_INTERFACE_AVAILABLE=$(HOST_INTERFACE_AVAILABLE)
GCC-DEFS += -DPERIODIC_IO_TOGGLE_SUPPORTED=$(PERIODIC_IO_TOGGLE_SUPPORTED)
# use the default settings in the code unless a size is defined
ifdef PK_TRACE_SZ
GCC-DEFS += -DPK_TRACE_SZ=$(PK_TRACE_SZ)
endif
export LD_LIBRARY_PATH+=:$(CROSS_COMPILER_PATH)/lib
############################################################################
INCLUDES += $(IMG_INCLUDES)
INCLUDES += -I$(HWPLIB_SRCDIR)
INCLUDES += -I$(GENFILES_DIR)
INCLUDES += -I$(PLAT_FAPI2_DIR)
INCLUDES += -I$(BASE_FAPI2_DIR)/include
INCLUDES += -I$(PK_SRCDIR)/../include
INCLUDES += -I$(PK_SRCDIR)/$(PPE_TYPE)
INCLUDES += -I$(PK_SRCDIR)/../include
INCLUDES += -I$(PK_SRCDIR)/../include/std
INCLUDES += -I$(PK_SRCDIR)/kernel
INCLUDES += -I$(PK_SRCDIR)/ppe
INCLUDES += -I$(PK_SRCDIR)/ppe42
INCLUDES += -I$(SBE_FW_DIR)
INCLUDES += -I$(SBE_FW_DIR)/core
INCLUDES += -I$(SBE_FW_DIR)/app
INCLUDES += -I$(SBE_FW_DIR)/app/common
INCLUDES += -I$(SBE_FW_DIR)/app/power
INCLUDES += -I$(BOOT_SRCDIR)
INCLUDES += -I$(BUILDDATA_SRCDIR)
INCLUDES += -I$(BUILDDATA_SRCDIR)/$(project)
INCLUDES += -I$(PK_SRCDIR)/trace
INCLUDES += -I$(PPETRACEPP_DIR)
INCLUDES += -I$(IMPORT_COMMON_DIR)/include
INCLUDES += -I$(IMPORT_UTILS_DIR)/
INCLUDES += -I$(IMPORT_SRCDIR)/tools/imageProcs
GCC-CFLAGS += -Wall -Werror -Wno-unused-label
GCC-CFLAGS += -msoft-float
GCC-CFLAGS += -meabi -msdata=eabi
GCC-CFLAGS += -gpubnames -gdwarf-3
GCC-CFLAGS += -ffreestanding
GCC-CFLAGS += -fno-common
GCC-CFLAGS += -fno-exceptions
GCC-CFLAGS += -fsigned-char
GCC-CFLAGS += -fno-inline-functions-called-once
ifdef P2P_ENABLE
## Flags specific to 405 compiler with PowerPc to PPE backend
PIPE-CFLAGS = -pipe -Wa,-m405
GCC-CFLAGS += -mcpu=405 -mmulhw
GCC-CFLAGS += -ffixed-r11
GCC-CFLAGS += -ffixed-r12
GCC-CFLAGS += -ffixed-r14
GCC-CFLAGS += -ffixed-r15
GCC-CFLAGS += -ffixed-r16
GCC-CFLAGS += -ffixed-r17
GCC-CFLAGS += -ffixed-r18
GCC-CFLAGS += -ffixed-r19
GCC-CFLAGS += -ffixed-r20
GCC-CFLAGS += -ffixed-r21
GCC-CFLAGS += -ffixed-r22
GCC-CFLAGS += -ffixed-r23
GCC-CFLAGS += -ffixed-r24
GCC-CFLAGS += -ffixed-r25
GCC-CFLAGS += -ffixed-r26
GCC-CFLAGS += -ffixed-r27
GCC-CFLAGS += -ffixed-cr1
GCC-CFLAGS += -ffixed-cr2
GCC-CFLAGS += -ffixed-cr3
GCC-CFLAGS += -ffixed-cr4
GCC-CFLAGS += -ffixed-cr5
GCC-CFLAGS += -ffixed-cr6
GCC-CFLAGS += -ffixed-cr7
else
## Flags specific to ppe42 compiler
PIPE-CFLAGS = -pipe
GCC-CFLAGS += -mcpu=ppe42
GCC-CFLAGS += -ffunction-sections
GCC-CFLAGS += -fdata-sections
endif
ifeq ($(img), seeprom)
GCC-DEFS += -DSEEPROM_IMAGE
endif
ifeq ($(img), pibmem)
GCC-DEFS += -DPIBMEM_ONLY_IMAGE
endif
ifeq ($(SBE_S0_SUPPORT), 1)
GCC-DEFS += -D_S0_=$(SBE_S0_SUPPORT)
endif
############################################################################
CFLAGS =
PPE-CFLAGS = $(CFLAGS) -c $(GCC-CFLAGS) $(PIPE-CFLAGS) $(GCC-O-LEVEL) $(INCLUDES)
CXXFLAGS = -std=c++11 -nostdinc++ -fno-rtti -fno-threadsafe-statics -fno-strict-aliasing
CPPFLAGS = -E
ASFLAGS = -mppe42
ifdef P2P_ENABLE
#use this to disable optimizations (fused compare/branch etc.)
PCP-FLAG = -b
endif
###########################################################################
# project specific include
ifeq ($(project),power)
include power_defs.mk
endif
ifeq ($(project),power_axone)
include power_axone_defs.mk
endif
ifeq ($(project),z)
include z_defs.mk
endif
############################################################################
ifeq ($(PIBMEM_REPAIR_SCOM_P9), 1)
PPE-CFLAGS += -DPIBMEM_REPAIR_SCOM_P9=1
endif
ifeq ($(PIBMEM_REPAIR_SCOM_AXONE), 1)
PPE-CFLAGS += -DPIBMEM_REPAIR_SCOM_AXONE=1
endif
DEFS += $(GCC-DEFS)
###########################################################################
ifdef BUILD_VERBOSE
C1=
C2=@true || echo
else
C1=@
C2=@echo
MAKE+= --no-print-directory
endif
#override the GNU Make implicit rule for going from a .C to a .o
%.o: %.C
# -Wno-conversion-null is necesary to allow mapping of NULL to TARGET_TYPE_SYSTEM
# for attribute accesses
$(OBJDIR)/%.s: %.C
$(C2) " CC $(notdir $<)"
$(C1)$(TCC) $(PPE-CFLAGS) $(DEFS) -Wno-conversion-null -S $(CXXFLAGS) -o $@ $<
#override the GNU Make implicit rule for going from a .c to a .o
%.o: %.c
$(OBJDIR)/%.s: %.c
$(C2) " C $(notdir $<)"
$(C1)$(CC) $(PPE-CFLAGS) $(DEFS) -S -o $@ $<
#override the GNU Make implicit rule for going from a .S to a .o
%.o: %.S
$(OBJDIR)/%.s: %.S
$(C2) " ASM $(notdir $<)"
$(C1)$(TCPP) $(PPE-CFLAGS) $(DEFS) $(CPPFLAGS) -o $@ $<
.PRECIOUS: $(OBJDIR)/%.s
ifndef P2P_ENABLE
$(OBJDIR)/%.o: $(OBJDIR)/%.s
$(C2) " ASM $(notdir $<)"
$(C1)$(AS) $(ASFLAGS) -o $@ $<
else
$(OBJDIR)/%.es: $(OBJDIR)/%.s
$(PCP) $(PCP-FLAG) -f $<
.PRECIOUS: $(OBJDIR)/%.es
$(OBJDIR)/%.o: $(OBJDIR)/%.es
$(AS) $(ASFLAGS) -o $@ $<
endif
|