View | Details | Raw Unified | Return to bug 193155
Collapse All | Expand All

(-)emulators/skyeye/Makefile (-20 / +10 lines)
Lines 2-32 Link Here
2
# $FreeBSD: head/emulators/skyeye/Makefile 363371 2014-07-29 18:41:15Z adamw $
2
# $FreeBSD: head/emulators/skyeye/Makefile 363371 2014-07-29 18:41:15Z adamw $
3
3
4
PORTNAME=	skyeye
4
PORTNAME=	skyeye
5
PORTVERSION=	1.2
5
PORTVERSION=	1.2.5
6
PORTREVISION=	6
6
DISTVERSIONSUFFIX=	_REL
7
DISTVERSIONPREFIX=v
8
DISTVERSIONSUFFIX=_Rel
9
CATEGORIES=	emulators
7
CATEGORIES=	emulators
10
MASTER_SITES=	http://download.gro.clinux.org/skyeye/
8
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
11
9
12
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
13
COMMENT=	Environment simulates typical ARM-base embedded computer systems
11
COMMENT=	Environment simulates typical ARM-base embedded computer systems
14
12
15
BUILD_DEPENDS=	${LOCALBASE}/lib/libiberty.a:${PORTSDIR}/devel/gnulibiberty \
13
LICENSE=	GPLv2
16
		${LOCALBASE}/lib/libbfd.a:${PORTSDIR}/devel/libbfd
17
RUN_DEPENDS=	${LOCALBASE}/lib/libiberty.a:${PORTSDIR}/devel/gnulibiberty \
18
		${LOCALBASE}/lib/libbfd.a:${PORTSDIR}/devel/libbfd
19
14
20
USES=		gmake pkgconfig tar:bzip2
15
USE_BINUTILS=	yes
21
USE_GNOME=	gtk20
16
USE_GCC=	any
22
WRKSRC=		${WRKDIR}/${PORTNAME}-v1
17
GNU_CONFIGURE=	yes
18
CONFIGURE_ENV=	ac_cv_func_working_mktime=yes
23
19
24
NO_STAGE=	yes
20
PLIST_FILES=	bin/skyeye
25
.include <bsd.port.pre.mk>
26
21
27
ONLY_FOR_ARCHS=	i386
22
.include <bsd.port.mk>
28
29
do-install:
30
	${INSTALL_PROGRAM} ${WRKSRC}/binary/skyeye ${PREFIX}/bin
31
32
.include <bsd.port.post.mk>
(-)emulators/skyeye/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (skyeye-v1.2_Rel.tar.bz2) = 4eaa26efe36ba036d3c7cab51466972d1178c1dd6141e430e4e7f4a76eb3f15b
1
SHA256 (skyeye-1.2.5_REL.tar.gz) = 2eca1ad7f8f11e72e332944c9c41470861c337da3d3ddf535fb0efc610a2a08b
2
SIZE (skyeye-v1.2_Rel.tar.bz2) = 428488
2
SIZE (skyeye-1.2.5_REL.tar.gz) = 1069422
(-)emulators/skyeye/files/patch-Makefile (-64 lines)
Lines 1-64 Link Here
1
--- Makefile.orig	2006-12-16 12:12:09.000000000 -0500
2
+++ Makefile	2014-07-29 21:02:50.000000000 -0400
3
@@ -20,7 +20,7 @@
4
 # Author Chen Yu <yuchen@tsinghua.edu.cn>
5
 
6
 
7
-prefix = /usr/local
8
+prefix = ${PREFIX}
9
 exec_prefix = ${prefix}
10
 
11
 host_alias = i686-pc-cygwin
12
@@ -48,14 +48,14 @@
13
 INSTALL_DATA = ${INSTALL} -m 644
14
 
15
 #CC = gcc-3.3
16
-CC = gcc
17
+CC ?= gcc
18
 #CC = gcc-4.0
19
 CC_FOR_BUILD = $(CC)
20
 
21
 AR = ar
22
 AR_FLAGS = rc
23
 RANLIB = ranlib
