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

(-)b/comms/py-cc2538-bsl/Makefile (+46 lines)
Added Link Here
1
PORTNAME=	cc2538-bsl
2
DISTVERSION=	20220803
3
CATEGORIES=	comms python
4
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
5
6
MAINTAINER=	rozhuk.im@gmail.com
7
COMMENT=	TI CC13xx/CC2538/CC26xx Serial Boot Loader
8
WWW=		https://github.com/JelmerT/cc2538-bsl
9
10
LICENSE=	BSD3CLAUSE
11
LICENSE_FILE=	${WRKSRC}/LICENSE.md
12
13
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyserial>=3.4:comms/py-pyserial@${PY_FLAVOR} \
14
		${PYTHON_PKGNAMEPREFIX}intelhex>=0:devel/py-intelhex@${PY_FLAVOR} \
15
		${PYTHON_PKGNAMEPREFIX}python-magic>=0:devel/py-python-magic@${PY_FLAVOR}
16
17
USES=		python:3.4+ shebangfix
18
USE_PYTHON=	flavors
19
USE_GITHUB=	yes
20
GH_ACCOUNT=	JelmerT
21
GH_TAGNAME=	538ea0deb99530e28fdf1b454e9c9d79d85a3970
22
SHEBANG_FILES=	cc2538-bsl.py
23
24
NO_ARCH=	yes
25
NO_BUILD=	yes
26
27
post-patch:
28
	@${REINPLACE_CMD} -e "s|tty.usbserial|cua|g" \
29
		${WRKSRC}/cc2538-bsl.py
30
31
# This is to prevent Mk/Uses/python.mk do-configure target from firing.
32
do-configure:
33
	@${ECHO} 'No configure'
34
35
do-install:
36
	${INSTALL_SCRIPT} ${WRKSRC}/cc2538-bsl.py ${STAGEDIR}${PREFIX}/bin/
37
	${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/cc2538-bsl.py
38
39
post-install:
40
	# Regenerate .PLIST.pymodtemp to get all installed files from
41
	# ${STAGEDIR}.
42
	@${FIND} ${STAGEDIR} -type f -o -type l | \
43
		${SORT} | ${SED} -e 's|${STAGEDIR}||' \
44
		>> ${WRKDIR}/.PLIST.mktmp
45
46
.include <bsd.port.mk>
(-)b/comms/py-cc2538-bsl/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1662975013
2
SHA256 (JelmerT-cc2538-bsl-20220803-538ea0deb99530e28fdf1b454e9c9d79d85a3970_GH0.tar.gz) = 51e589638fe9f597db646fd4ebe4ad8f37a4ab32970244d8b383c2007566627f
3
SIZE (JelmerT-cc2538-bsl-20220803-538ea0deb99530e28fdf1b454e9c9d79d85a3970_GH0.tar.gz) = 17962
(-)b/comms/py-cc2538-bsl/pkg-descr (+5 lines)
Added Link Here
1
This folder contains a python script that communicates with the boot
2
loader of the Texas Instruments CC2538, CC26xx and CC13xx SoCs
3
(System on Chips).
4
It can be used to erase, program, verify and read the flash of those
5
SoCs with a simple USB to serial converter.
(-)b/comms/py-cc2538-bsl/pkg-message (+16 lines)
Added Link Here
1
[
2
{ type: install
3
  message: <<EOM
4
5
!!! ATTENTION !!!
6
7
Make sure you flash the correct firmware! Flashing the wrong firmware
8
might lock your bootloader preventing future flashing.
9
10
11
Extra F/W sources:
12
https://github.com/Koenkk/Z-Stack-firmware
13
14
EOM
15
}
16
]

Return to bug 266381