1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

Add jtag 0.5.1, utility to work with JTAG-aware boards.

PR:		ports/101435
Submitted by:	Stanislav Sedov <ssedov at mbsd.msk.ru>
This commit is contained in:
Rong-En Fan 2006-08-08 15:39:24 +00:00
parent 717b56e462
commit 914c982329
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=170127
9 changed files with 217 additions and 0 deletions

View File

@ -441,6 +441,7 @@
SUBDIR += jrtplib
SUBDIR += jsap
SUBDIR += json-c
SUBDIR += jtag
SUBDIR += jude-community
SUBDIR += judy
SUBDIR += kaptain

58
devel/jtag/Makefile Normal file
View File

@ -0,0 +1,58 @@
# New ports collection makefile for: jtag
# Date created: 2006-08-05
# Whom: Stanislav Sedov <ssedov@mbsd.msk.ru>
#
# $MBSDlabs$
# $FreeBSD$
#
PORTNAME= jtag
PORTVERSION= 0.5.1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=openwince
MAINTAINER= ssedov@mbsd.msk.ru
COMMENT= Utility to work with JTAG-aware boards
BUILD_DEPENDS= ${OPENWINCE_INCLUDE_DEP}:${PORTSDIR}/devel/openwince-include
RUN_DEPENDS= ${BUILD_DEPENDS}
USE_BZIP2= yes
USE_GETTEXT= yes
GNU_CONFIGURE= yes
ONLY_FOR_ARCHS= i386
OPENWINCE_INCLUDE=${LOCALBASE}/include/openwince
OPENWINCE_INCLUDE_DEP=${OPENWINCE_INCLUDE}/common.h
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
.include <bsd.port.pre.mk>
#
# We haven't this on FreeBSD version prior to 5.1
#
.if ${OSVERSION} < 501000
CFLAGS+= -Duseconds_t=long
.endif
.if ${OSVERSION} < 500000 || exists(${LOCALBASE}/lib/libreadline.so.5)
LIB_DEPENDS+= readline.5:${PORTSDIR}/devel/readline
.endif
post-extract:
@${REINPLACE_CMD} -E -e \
"s,/usr/local/include/openwince,${OPENWINCE_INCLUDE}," \
${WRKSRC}/configure
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/TODO \
${WRKSRC}/doc/internals.xml ${DOCSDIR}
.endif
.include <bsd.port.post.mk>

3
devel/jtag/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (jtag-0.5.1.tar.bz2) = 3171d51fec40e9f338ea2d388544fd66
SHA256 (jtag-0.5.1.tar.bz2) = 4036f97ef693e9cbe6f99137ad6920b2679ba97d58cf5e78442a4d60308563b6
SIZE (jtag-0.5.1.tar.bz2) = 314857

View File

@ -0,0 +1,11 @@
--- libbrux/cmd/cmd_detectflash.c.orig Sat Aug 5 23:45:49 2006
+++ libbrux/cmd/cmd_detectflash.c Sat Aug 5 23:50:04 2006
@@ -40,7 +40,7 @@
return 1;
}
- detectflash( bus );
+ detectflash( bus, 0 );
return 1;
}

View File

