4 Commits

Author SHA1 Message Date
Holger Hans Peter Freyther
7e6ae99e13 debian: Fix dependency and installation 2011-07-15 15:46:13 +02:00
Holger Hans Peter Freyther
732fd0da68 debian: Attempt to package the SIMtrace 2011-07-14 21:41:54 +02:00
Holger Hans Peter Freyther
87fc3a6b41 misc: Copy the simtrace_usb.h file here. no symlink for debian 2011-07-14 21:40:05 +02:00
Holger Hans Peter Freyther
e58d24f04f make: Create a very simple install target. 2011-07-14 21:36:09 +02:00
10 changed files with 120 additions and 1 deletions

View File

@@ -8,6 +8,11 @@ simtrace: main.o usb_helper.o usb.o apdu_split.o
%.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:
@rm -f simtrace *.o

23
host/debian/changelog Normal file
View 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
View File

@@ -0,0 +1 @@
7

16
host/debian/control Normal file
View 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
View 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
View File

21
host/debian/rules Executable file
View 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

View File

@@ -0,0 +1 @@
debian/simtrace/usr/bin/simtrace

View File

@@ -0,0 +1 @@
3.0 (quilt)

View File

@@ -1 +0,0 @@
../../openpcd/firmware/include/simtrace_usb.h

24
host/simtrace_usb.h Normal file
View 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 */