diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-11-18 04:07:29 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-11-18 04:07:29 +0000 |
commit | 31e3cd409ca721ef2e370b1c4bea380663483665 (patch) | |
tree | 002b630d79fe5ab169f80b3acc998d47bbb78528 /dev-embedded | |
parent | bump, rm old (diff) | |
download | historical-31e3cd409ca721ef2e370b1c4bea380663483665.tar.gz historical-31e3cd409ca721ef2e370b1c4bea380663483665.tar.bz2 historical-31e3cd409ca721ef2e370b1c4bea380663483665.zip |
Initial ebuild by Nam Nguyen.
Package-Manager: portage-2.2.14/cvs/Linux x86_64
Manifest-Sign-Key: 0xD2E96200
Diffstat (limited to 'dev-embedded')
-rw-r--r-- | dev-embedded/kobs-ng/ChangeLog | 12 | ||||
-rw-r--r-- | dev-embedded/kobs-ng/Manifest | 27 | ||||
-rw-r--r-- | dev-embedded/kobs-ng/files/kobs-ng-fix-array-violation.patch | 13 | ||||
-rw-r--r-- | dev-embedded/kobs-ng/files/kobs-ng-fix-mtd-defines.patch | 75 | ||||
-rw-r--r-- | dev-embedded/kobs-ng/files/kobs-ng-fix-open-without-mode.patch | 13 | ||||
-rw-r--r-- | dev-embedded/kobs-ng/kobs-ng-3.0.35.4.1.0.ebuild | 27 | ||||
-rw-r--r-- | dev-embedded/kobs-ng/metadata.xml | 5 |
7 files changed, 172 insertions, 0 deletions
diff --git a/dev-embedded/kobs-ng/ChangeLog b/dev-embedded/kobs-ng/ChangeLog new file mode 100644 index 000000000000..cbab86f716e5 --- /dev/null +++ b/dev-embedded/kobs-ng/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for dev-embedded/kobs-ng +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/kobs-ng/ChangeLog,v 1.1 2014/11/18 04:07:28 vapier Exp $ + +*kobs-ng-3.0.35.4.1.0 (18 Nov 2014) + + 18 Nov 2014; Mike Frysinger <vapier@gentoo.org> + +files/kobs-ng-fix-array-violation.patch, + +files/kobs-ng-fix-mtd-defines.patch, + +files/kobs-ng-fix-open-without-mode.patch, +kobs-ng-3.0.35.4.1.0.ebuild, + +metadata.xml: + Initial ebuild by Nam Nguyen. diff --git a/dev-embedded/kobs-ng/Manifest b/dev-embedded/kobs-ng/Manifest new file mode 100644 index 000000000000..2f840eb95341 --- /dev/null +++ b/dev-embedded/kobs-ng/Manifest @@ -0,0 +1,27 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX kobs-ng-fix-array-violation.patch 338 SHA256 41e4f2049f7e01abbc46f98856c3f9cfdc8a127f83613c22e8e3aa95eff4e9fa SHA512 311fac99b85264a25dc3984096e7467894a286be2ff6ee1fb8a11681ba5833e61b5938ef01312a35bb3a4e7cf90c0fbec163a54e9cc6c844e49da3bb856d2937 WHIRLPOOL 1049c590b9db9aab115f79f5ae857acfb6d322ee3a5d7acf62ced63ce9e63bb7411a33630f50c731380aeec507b08ce6e52a80002cd43a596e8008bebcccb3a3 +AUX kobs-ng-fix-mtd-defines.patch 2170 SHA256 14214f84b986f5ee186597386e332eb684a0bf95aec0c5e50aeac53a6de1a41a SHA512 5d192d1b6f36ccd1500f33c8a89bbd8bdd7b8f489fe04be56142101b93dd1f7c5b00ca5dffb681aeec15ed58927530dcd487e80b9a02e4af1c3ff46b732d6697 WHIRLPOOL 6e4632ea335a005ddadce8175a14b7476366749ed21668bde4cfc23f42bf3bdafe75735cdc259ea4bca2acd3995671411d170cacd93b1d65c6ead2d7294d89d9 +AUX kobs-ng-fix-open-without-mode.patch 390 SHA256 dee5049cc3f4385f9cf859b15dc0413209494f5d445c26cb761887f29add1b48 SHA512 6574ab1e96833a8fa90fcaa81d71258b28069177fd66d69d0b5b4f7c4988faceac86c6655dfccea192c930bc0c08adb01ff33c68e48447f53bb482ea40dd708b WHIRLPOOL 95a6ae931b0d26f40c7430a60e8adfc2601397c72095c41b1d2c28acc0192ba75321f1b54f2fa9480724247cc809f1b20233ac017c750a2fdaa875cf5f92d498 +DIST kobs-ng-3.0.35-4.1.0.tar.gz 145817 SHA256 92d2f23add8c5d3102c77f241cae26ca55871ccc613a7af833bebbbac7afb8ea SHA512 b2bb27202ecbf31bebec8eadcf04362178ec74337400416259237880b94ac2e5fcffae59b48857e9fcfa1b1aae584b181901d4dafea63eb1e0972ed3bc3b9e6e WHIRLPOOL 03674167651e9bb9fa71983ea71eb207fc96da4c881fb5def3ebfffdb86a8a2cee08de741d102c7aa1781619959064d54b79f74959940c2177c2f15d65acd76e +EBUILD kobs-ng-3.0.35.4.1.0.ebuild 886 SHA256 e928a30d447a4339f690a0c55c18619f747974e76b32d8966ebd8f4241f1ce72 SHA512 6687c64cfb066ab25e40d9feb708d9a070a080dfd5987e6a40a740d8f45b5d0f869151f1f81fdb93765406e949c97f84b19078dbf08f8313cde4bc9b4a5153db WHIRLPOOL 40967134b051edb417caf50a90ae0ffee57aa8f9787cdac493f671b89450bd054fc61a6d52375b62875518ee971b2c32d0a255fc69b3cb88085ad6a7434c524e +MISC ChangeLog 509 SHA256 ddf6188b3e96795deca7886b2b994f51758fddcf490ca4841727463dcde7cf89 SHA512 7fb0549853fef13e2f26700ae65928678cb159f90c122ff7049d86b75d4b7a7aedc05ccae2226f1ec3c4149bfb591a1f5c56e18dcac5d7b97a3af25f14b27ac4 WHIRLPOOL bd0a6eedf08b42c86ec33762f0060401871f46c0aeebd0173195ce9d25ff32853c307862070babe34db56cf6727526898aed5afaff29afd0155bd92c0c97e92d +MISC metadata.xml 165 SHA256 fb7ede94a0633f77d601e3e81580eac1624a3bca14401a49d94082579507ba0a SHA512 2be6b57c8e55824d56afbe9ab641639e6e1b4cf73bf2795c2778e373777ad545b5211e06510f13703583e7bb18817f623bc00dddbc8c52ad5f100f085e5dfddf WHIRLPOOL 7fe27fc76b523efadbe65a61c187e78592bc1563423791709914a6263c587a8843c75e19c64f989c7fc8a105c6433a874116ec670df3a27b930634d7e14fb1fe +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iQIcBAEBCAAGBQJUasYCAAoJEPGu1DbS6WIAiJ0P/jgHx8KhZPtBc6bvEEvtHXKp +LjPS9z3XNeQp1C5fiGIbF5Bm80hLCnLXbviUUEerFMsy+X9MKqi0gn7kdBqg1x5C +mGm6fd+ecpV8x45QEHK1zKPhTYTv1XFkQpmzD16WmZrCg6gJHR5R6SZNrtkuNIqR +fFSl9CH9tJqlhk2oWt216fQSoS8bRFkWAwifHV9PDXxWO3ZtioCuCP/Ue3rp1pS4 +lGf9YKKQUgzkH63oGk9M4kxbj54ekTi3r6SoD3Yl142kmPSm/eLoWSH1itxRUaDy +HYyv3SONyibDKt3KsS4J6g5sgM96IMPv9NbVJwJR1D9EYoXo52dgFdVPOilDkrMr +dv9v0367CSsd13FX89MTE4feqAtqcVtu+eZq1AZZGVobWvCU8cEiacPDr3QlGG8y +OU9PSADpBdG6CWClIg8T/ZzlQk9fOYSVnHlxJSy/wY0bclJEr+nBSWjs/pqqc/RH +sBjyAkoU8dRhFd42cpEDCt6sH4zTLUikN87VvOiAnnbGKsprr979GvXG0S0o494U +YGuCoQUJFknk7YnxODFEMHk6se3Yt9cF00ZxyeAC0Hp0ACnylcRRCpOiJqWU2n6Y +K5/BthDeKtEIbT2qw0sxHN4KWW4Wa6eC8D4zkNMgHTPkBT5VF7GzQOF1AJiXz4IA +Zqi5ma3j8ZLAu6U25hW9 +=3weg +-----END PGP SIGNATURE----- diff --git a/dev-embedded/kobs-ng/files/kobs-ng-fix-array-violation.patch b/dev-embedded/kobs-ng/files/kobs-ng-fix-array-violation.patch new file mode 100644 index 000000000000..28b1ef97c7f0 --- /dev/null +++ b/dev-embedded/kobs-ng/files/kobs-ng-fix-array-violation.patch @@ -0,0 +1,13 @@ +the part array is declared as part[2], so trying to index [2] isn't going to work + +--- a/src/mtd.c ++++ b/src/mtd.c +@@ -786,7 +786,7 @@ + mp->ecc = 1; + } + +- if (md->part[1].fd >= 0 && md->part[2].fd >=0) ++ if (md->part[1].fd >= 0) + md->flags |= F_MULTICHIP; + + /* if a second partition has been opened, verify that are compatible */ diff --git a/dev-embedded/kobs-ng/files/kobs-ng-fix-mtd-defines.patch b/dev-embedded/kobs-ng/files/kobs-ng-fix-mtd-defines.patch new file mode 100644 index 000000000000..b7dfbe3e2e39 --- /dev/null +++ b/dev-embedded/kobs-ng/files/kobs-ng-fix-mtd-defines.patch @@ -0,0 +1,75 @@ +# Source: http://git.buildroot.net/buildroot/plain/package/kobs-ng/kobs-ng-fix-mtd-defines.patch?id=b6fb2f5018fe0ae9bba275991efc502236422924 + +Newer kernel headers renamed mtd mode defines and no longer support +MEMSETOOBSEL. Allow code to work with both older and newer kernel +versions. + +Signed-off-by: Paul B. Henson <henson@acm.org> + +diff -u -r kobs-ng-3.0.35-4.0.0-orig/src/mtd.c kobs-ng-3.0.35-4.0.0/src/mtd.c +--- kobs-ng-3.0.35-4.0.0-orig/src/mtd.c 2012-12-17 22:37:40.000000000 -0800 ++++ kobs-ng-3.0.35-4.0.0/src/mtd.c 2013-07-28 19:39:59.000000000 -0700 +@@ -852,8 +852,11 @@ + mp = &md->part[i]; + + if (mp->fd != -1) { ++/* Newer kernels dropped MEMSETOOBSEL */ ++#ifdef MEMSETOOBSEL + (void)ioctl(mp->fd, MEMSETOOBSEL, + &mp->old_oobinfo); ++#endif + close(mp->fd); + } + +@@ -896,6 +899,8 @@ + continue; + } + ++/* Newer kernels dropped MEMSETOOBSEL */ ++#ifdef MEMSETOOBSEL + if (r == -ENOTTY) { + r = ioctl(mp->fd, MEMSETOOBSEL, &mp->old_oobinfo); + if (r != 0) { +@@ -904,6 +909,7 @@ + } + mp->oobinfochanged = 0; + } ++#endif + } else { + r = ioctl(mp->fd, MTDFILEMODE, (void *)MTD_MODE_RAW); + if (r != 0 && r != -ENOTTY) { +@@ -911,6 +917,8 @@ + continue; + } + ++/* Newer kernels dropped MEMSETOOBSEL */ ++#ifdef MEMSETOOBSEL + if (r == -ENOTTY) { + r = ioctl(mp->fd, MEMSETOOBSEL, &none_oobinfo); + if (r != 0) { +@@ -920,6 +928,7 @@ + mp->oobinfochanged = 1; + } else + mp->oobinfochanged = 2; ++#endif + } + + mp->ecc = ecc; +diff -u -r kobs-ng-3.0.35-4.0.0-orig/src/mtd.h kobs-ng-3.0.35-4.0.0/src/mtd.h +--- kobs-ng-3.0.35-4.0.0-orig/src/mtd.h 2012-12-17 22:37:40.000000000 -0800 ++++ kobs-ng-3.0.35-4.0.0/src/mtd.h 2013-07-28 19:33:57.000000000 -0700 +@@ -31,6 +31,14 @@ + #include "BootControlBlocks.h" + #include "rom_nand_hamming_code_ecc.h" + ++// Newer kernel headers renamed define ++#ifndef MTD_MODE_NORMAL ++#define MTD_MODE_NORMAL MTD_FILE_MODE_NORMAL ++#endif ++#ifndef MTD_MODE_RAW ++#define MTD_MODE_RAW MTD_FILE_MODE_RAW ++#endif ++ + //------------------------------------------------------------------------------ + // Re-definitions of true and false, because the standard ones aren't good + // enough? diff --git a/dev-embedded/kobs-ng/files/kobs-ng-fix-open-without-mode.patch b/dev-embedded/kobs-ng/files/kobs-ng-fix-open-without-mode.patch new file mode 100644 index 000000000000..47fd33170b2e --- /dev/null +++ b/dev-embedded/kobs-ng/files/kobs-ng-fix-open-without-mode.patch @@ -0,0 +1,13 @@ +add missing mode to open() when using O_CREAT + +--- kobs-ng-3.0.35-4.1.0/src/main.c ++++ kobs-ng-3.0.35-4.1.0/src/main.c +@@ -563,7 +563,7 @@ + int sz = getpagesize(); + + from = open(file_name, O_RDONLY); +- to = open(tmp_file, O_CREAT | O_RDWR); ++ to = open(tmp_file, O_CREAT | O_RDWR, 0644); + if (from < 0 || to < 0) { + fprintf(stderr, "unable to create a temporary file\n"); + exit(5); diff --git a/dev-embedded/kobs-ng/kobs-ng-3.0.35.4.1.0.ebuild b/dev-embedded/kobs-ng/kobs-ng-3.0.35.4.1.0.ebuild new file mode 100644 index 000000000000..5ec96ee807a0 --- /dev/null +++ b/dev-embedded/kobs-ng/kobs-ng-3.0.35.4.1.0.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-embedded/kobs-ng/kobs-ng-3.0.35.4.1.0.ebuild,v 1.1 2014/11/18 04:07:28 vapier Exp $ + +EAPI="4" + +inherit eutils versionator + +MY_PV="$(get_version_component_range 1-3)-$(get_version_component_range 4-)" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="utility to write u-boot images to NAND on Freescale iMX devices" +HOMEPAGE="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=IMX6_SW" +SRC_URI="http://storage.googleapis.com/chromeos-localmirror/distfiles/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}"/kobs-ng-fix-mtd-defines.patch + epatch "${FILESDIR}"/kobs-ng-fix-open-without-mode.patch + epatch "${FILESDIR}"/kobs-ng-fix-array-violation.patch +} diff --git a/dev-embedded/kobs-ng/metadata.xml b/dev-embedded/kobs-ng/metadata.xml new file mode 100644 index 000000000000..92114080841c --- /dev/null +++ b/dev-embedded/kobs-ng/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> |