Add Cell support to config.mk and Makefiles To 'make', ARCH, CC and AR need to
be set as below.
make ARCH=cell CC=ppu-gcc AR=ppu-ar
Signed-off-by: Yoshio Funayama <[EMAIL PROTECTED]>
Signed-off-by: Takayuki Uchikawa <[EMAIL PROTECTED]>
Index: libpfm-3.2-070725/config.mk
===================================================================
--- libpfm-3.2-070725_org/config.mk
+++ libpfm-3.2-070725/config.mk
@@ -97,6 +97,10 @@ ifeq ($(ARCH),crayx2)
CONFIG_PFMLIB_ARCH_CRAYX2=y
endif
+ifeq ($(ARCH),cell)
+CONFIG_PFMLIB_CELL=y
+endif
+
#
# optimization level
#
Index: libpfm-3.2-070725/include/Makefile
===================================================================
--- libpfm-3.2-070725_org/include/Makefile
+++ libpfm-3.2-070725/include/Makefile
@@ -90,6 +90,10 @@ HEADERS += perfmon/pfmlib_os_crayx2.h
perfmon/pfmlib_crayx2.h
endif
+ifeq ($(CONFIG_PFMLIB_CELL),y)
+HEADERS += perfmon/pfmlib_cell.h
+endif
+
.PHONY: all clean distclean depend
install:
Index: libpfm-3.2-070725/lib/Makefile
===================================================================
--- libpfm-3.2-070725_org/lib/Makefile
+++ libpfm-3.2-070725/lib/Makefile
@@ -83,6 +83,12 @@ ifeq ($(CONFIG_PFMLIB_ARCH_CRAYXT),y)
CFLAGS += -DCONFIG_PFMLIB_ARCH_CRAYXT
endif
+ifeq ($(CONFIG_PFMLIB_CELL),y)
+INCDEP := $(INCDEP) $(INC_CELL)
+SRCS += pfmlib_cell.c
+CFLAGS += -DCONFIG_PFMLIB_CELL
+endif
+
CFLAGS+=-I.
ALIBPFM=libpfm.a
@@ -177,3 +183,6 @@ INC_POWERPC= $(PFMINCDIR)/perfmon/pfmlib
INC_CRAYX2= $(PFMINCIDR)/perfmon/pfmlib_crayx2.h \
crayx2_events.h pfmlib_crayx2_priv.h
+
+INC_CELL= $(PFMINCDIR)/perfmon/pfmlib_cell.h \
+ cell_event.h
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/