Debian Codegraph @

include/makeinclude/platform_integrity_ghs.GNU

raw
1 CROSS-COMPILE = 1
2
3 debug ?= 1
4 optimize ?= 1
5
6 shared_libs =
7 static_libs = 1
8
9 #### CPU type
10 ifndef CPU
11 CPU = ppc
12 endif # CPU
13
14 INTEGRITYTARGET = 1
15
16 #### Green Hills location, and target-specific definitions.
17 ifndef GHSROOT
18 GHSROOT = /home/scooter2/i40_solaris2
19 endif
20
21 ifndef RTOSROOT
22 RTOSROOT = /export/integrity/rtos
23 endif
24
25 ifndef BSP
26 BSP = mcp750
27 endif
28
29 ifndef TARGET_BSP
30 TARGET_BSP = $(ACE_ROOT)/tests/ACE.bsp
31 endif
32
33 ifndef TARGET_LD
34 TARGET_LD = $(ACE_ROOT)/tests/INTEGRITY.ld
35 endif
36
37 #### Set Integrity version
38 verline := $(shell ($(GHSROOT)/gversion 2>&1|grep "Green Hills Software"))
39 ifeq "$(verline)" ""
40 $(error Not Green Hills or the environment is not set-up)
41 endif
42 INTEGRITY_VERSION_STR := $(strip $(if ifeq $(word 4, $(verline)) "INTEGRITY", $(word 5, $(verline))))
43 ifeq "$(INTEGRITY_VERSION_STR)" ""
44 $(error This Green Hills setup is not for Integrity)
45 endif
46 ifeq "$(INTEGRITY_VERSION_STR)" "4.1.8"
47 CCFLAGS += -DINTEGRITY_VERSION=40108
48 endif
49
50 CC = $(GHSROOT)/cc$(CPU)
51 CXX = $(GHSROOT)/cx$(CPU)
52
53 # undefine "vector" because it's predefined for 7400 boards
54 IOPS = -bspname=$(RTOSROOT)/target/$(BSP).bld -os_dir $(RTOSROOT) --one_instantiation_per_object -non_shared -Uvector
55 IOPS += --exceptions
56
57 CCFLAGS += $(CFLAGS) -integrate -dynamic -I$(RTOSROOT)/INTEGRITY-include-SCA $(IOPS) -bspfile=$(TARGET_BSP) $(TARGET_LD)
58 DCFLAGS += -G
59 SOFLAGS += -shared
60 DLD = $(CXX)
61 LD = $(CXX)
62 LIBS += -lshm_client -lnet -livfssca -lposixsca -lsocket
63 PIC =
64 AR := $(CXX) -archive $(IOPS)
65 ARFLAGS = -o
66