24
-MAKEINFO = makeinfo
25
+MAKEINFO ?= makeinfo
26
 
27
 SUPPORT_ARCH_DEF = -DARM 
28
 
29
@@ -85,7 +85,7 @@
30
 endif
31
 endif
32
 
33
-CFLAGS = -g -O2 -D_FILE_OFFSET_BITS=64 -DSTANDALONE -DDEFAULT_INLINE=0 -DMODET $(EXTRA_CFLAGS) $(SIM_EXTRA_CFLAGS) $(SUPPORT_ARCH_DEF) -I.
34
+CFLAGS += -g -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -DSTANDALONE -DDEFAULT_INLINE=0 -DMODET $(EXTRA_CFLAGS) $(SIM_EXTRA_CFLAGS) $(SUPPORT_ARCH_DEF) -I. -I$(LOCALBASE)/include
35
 
36
 ARM_COMMON_PATH= arch/arm/common
37
 ARM_DBCT_PATH= arch/arm/dbct
38
@@ -238,7 +238,7 @@
39
 	rm -f binary/*.o
40
 	rm -f binary/*.a
41
 	rm -f binary/skyeye
42
-	make -C arch/coldfire clean
43
+	$(MAKE) -C arch/coldfire clean
44
 
45
 distclean mostlyclean maintainer-clean realclean: clean
46
 	rm -f TAGS tags
47
@@ -276,7 +276,7 @@
48
 CF_COMMON_PATH = arch/coldfire/common/
49
 COLDFIRE_FLAG = -I arch/coldire/tracer
50
 binary/libcoldfire.a:$(SIM_CF_OBJS) 
51
-	make -C arch/coldfire
52
+	$(MAKE) -C arch/coldfire
53
 	$(AR) $(AR_FLAGS) binary/libcoldfire.a $(SIM_CF_OBJS) $(CF_COMMON_PATH)/*.o $(CF_PATH)/tracer/tracer.o $(CF_PATH)/i_5206/i.o
54
 	$(RANLIB) binary/libcoldfire.a
55
 
56
@@ -285,7 +285,7 @@
57
 PPC_COMMON_PATH = arch/ppc/common/
58
 POWERPC_FLAG = -I arch/ppc/common/
59
 binary/libppc.a:
60
-	make -C arch/ppc
61
+	$(MAKE) -C arch/ppc
62
 	$(AR) $(AR_FLAGS) binary/libppc.a $(PPC_COMMON_PATH)/*.o 
63
 	$(RANLIB) binary/ppc.a
64
 
(-)emulators/skyeye/files/patch-arch__bfin__common__bfin-dis.c (+65 lines)
Line 0 Link Here
1
--- arch/bfin/common/bfin-dis.c.orig
2
+++ arch/bfin/common/bfin-dis.c
3
@@ -310,7 +310,7 @@
4
 		REG_RL7,
5
 	REG_RH0, REG_RH1, REG_RH2, REG_RH3, REG_RH4, REG_RH5, REG_RH6,
6
 		REG_RH7,
7
-	REG_R0, REG_R1, REG_R2, REG_R3, REG_R4, REG_R5, REG_R6, REG_R7,
8
+	REG_RR0, REG_RR1, REG_RR2, REG_RR3, REG_RR4, REG_RR5, REG_RR6, REG_RR7,
9
 	REG_R1_0, REG_R3_2, REG_R5_4, REG_R7_6, REG_P0, REG_P1, REG_P2,
10
 		REG_P3,
11
 	REG_P4, REG_P5, REG_SP, REG_FP, REG_A0x, REG_A1x, REG_A0w, REG_A1w,
12
@@ -401,7 +401,7 @@
13
 
14
 /* R(0..7)  */
15
 static enum machine_registers decode_dregs[] = {
16
-	REG_R0, REG_R1, REG_R2, REG_R3, REG_R4, REG_R5, REG_R6, REG_R7,
17
+	REG_RR0, REG_RR1, REG_RR2, REG_RR3, REG_RR4, REG_RR5, REG_RR6, REG_RR7,
18
 };
