mirror of
https://gitea.osmocom.org/sim-card/simtrace.git
synced 2026-03-18 22:38:36 +03:00
Compare commits
4 Commits
v1.1_disco
...
debian
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7e6ae99e13 | ||
|
|
732fd0da68 | ||
|
|
87fc3a6b41 | ||
|
|
e58d24f04f |
@@ -8,6 +8,11 @@ simtrace: main.o usb_helper.o usb.o apdu_split.o
|
|||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) $(CFLAGS) `pkg-config --cflags libosmocore` -o $@ -c $^
|
$(CC) $(CFLAGS) `pkg-config --cflags libosmocore` -o $@ -c $^
|
||||||
|
|
||||||
|
install: simtrace
|
||||||
|
install -d $(DESTDIR)/usr/bin/
|
||||||
|
install -m 0755 simtrace $(DESTDIR)/usr/bin/
|
||||||
|
.PHONY: install
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -f simtrace *.o
|
@rm -f simtrace *.o
|
||||||
|
|||||||
23
host/debian/changelog
Normal file
23
host/debian/changelog
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
simtrace (0.0.1+deb1-4) natty; urgency=low
|
||||||
|
|
||||||
|
* Fix the osmocore dependency.
|
||||||
|
|
||||||
|
-- Holger Freyther <zecke@selfish.org> Thu, 14 Jul 2011 21:11:39 +0200
|
||||||
|
|
||||||
|
simtrace (0.0.1+deb1-3) natty; urgency=low
|
||||||
|
|
||||||
|
* Try to fix the dependencies.
|
||||||
|
|
||||||
|
-- Holger Freyther <zecke@selfish.org> Thu, 14 Jul 2011 18:44:06 +0200
|
||||||
|
|
||||||
|
simtrace (0.0.1+deb1-2) natty; urgency=low
|
||||||
|
|
||||||
|
* Try to fix the build.
|
||||||
|
|
||||||
|
-- Holger Freyther <zecke@selfish.org> Thu, 14 Jul 2011 18:22:44 +0200
|
||||||
|
|
||||||
|
simtrace (0.0.1+deb1-1) natty; urgency=low
|
||||||
|
|
||||||
|
* Initial release of the SIMtrace.
|
||||||
|
|
||||||
|
-- Holger Freyther <zecke@selfish.org> Mon, 14 Jul 2011 18:00:00 +0200
|
||||||
1
host/debian/compat
Normal file
1
host/debian/compat
Normal file
@@ -0,0 +1 @@
|
|||||||
|
7
|
||||||
16
host/debian/control
Normal file
16
host/debian/control
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
Source: simtrace
|
||||||
|
Section: net
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Holger Freyther <zecke@selfish.org>
|
||||||
|
Build-Depends: libusb-dev, make, libosmocore-dev, debhelper
|
||||||
|
Standards-Version: 3.8.4
|
||||||
|
Homepage: http://simtrace.osmocom.org/
|
||||||
|
Vcs-Git: git://git.osmocom.org/simtrace.git
|
||||||
|
Vcs-Browser: http://git.osmocom.org/gitweb?p=simtrace.git;a=summary
|
||||||
|
|
||||||
|
Package: simtrace
|
||||||
|
Section: net
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||||
|
Description: SIMtrace host utility
|
||||||
|
|
||||||
28
host/debian/copyright
Normal file
28
host/debian/copyright
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
This work was packaged for Debian by:
|
||||||
|
|
||||||
|
Holger Freyther <zecke@selfish.org> on Thu, 14 Jul 2011 17:55:07 +0200
|
||||||
|
|
||||||
|
It was downloaded from:
|
||||||
|
|
||||||
|
git://git.osmocom.org/simtrace.git
|
||||||
|
|
||||||
|
Upstream Author(s):
|
||||||
|
|
||||||
|
Harald Welte <laforge@gnumonks.org>
|
||||||
|
|
||||||
|
Copyright:
|
||||||
|
|
||||||
|
Copyright (C) 2006-2011 Harald Welte <laforge@gnumonks.org>
|
||||||
|
|
||||||
|
License:
|
||||||
|
|
||||||
|
GNU General Public License, Version 2
|
||||||
|
|
||||||
|
The Debian packaging is:
|
||||||
|
|
||||||
|
Copyright (C) 2011 Holger Freyther <zecke@selfish.org>
|
||||||
|
|
||||||
|
|
||||||
|
and is licensed under the GPL version 2,
|
||||||
|
see "/usr/share/common-licenses/GPL-2".
|
||||||
|
|
||||||
0
host/debian/docs
Normal file
0
host/debian/docs
Normal file
21
host/debian/rules
Executable file
21
host/debian/rules
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
# -*- makefile -*-
|
||||||
|
# Sample debian/rules that uses debhelper.
|
||||||
|
# This file was originally written by Joey Hess and Craig Small.
|
||||||
|
# As a special exception, when this file is copied by dh-make into a
|
||||||
|
# dh-make output file, you may use that output file without restriction.
|
||||||
|
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
||||||
|
|
||||||
|
# Uncomment this to turn on verbose mode.
|
||||||
|
#export DH_VERBOSE=1
|
||||||
|
|
||||||
|
CFLAGS = -Wall -g
|
||||||
|
|
||||||
|
DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@
|
||||||
|
|
||||||
|
tarball-version:
|
||||||
|
git describe --abbrev=4 --match '*.*.*' $(DEB_UPSTREAM_VERSION) | sed 's/-/./;s/\(.*\)-g/\1-/' > .tarball-version
|
||||||
|
|
||||||
1
host/debian/simtrace.install
Normal file
1
host/debian/simtrace.install
Normal file
@@ -0,0 +1 @@
|
|||||||
|
debian/simtrace/usr/bin/simtrace
|
||||||
1
host/debian/source/format
Normal file
1
host/debian/source/format
Normal file
@@ -0,0 +1 @@
|
|||||||
|
3.0 (quilt)
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../openpcd/firmware/include/simtrace_usb.h
|
|
||||||
24
host/simtrace_usb.h
Normal file
24
host/simtrace_usb.h
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
#ifndef SIMTRACE_USB_H
|
||||||
|
#define SIMTRACE_USB_H
|
||||||
|
|
||||||
|
//#include <stdint.h>
|
||||||
|
|
||||||
|
/* this is kept compatible with OpenPCD protocol */
|
||||||
|
struct simtrace_hdr {
|
||||||
|
u_int8_t cmd;
|
||||||
|
u_int8_t flags;
|
||||||
|
u_int8_t res[2];
|
||||||
|
u_int8_t data[0];
|
||||||
|
} __attribute__ ((packed));
|
||||||
|
|
||||||
|
enum simtrace_usb_msgt {
|
||||||
|
SIMTRACE_MSGT_NULL,
|
||||||
|
SIMTRACE_MSGT_DATA,
|
||||||
|
SIMTRACE_MSGT_RESET, /* reset was asserted, no more data */
|
||||||
|
};
|
||||||
|
|
||||||
|
/* flags for MSGT_DATA */
|
||||||
|
#define SIMTRACE_FLAG_ATR 0x01 /* ATR immediately after reset */
|
||||||
|
#define SIMTRACE_FLAG_WTIME_EXP 0x04 /* work waiting time expired */
|
||||||
|
|
||||||
|
#endif /* SIMTRACE_USB_H */
|
||||||
Reference in New Issue
Block a user