@ -0,0 +1,11 @@
--- libbrux/flash/detectflash.c.orig Sat Aug 5 23:48:47 2006
+++ libbrux/flash/detectflash.c Sat Aug 5 23:49:40 2006
@@ -43,7 +43,7 @@
int jedec_detect( bus_t *bus, uint32_t adr, cfi_array_t **cfi_array );
void
-detectflash( bus_t *bus )
+detectflash( bus_t *bus , uint32_t adr )
{
cfi_array_t *cfi_array = NULL;
cfi_query_structure_t *cfi;

View File

@ -0,0 +1,19 @@
--- libbrux/flash/jedec.c.orig Sun Aug 6 00:17:33 2006
+++ libbrux/flash/jedec.c Sun Aug 6 00:17:50 2006
@@ -37,6 +37,7 @@
{
int mid;
int did;
+ cfi_query_structure_t *cfi;
/* Query flash. */
bus_write( bus, 0x0, 0xf0 );
@@ -55,7 +56,7 @@
if (!(*cfi_array)->cfi_chips[0])
return -2; /* out of memory */
- cfi_query_structure_t *cfi = &(*cfi_array)->cfi_chips[0]->cfi;
+ cfi = &(*cfi_array)->cfi_chips[0]->cfi;
cfi->identification_string.pri_id_code = CFI_VENDOR_AMD_SCS;
cfi->identification_string.pri_vendor_tbl = NULL;

View File

@ -0,0 +1,33 @@
--- src/tap/parport/direct.c.orig Sat Aug 5 23:51:32 2006
+++ src/tap/parport/direct.c Sat Aug 5 23:57:38 2006
@@ -46,28 +46,14 @@
static __inline int
ioperm( unsigned long from, unsigned long num, int permit )
{
- u_long ports[32];
- u_long i;
-
- if (i386_get_ioperm( ports ) == -1)
- return -1;
-
- for (i = from; i < (from + num); i++)
- if (permit)
- ports[i / 32] &= ~(1 << (i % 32));
- else
- ports[i / 32] |= (1 << (i % 32));
-
- if (i386_set_ioperm( ports ) == -1)
- return -1;
-
+ return i386_set_ioperm(from, num, permit);
return 0;
}
static __inline int
iopl( int level )
{
- return i386_iopl( level );
+ return 0;
}
static __inline unsigned char

9
devel/jtag/pkg-descr Normal file
View File

@ -0,0 +1,9 @@
JTAG Tools is a software package which enables working with JTAG-aware
(IEEE 1149.1) hardware devices (parts) and boards through JTAG adapter.
This package has open and modular architecture with ability to write
miscellaneous extensions (like board testers, flash memory programmers,
and so on).
Author: Marcel Telka <marcel@telka.sk>
WWW: http://openwince.sourceforge.net/jtag/

72
devel/jtag/pkg-plist Normal file
View File

@ -0,0 +1,72 @@
bin/bsdl2jtag
bin/jtag
%%DATADIR%%/MANUFACTURERS
%%DATADIR%%/altera/PARTS
%%DATADIR%%/altera/ep1c20f400/STEPPINGS
%%DATADIR%%/altera/ep1c20f400/ep1c20f400
%%DATADIR%%/altera/epm7128aetc100/STEPPINGS
%%DATADIR%%/altera/epm7128aetc100/epm7128aetc100
%%DATADIR%%/atmel/PARTS
%%DATADIR%%/atmel/atmega128/STEPPINGS
%%DATADIR%%/atmel/atmega128/atmega128
%%DATADIR%%/broadcom/PARTS
%%DATADIR%%/broadcom/bcm1250/STEPPINGS
%%DATADIR%%/broadcom/bcm1250/bcm1250
%%DATADIR%%/broadcom/bcm3310/STEPPINGS
%%DATADIR%%/broadcom/bcm3310/bcm3310
%%DATADIR%%/broadcom/bcm5421s/STEPPINGS
%%DATADIR%%/broadcom/bcm5421s/bcm5421s
%%DATADIR%%/dec/PARTS
%%DATADIR%%/dec/sa1100/STEPPINGS
%%DATADIR%%/dec/sa1100/sa1100
%%DATADIR%%/hitachi/PARTS
%%DATADIR%%/hitachi/sh7727/STEPPINGS
%%DATADIR%%/hitachi/sh7727/sh7727
%%DATADIR%%/intel/PARTS
%%DATADIR%%/intel/ixp425/STEPPINGS
%%DATADIR%%/intel/ixp425/ixp425
%%DATADIR%%/intel/pxa250/STEPPINGS
%%DATADIR%%/intel/pxa250/pxa250
%%DATADIR%%/intel/pxa250/pxa250c0
%%DATADIR%%/intel/sa1110/STEPPINGS
%%DATADIR%%/intel/sa1110/sa1110
%%DATADIR%%/philips/PARTS
%%DATADIR%%/philips/xcr3128xl-cs144/STEPPINGS
%%DATADIR%%/philips/xcr3128xl-cs144/xcr3128xl-cs144
%%DATADIR%%/samsung/s3c4510b/s3c4510b
%%DATADIR%%/xilinx/PARTS
%%DATADIR%%/xilinx/xc2c256-tq144/STEPPINGS
%%DATADIR%%/xilinx/xc2c256-tq144/xc2c256-tq144
%%DATADIR%%/xilinx/xcr3128xl-cs144/STEPPINGS
%%DATADIR%%/xilinx/xcr3128xl-cs144/xcr3128xl-cs144
%%DATADIR%%/xilinx/xcr3256xl-ft256/STEPPINGS
%%DATADIR%%/xilinx/xcr3256xl-ft256/xcr3256xl-ft256
share/locale/sk/LC_MESSAGES/jtag.mo
@dirrm %%DATADIR%%/xilinx/xcr3256xl-ft256
@dirrm %%DATADIR%%/xilinx/xcr3128xl-cs144
@dirrm %%DATADIR%%/xilinx/xc2c256-tq144
@dirrm %%DATADIR%%/xilinx
@dirrm %%DATADIR%%/samsung/s3c4510b
@dirrm %%DATADIR%%/samsung
@dirrm %%DATADIR%%/philips/xcr3128xl-cs144
@dirrm %%DATADIR%%/philips
@dirrm %%DATADIR%%/intel/sa1110
@dirrm %%DATADIR%%/intel/pxa250
@dirrm %%DATADIR%%/intel/ixp425
@dirrm %%DATADIR%%/intel
@dirrm %%DATADIR%%/hitachi/sh7727
@dirrm %%DATADIR%%/hitachi
@dirrm %%DATADIR%%/dec/sa1100
@dirrm %%DATADIR%%/dec
@dirrm %%DATADIR%%/broadcom/bcm5421s
@dirrm %%DATADIR%%/broadcom/bcm3310
@dirrm %%DATADIR%%/broadcom/bcm1250
@dirrm %%DATADIR%%/broadcom
@dirrm %%DATADIR%%/atmel/atmega128
@dirrm %%DATADIR%%/atmel
@dirrm %%DATADIR%%/altera/epm7128aetc100
@dirrm %%DATADIR%%/altera/ep1c20f400
@dirrm %%DATADIR%%/altera
@dirrm %%DATADIR%%
@dirrmtry share/locale/sk/LC_MESSAGES
@dirrmtry share/locale/sk