19
 
20
 #define dregs(x) REGNAME(decode_dregs[(x) & 7])
21
@@ -497,7 +497,7 @@
22
 
23
 /* dregs pregs  */
24
 static enum machine_registers decode_dpregs[] = {
25
-	REG_R0, REG_R1, REG_R2, REG_R3, REG_R4, REG_R5, REG_R6, REG_R7,
26
+	REG_RR0, REG_RR1, REG_RR2, REG_RR3, REG_RR4, REG_RR5, REG_RR6, REG_RR7,
27
 	REG_P0, REG_P1, REG_P2, REG_P3, REG_P4, REG_P5, REG_SP, REG_FP,
28
 };
29
 
30
@@ -505,7 +505,7 @@
31
 
32
 /* [dregs pregs] */
33
 static enum machine_registers decode_gregs[] = {
34
-	REG_R0, REG_R1, REG_R2, REG_R3, REG_R4, REG_R5, REG_R6, REG_R7,
35
+	REG_RR0, REG_RR1, REG_RR2, REG_RR3, REG_RR4, REG_RR5, REG_RR6, REG_RR7,
36
 	REG_P0, REG_P1, REG_P2, REG_P3, REG_P4, REG_P5, REG_SP, REG_FP,
37
 };
38
 
39
@@ -513,7 +513,7 @@
40
 
41
 /* [dregs pregs (iregs mregs) (bregs lregs)]  */
