summaryrefslogtreecommitdiff
path: root/sys-fs/wpflash
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-11-03 16:06:58 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-11-03 16:06:58 +0000
commitbd4aeefe33e63f613512604e47bfca7b2187697d (patch)
treeadb35b5a9a00ee7ea591ab0c987f70167c23b597 /sys-fs/wpflash
parent48ece6662cbd443015f5a57ae6d8cbdbd69ef37c (diff)
gentoo resync : 03.11.2019
Diffstat (limited to 'sys-fs/wpflash')
-rw-r--r--sys-fs/wpflash/Manifest4
-rw-r--r--sys-fs/wpflash/files/wpflash-gentoo.patch223
-rw-r--r--sys-fs/wpflash/metadata.xml8
-rw-r--r--sys-fs/wpflash/wpflash-0.ebuild33
4 files changed, 0 insertions, 268 deletions
diff --git a/sys-fs/wpflash/Manifest b/sys-fs/wpflash/Manifest
deleted file mode 100644
index c42e6b889eb8..000000000000
--- a/sys-fs/wpflash/Manifest
+++ /dev/null
@@ -1,4 +0,0 @@
-AUX wpflash-gentoo.patch 5050 BLAKE2B 528241546947b4cee097d1b41a9a9aff2b1b14857ab88eb10a0d23ea6fd408ca897ed3f63158400a2f3c22c3e45316c23d5c46d34ee0d7206d165ea48719bacb SHA512 1d6be3acd401a27917ed8da6a773505a3a54983db0e958422d3f75f2042f50d43ef1c5cf6f81a73a9a109f2cbaf5cc0179a5651ff47a224855cbd12583030cee
-DIST wpflash.c 25813 BLAKE2B 904eb93626db284ec16a790f301473f7a5d7b1f6fc5e281ff7f7c0eba121554199c9a8edd129136f85db75eab9310caa83618578db9993193a28a3666c30a33f SHA512 b0605b15d29a96d8dae052131f0a55b09eb230d05543c8a25a727ac3820397459d108c9b19fa95726ca7df12b4a733480f5c01587deee24a5fb8be9d1a0beeba
-EBUILD wpflash-0.ebuild 568 BLAKE2B 00273ba05aeb0fff25828ebf89cc7eb1db5a8cf607c1bf6358cff5dac03a89a592e333c42d3ce4a3e103f4089350e98d2fb41a920e6d4ecfe6487d6a168ea03a SHA512 5da5354095a13b39acbcaf49d79c8b4046973a2ed00c9ac729c2d8c28f59667fd36dc2c64cc990be7e9f2a3550ba7f2dcbb88c5ebf29c4150d4568bc6c7c0acc
-MISC metadata.xml 255 BLAKE2B a9541f4bfab6e4a12975e8b3d56e433e65828b6376510448f11930d35451e23cad5bbf264180f150629ce9c1dea24eb7fb4f2b3f950ee5ff5d345811e017773a SHA512 4408b5018e974df4d7508f29e255f318bbd09b4056927cae6406ff1f427c06d5d655f677a28440cb84af04e411c88e4582f9ad1ea76829afeee0bbe4e3841c2f
diff --git a/sys-fs/wpflash/files/wpflash-gentoo.patch b/sys-fs/wpflash/files/wpflash-gentoo.patch
deleted file mode 100644
index 8706b9ceec36..000000000000
--- a/sys-fs/wpflash/files/wpflash-gentoo.patch
+++ /dev/null
@@ -1,223 +0,0 @@
---- wpflash.c
-+++ wpflash.c
-@@ -5,6 +5,9 @@
- #include <termios.h>
- #include <linux/ppdev.h>
- #include <sys/ioctl.h>
-+#include <unistd.h>
-+#include <stdlib.h>
-+#include <string.h>
-
- int do_write(int, void *, int);
- int do_read(int, void *, int);
-@@ -74,6 +77,13 @@ struct partition_table {
- struct partition modified;
- struct partition *find_partition(char *);
-
-+void usage();
-+void bad_partition(char *name);
-+int erase_sector(int addr);
-+int read_object(char *filename, char *memory, int rom_size);
-+int read_raw(char *filename, char *memory, int rom_size);
-+int write_flash(int addr, char *buffer, int length);
-+int read_flash(int addr, char *buffer, int length);
-
- /* This structure defines the sectors
- on the FLASH */
-@@ -199,7 +209,8 @@ find_partition(char *name)
- return fixup_partition(partition);
- partition++;
- }
-- bad_partition();
-+ bad_partition(name);
-+ return NULL;
- }
-
- /* Initialize a "cmd" structure */
-@@ -224,6 +235,7 @@ set_cmd(struct cmd *cmd, char type, int
- waiting for "CONTROL-A" to signal it should jump
- to the programming code */
-
-+void
- wait_boot_prompt()
- {
- char line[256], *s;
-@@ -236,7 +248,7 @@ wait_boot_prompt()
- else if (*s == '\n') {
- *s = 0;
- if (strcmp(line, "Enter CTRL-A to enter programmer.") == 0)
-- return 1;
-+ return;
- s = line;
- } else {
- s++;
-@@ -246,6 +258,7 @@ wait_boot_prompt()
-
- /* Erase a partition */
-
-+int
- erase_partition(char *name) {
-
- struct partition *partition = find_partition(name);
-@@ -328,16 +341,18 @@ erase_partition(char *name) {
- }
- }
- printf("done.\n");
-+
-+ return 0;
- }
-
- /* Program a partition */
-
-
-+int
- program_partition(char *name, char *filename, int hexdump)
- {
- struct partition *partition = find_partition(name);
- int addr, maxaddr, maxpgm, addrincr, startaddr;
-- int i;
-
- /* Load data to be programmed in either hex or binary
- format */
-@@ -384,6 +399,7 @@ program_partition(char *name, char *file
-
- /* Read a partition */
-
-+int
- read_partition(char *name, char *filename)
- {
- struct partition *partition = find_partition(name);
-@@ -421,13 +437,17 @@ read_partition(char *name, char *filenam
- return(0);
- }
-
-+int pp_open();
-+int hello();
-+int initialize();
-+int device_id(int *deviceID1, int *deviceID2);
-+int device_id_v0(int *deviceID1, int *deviceID2);
-+int double_wide();
-+int parse_flash_params(char *filename);
-+
-+int
- main(int argc, char **argv) {
-- struct termios termios;
-- char c;
-- int i;
-- int cpid;
-- int count;
-- int maxcount;
-+ struct termios termios;
- int version;
- int deviceID1, deviceID2;
- struct flash_chip *f;
-@@ -607,6 +627,8 @@ main(int argc, char **argv) {
- /* If we got to here, an invalid operation was specified */
-
- usage();
-+
-+ return 0;
- }
-
- /* Reads a block of data from the flash.
-@@ -632,7 +654,7 @@ read_flash(int addr, char *buffer, int l
- for (count = 0; count < length + 1; count = count + readl) {
- readl = do_read(sfd, buffer+count, length+1-count);
- if (readl == 0)
-- exit;
-+ exit(0);
- }
-
- /* Check checksum at end of data */
-@@ -662,7 +684,6 @@ write_flash(int addr, char *buffer, int
- struct cmd cmd;
- int count;
- int checksum;
-- int readl;
- char checksumbuf[1];
-
- /* Build and send "W" command to programmer.
-@@ -705,6 +726,7 @@ write_flash(int addr, char *buffer, int
-
- /* Send initialize command */
-
-+int
- initialize() {
- struct cmd cmd;
- char checksumbuf[1];
-@@ -770,6 +792,7 @@ int device_id_v0(int *deviceID1, int *de
- Note supported on Version 0 programmers. */
-
-
-+int
- double_wide() {
- struct cmd cmd;
- char checksumbuf[1];
-@@ -835,6 +858,7 @@ hello() {
-
- /* Send erase (whole flash) command */
-
-+int
- erase() {
- struct cmd cmd;
- char checksumbuf[1];
-@@ -857,6 +881,7 @@ erase() {
-
- /* Send erase sector command */
-
-+int
- erase_sector(int addr) {
- struct cmd cmd;
- char checksumbuf[1];
-@@ -900,7 +925,7 @@ hex(char c) {
-
- int parse_line(char *buffer, char *mem, int rom_size, int *max_mem) {
- char *c = buffer;
-- unsigned int address, word_addr;
-+ unsigned int address;
- unsigned int length,type;
- unsigned int checksum = 0;
- int count = 0;
-@@ -1020,10 +1045,7 @@ int
- read_raw(char *filename, char *memory, int rom_size)
- {
- FILE *f;
-- char line[80];
-- int lines_read = 0;
- int count = 0;
-- int bytes ;
- static int max_mem;
-
- max_mem = 0;
-@@ -1042,7 +1064,7 @@ read_raw(char *filename, char *memory, i
- exit(1);
- }
-
-- while (count = fread(memory, 1, 1024, f)) {
-+ while ((count = fread(memory, 1, 1024, f))) {
- memory += count;
- max_mem += count;
- }
-@@ -1053,12 +1075,13 @@ read_raw(char *filename, char *memory, i
- return max_mem; //return highest memory address used
- }
-
--bad_partition(char *name)
-+void bad_partition(char *name)
- {
- fprintf(stderr, "Unknown partition: %s\n\n", name);
- usage();
- }
-
-+void
- usage() {
- struct partition *partition = partition_table;
-
-@@ -1077,6 +1100,7 @@ usage() {
- exit(1);
- }
-
-+void
- pp_write(int fd, char value)
- {
- u_char d = value;
diff --git a/sys-fs/wpflash/metadata.xml b/sys-fs/wpflash/metadata.xml
deleted file mode 100644
index 3101c4efc863..000000000000
--- a/sys-fs/wpflash/metadata.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<maintainer type="project">
- <email>arm@gentoo.org</email>
- <name>Gentoo Linux ARM Development</name>
-</maintainer>
-</pkgmetadata>
diff --git a/sys-fs/wpflash/wpflash-0.ebuild b/sys-fs/wpflash/wpflash-0.ebuild
deleted file mode 100644
index c50fd6d7e3b9..000000000000
--- a/sys-fs/wpflash/wpflash-0.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=0
-
-inherit eutils
-
-DESCRIPTION="flash the firmware on a Webpal"
-HOMEPAGE="http://webpal.bigbrd.com/"
-SRC_URI="http://webpal.bigbrd.com/wpflash.c"
-
-LICENSE="all-rights-reserved"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~x86"
-IUSE=""
-RESTRICT="bindist mirror"
-
-DEPEND=""
-
-S=${WORKDIR}
-
-src_unpack() {
- cp "${DISTDIR}"/${A} "${WORKDIR}"/ || die
- epatch "${FILESDIR}"/${PN}-gentoo.patch
-}
-
-src_compile() {
- emake wpflash || die
-}
-
-src_install() {
- dosbin wpflash || die
-}