diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-01-20 22:44:17 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-01-20 22:44:17 +0000 |
commit | 31797f9f5f48b74910585bb82935ea9dd4e1aef2 (patch) | |
tree | feeea71b2a14790ae013b091885d1b8b9fc41307 /dev-embedded | |
parent | tidy (diff) | |
download | historical-31797f9f5f48b74910585bb82935ea9dd4e1aef2.tar.gz historical-31797f9f5f48b74910585bb82935ea9dd4e1aef2.tar.bz2 historical-31797f9f5f48b74910585bb82935ea9dd4e1aef2.zip |
Initial ebuild by Doug Anderson.
Package-Manager: portage-2.2.0_alpha84/cvs/Linux x86_64
Diffstat (limited to 'dev-embedded')
-rw-r--r-- | dev-embedded/smdk-dltool/ChangeLog | 11 | ||||
-rw-r--r-- | dev-embedded/smdk-dltool/Manifest | 26 | ||||
-rw-r--r-- | dev-embedded/smdk-dltool/files/smdk-dltool-0.20-add-S3C64xx-support.patch | 66 | ||||
-rw-r--r-- | dev-embedded/smdk-dltool/files/smdk-dltool-0.20-build.patch | 18 | ||||
-rw-r--r-- | dev-embedded/smdk-dltool/metadata.xml | 5 | ||||
-rw-r--r-- | dev-embedded/smdk-dltool/smdk-dltool-0.20.ebuild | 33 |
6 files changed, 159 insertions, 0 deletions
diff --git a/dev-embedded/smdk-dltool/ChangeLog b/dev-embedded/smdk-dltool/ChangeLog new file mode 100644 index 000000000000..1408967e4e85 --- /dev/null +++ b/dev-embedded/smdk-dltool/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-embedded/smdk-dltool +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/smdk-dltool/ChangeLog,v 1.1 2012/01/20 22:44:17 vapier Exp $ + +*smdk-dltool-0.20 (20 Jan 2012) + + 20 Jan 2012; Mike Frysinger <vapier@gentoo.org> +smdk-dltool-0.20.ebuild, + +files/smdk-dltool-0.20-add-S3C64xx-support.patch, + +files/smdk-dltool-0.20-build.patch, +metadata.xml: + Initial ebuild by Doug Anderson. + diff --git a/dev-embedded/smdk-dltool/Manifest b/dev-embedded/smdk-dltool/Manifest new file mode 100644 index 000000000000..fb96cc0d951f --- /dev/null +++ b/dev-embedded/smdk-dltool/Manifest @@ -0,0 +1,26 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX smdk-dltool-0.20-add-S3C64xx-support.patch 2057 RMD160 aa21b1b5f6a11605609c88672a780b553d42111d SHA1 fdae238df63cce443bb4e1b1d85b9411506b5924 SHA256 46515ec624570fc9d04d136fb7fc8a4a53cbbdadade7a3c9695e6458aeda2e83 +AUX smdk-dltool-0.20-build.patch 321 RMD160 49f6268f55f809ea80af67dbecec049d4968d12e SHA1 9571e8d6c0f1c2f84e6680164151da446b1bd84b SHA256 4c3f9d8f7618086ea9252f764e82e56a0831f43a8360f4b0b6ed413e427789fa +DIST smdk-tools-v0.20.tar.gz 5170 RMD160 ba61a3a7727a826cafceb8330310f36d64147f6b SHA1 c598c8eae03afcdfc508c09808f6548ad6934f56 SHA256 fdda1a8ddb8b71a7a74e8efc85bd08ba8cb953a61eb610b846cf291436426e48 +EBUILD smdk-dltool-0.20.ebuild 861 RMD160 cbe59d96e6453b5b5575e35d2d3e062c3080d2f6 SHA1 c23d8bec39d8f55ab59f902f338e7a04df33a939 SHA256 0a5a099dc6aabd8b66520ab287f9264389b80de1647021cecb701b43032dae77 +MISC ChangeLog 473 RMD160 3bc36af6b525d2fdd3db2090a883c4747e32c3bc SHA1 b0a22e8187d46797bf750ff93a7c094eb90303d9 SHA256 b148dc6aca5de09ae541adb38c95d14de6d6cfe91dce2b9444af893e012aef1a +MISC metadata.xml 165 RMD160 3965c22a153ed350bcbd52de07c08ad47dd03cd7 SHA1 54b9da7fdc6d8376c990288c72938be9855ef8b6 SHA256 fb7ede94a0633f77d601e3e81580eac1624a3bca14401a49d94082579507ba0a +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.18 (GNU/Linux) + +iQIcBAEBAgAGBQJPGe5QAAoJELEHsLL7fEFW0NUQAMjEUskYNIGOK4iO0zLykBJx +to9JPo8y/4TgurX+4fBGDIrUGHsgBTnF5XkMe/9TGYQSZMQHEhSUTDlEjuXl6dQk +Gawz2EliMLeyOkHo7h9OlPYSdhnCkbzOyDMy9ZJXbDAuQhGFOMOR+YmD6oo/CeWT +50ybMkzrUJ0LzoCyajz11/1w295knBQQ7a/DKw5Lu83oWdtb3TS+HAA3KNIMuNdF +IKQRCZ5LC4BFOzTgvoUgIFt0B9UMLVmwPL4wWHJag05/BroIL2nBj6SSyjrvKm48 +8oKZzdB9RzyPrXVVDampCHKf3ULj29lZuwe1GgTSx9U2kCYT5aZblFYWXFs+eoEE +jlGh4mKJ+ea4uJL9XXjh5Mayjf/MeDU1JivvRFT/9LfXW8gEGTfxf5qin1VZJmKp +G/yRvP+sqgoFvBeaY2Psx6zB6Wvb00HMUCwU2CgzY4ZxZAOPrdO/Fj7mzBhndKFs +yDqjZqL72Z86xDHy1xH9j9fgj2iEl0BSlfyBOVzMdc58L7r+lKERH/AydUExnjHR +r1hYdhoAHcu0rXOiRlbQ63ZtWbPQAVvQWhSTPXRBNfABf5fPPbDdu9GDJhclVrKy +HyWRcifaH3rKW1+lX4lCrNgpVD/tvBSnOnC1/CkKF0o0rKdNoHdypXZuvyLBoLYe +sSXp73bpLA1W200PUcyf +=pcpJ +-----END PGP SIGNATURE----- diff --git a/dev-embedded/smdk-dltool/files/smdk-dltool-0.20-add-S3C64xx-support.patch b/dev-embedded/smdk-dltool/files/smdk-dltool-0.20-add-S3C64xx-support.patch new file mode 100644 index 000000000000..5b615aeb119b --- /dev/null +++ b/dev-embedded/smdk-dltool/files/smdk-dltool-0.20-add-S3C64xx-support.patch @@ -0,0 +1,66 @@ +From ed9e5da97fdb40082aca7acbdce5286b530fb2ba Mon Sep 17 00:00:00 2001 +From: Maurus Cuelenaere <mcuelenaere@gmail.com> +Date: Mon, 11 Jan 2010 01:55:34 +0100 +Subject: [PATCH] Add S3C64xx support + +Author: unknown +URL: http://dev.odroid.com/frs/download.php/22/Linux-dltool.tar.gz +--- + dltool/dltool.c | 19 ++++++++++++++----- + 1 files changed, 14 insertions(+), 5 deletions(-) + +diff --git a/dltool/dltool.c b/dltool/dltool.c +index 4e2d238..e76e607 100644 +--- a/dltool/dltool.c ++++ b/dltool/dltool.c +@@ -26,6 +26,8 @@ char *dl_file = "download.dat"; + char *dl_udev = NULL; + char *dl_ubus = NULL; + ++int ep_out = 0; ++ + #define DBG(x) if (debug) { printf x; } + + void write_u32(unsigned char *dp, unsigned long val) +@@ -120,9 +122,15 @@ int verify_device(struct usb_device *dev) + DBG(("\t=> idVendor %x\n", dev->descriptor.idVendor)); + DBG(("\t=> idProduct %x\n", dev->descriptor.idProduct)); + +- if (dev->descriptor.idVendor == 0x5345 && +- dev->descriptor.idProduct == 0x1234) ++ if (dev->descriptor.idVendor == 0x5345 && dev->descriptor.idProduct == 0x1234) { ++ ep_out = 3; ++ return 1; ++ } ++ else if(dev->descriptor.idVendor == 0x4e8 && dev->descriptor.idProduct == 0x1234){ ++ printf("S3C64XX Detected!\n"); ++ ep_out = 2; + return 1; ++ } + + return 0; + } +@@ -180,9 +188,9 @@ int main(int argc, char **argv) + usb_dev_handle *devh; + int ret; + +- printf("SMDK42XX USB Download Tool\n"); ++ printf("SMDK42XX,S3C64XX USB Download Tool\n"); + printf("Version 0.20 (c) 2004,2005,2006" +- "Ben Dooks <ben-linux@fluff.org>\n"); ++ " Ben Dooks <ben-linux@fluff.org>\n"); + printf("\n"); + + while (1) { +@@ -309,7 +317,8 @@ int main(int argc, char **argv) + write_header(dl_data, dl_addr, dl_size); + calc_cksum(dl_data, dl_size); + +- ret = usb_bulk_write(devh, 3, (void *)dl_data, dl_size, 5*1000*1000); ++ //ret = usb_bulk_write(devh, 3, (void *)dl_data, dl_size, 5*1000*1000); ++ ret = usb_bulk_write(devh, ep_out, (void *)dl_data, dl_size, 5*1000*1000); + printf("=> usb_bulk_write() returned %d\n", ret); + + if (ret != dl_size) { +-- +1.7.0.4 diff --git a/dev-embedded/smdk-dltool/files/smdk-dltool-0.20-build.patch b/dev-embedded/smdk-dltool/files/smdk-dltool-0.20-build.patch new file mode 100644 index 000000000000..bf4ad1ba7006 --- /dev/null +++ b/dev-embedded/smdk-dltool/files/smdk-dltool-0.20-build.patch @@ -0,0 +1,18 @@ +respect env build settings + +--- a/releases/smdk-tools-v0.20/dltool/Makefile ++++ b/releases/smdk-tools-v0.20/dltool/Makefile +@@ -7,8 +7,11 @@ + + .PHONY: clean + +-dltool: dltool.c +- $(CC) -O2 -Wall -g -lusb -o smdk-usbdl dltool.c ++CFLAGS ?= -O2 -g ++CFLAGS += -Wall ++LDLIBS = -lusb ++ ++all: dltool + + clean: + -rm smdk-usbdl diff --git a/dev-embedded/smdk-dltool/metadata.xml b/dev-embedded/smdk-dltool/metadata.xml new file mode 100644 index 000000000000..92114080841c --- /dev/null +++ b/dev-embedded/smdk-dltool/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>dev-embedded</herd> +</pkgmetadata> diff --git a/dev-embedded/smdk-dltool/smdk-dltool-0.20.ebuild b/dev-embedded/smdk-dltool/smdk-dltool-0.20.ebuild new file mode 100644 index 000000000000..5580ca937d98 --- /dev/null +++ b/dev-embedded/smdk-dltool/smdk-dltool-0.20.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/smdk-dltool/smdk-dltool-0.20.ebuild,v 1.1 2012/01/20 22:44:17 vapier Exp $ + +EAPI="4" + +inherit toolchain-funcs eutils + +DESCRIPTION="Tool to communicate with Samsung SMDK boards" +HOMEPAGE="http://www.fluff.org/ben/smdk/tools/" +SRC_URI="http://www.fluff.org/ben/smdk/tools/downloads/smdk-tools-v${PV}.tar.gz" + +# Email sent to author on 2012-01-18 querying about license +LICENSE="as-is" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="dev-libs/libusb" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/releases/smdk-tools-v${PV}/dltool + +src_prepare() { + epatch "${FILESDIR}"/${P}-add-S3C64xx-support.patch + epatch "${FILESDIR}"/${P}-build.patch + tc-export CC +} + +src_install() { + newbin dltool smdk-usbdl + dodoc readme.txt +} |