42
 static enum machine_registers decode_regs[] = {
43
-	REG_R0, REG_R1, REG_R2, REG_R3, REG_R4, REG_R5, REG_R6, REG_R7,
44
+	REG_RR0, REG_RR1, REG_RR2, REG_RR3, REG_RR4, REG_RR5, REG_RR6, REG_RR7,
45
 	REG_P0, REG_P1, REG_P2, REG_P3, REG_P4, REG_P5, REG_SP, REG_FP,
46
 	REG_I0, REG_I1, REG_I2, REG_I3, REG_M0, REG_M1, REG_M2, REG_M3,
47
 	REG_B0, REG_B1, REG_B2, REG_B3, REG_L0, REG_L1, REG_L2, REG_L3,
48
@@ -626,7 +626,7 @@
49
 
50
 /* [dregs pregs (iregs mregs) (bregs lregs) 	         dregs2_sysregs1 open sysregs2 sysregs3] */
51
 static enum machine_registers decode_allregs[] = {
52
-	REG_R0, REG_R1, REG_R2, REG_R3, REG_R4, REG_R5, REG_R6, REG_R7,
53
+	REG_RR0, REG_RR1, REG_RR2, REG_RR3, REG_RR4, REG_RR5, REG_RR6, REG_RR7,
54
 	REG_P0, REG_P1, REG_P2, REG_P3, REG_P4, REG_P5, REG_SP, REG_FP,
55
 	REG_I0, REG_I1, REG_I2, REG_I3, REG_M0, REG_M1, REG_M2, REG_M3,
56
 	REG_B0, REG_B1, REG_B2, REG_B3, REG_L0, REG_L1, REG_L2, REG_L3,
57
@@ -685,7 +685,7 @@
58
 get_allreg (int grp, int reg)
59
 {
60
 	int fullreg = (grp << 3) | reg;
61
-	/* REG_R0, REG_R1, REG_R2, REG_R3, REG_R4, REG_R5, REG_R6, REG_R7,
62
+	/* REG_RR0, REG_RR1, REG_RR2, REG_RR3, REG_RR4, REG_RR5, REG_RR6, REG_RR7,
63
 	   REG_P0, REG_P1, REG_P2, REG_P3, REG_P4, REG_P5, REG_SP, REG_FP,
64
 	   REG_I0, REG_I1, REG_I2, REG_I3, REG_M0, REG_M1, REG_M2, REG_M3,
65
 	   REG_B0, REG_B1, REG_B2, REG_B3, REG_L0, REG_L1, REG_L2, REG_L3,
(-)emulators/skyeye/files/patch-arch_coldfire_Makefile (-18 lines)
Lines 1-18 Link Here
1
--- arch/coldfire/Makefile.orig	Sun Aug 27 14:26:21 2006
2
+++ arch/coldfire/Makefile	Sun Aug 27 14:26:47 2006
3
@@ -1,9 +1,9 @@
4
 all:
5
-	make -C i_5206/
6
-	make -C tracer/
7
-	make -C common/
8
+	$(MAKE) -C i_5206/
9
+	$(MAKE) -C tracer/
10
+	$(MAKE) -C common/
11
 clean:
12
-	make -C tracer/ clean
13
-	make -C i_5206/ clean
14
-	make -C common/ clean
15
+	$(MAKE) -C tracer/ clean
16
+	$(MAKE) -C i_5206/ clean
17
+	$(MAKE) -C common/ clean
18
 	rm -f tags
(-)emulators/skyeye/files/patch-device__nandflash__nadflash_smallblock.c (+11 lines)
Line 0 Link Here
1
--- device/nandflash/nandflash_smallblock.c.orig
2
+++ device/nandflash/nandflash_smallblock.c
3
@@ -516,7 +516,7 @@
4
 #endif
5
 	nf->writebuffer=(u8*)malloc(dev->pagedumpsize);
6
 	//nf->memsize=528*32*4096;
7
-       if ((nf->fdump= open(dev->dump, FILE_FLAG)) < 0)
8
+       if ((nf->fdump= open(dev->dump, FILE_FLAG, S_IRUSR | S_IWUSR)) < 0)
9
        {
10
        	free(nf);
11
        	printf("error open nandflash dump!\n");
(-)emulators/skyeye/files/patch-utils__main__skyeye.c (+10 lines)
Line 0 Link Here
1
--- utils/main/skyeye.c.orig
2
+++ utils/main/skyeye.c
3
@@ -46,6 +46,7 @@
4
 
5
 #include <setjmp.h>
6
 #include "code_cov.h"
7
+#include "symbol.h"
8
 
9
 /**
10
  * A global variable , point to the current archtecture
(-)emulators/skyeye/files/patch-utils__profile__symbol.h (+10 lines)
Line 0 Link Here
1
--- utils/profile/symbol.h.orig
2
+++ utils/profile/symbol.h
3
@@ -73,6 +73,7 @@
4
 ARMword ARMul_TaskCreate(ARMul_State *state);
5
 void ARMul_ReportEnergy(ARMul_State *state, FILE* pf);
6
 void ARMul_Consolidate(ARMul_State *state);
7
+char *get_sym(ARMword address);
8
 
9
 #endif
10
 #endif
(-)emulators/skyeye/pkg-descr (-7 / +7 lines)
Lines 1-9 Link Here
1
SkyEye is an Open Source Software Project. The goal of SkyEye is to provide an
1
SkyEye is an Open Source Software Project. The goal of SkyEye is to
2
integrated simulation environment in Linux and Windows. SkyEye environment
2
provide an integrated simulation environment in Linux and Windows.
3
simulates typical Embedded Computer Systems (Now it supports Atmel AT91 board
3
SkyEye environment simulates typical Embedded Computer Systems (Now it
4
based on ARM7TDMI CPU, board based on ARM720T CPU, board based on StrongARM
4
supports Atmel AT91 board based on ARM7TDMI CPU, board based on ARM720T
5
(SA1100/SA1110). You can run some Embedded Operation System such as ARM Linux,
5
CPU, board based on StrongARM (SA1100/SA1110). You can run some Embedded
6
uClinux, uc/OS-II (ucos-ii) etc in SkyEye, and analyze or debug them at source
6
Operation System such as ARM Linux, uClinux, uc/OS-II (ucos-ii) etc in
7
level.
7
SkyEye, and analyze or debug them at source level.
8
8
9
WWW: http://www.skyeye.org/
9
WWW: http://www.skyeye.org/
(-)emulators/skyeye/pkg-plist (-1 lines)
Line 1 Link Here
1
bin/skyeye

Return to bug 193155