remove package: flashrom. moving to unofficial

This commit is contained in:
Stefan Saraev 2015-04-05 18:15:22 +03:00
parent 61db36b2bb
commit 1771c6c89b
3 changed files with 0 additions and 117 deletions

View File

@ -1,40 +0,0 @@
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
#
# OpenELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# OpenELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
PKG_NAME="flashrom"
PKG_VERSION="0.9.6"
PKG_REV="1"
PKG_ARCH="x86_64"
PKG_LICENSE="GPL"
PKG_SITE="http://www.flashrom.org"
PKG_URL="http://download.flashrom.org/releases/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS_TARGET="toolchain zlib pciutils libftdi1"
PKG_PRIORITY="optional"
PKG_SECTION="tools"
PKG_SHORTDESC="flashrom: linux BIOS programmer"
PKG_LONGDESC="flashrom is a utility for identifying, reading, writing, verifying and erasing flash chips. It is designed to flash BIOS/EFI/coreboot/firmware/optionROM images on mainboards, network/graphics/storage controller cards, and various programmer devices."
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
PKG_MAKE_OPTS_TARGET="CC=$TARGET_CC STRIP=$STRIP PREFIX=/usr WARNERROR=no"
PKG_MAKEINSTALL_OPTS_TARGET="CC=$TARGET_CC STRIP=$STRIP PREFIX=/usr WARNERROR=no"
pre_make_target() {
export LDFLAGS="$LDFLAGS -ludev -lkmod"
}

View File

@ -1,35 +0,0 @@
diff --git a/Makefile b/Makefile
index 6b70ab8..f602b45 100644
--- a/Makefile
+++ b/Makefile
@@ -436,7 +436,7 @@ NEED_PCI := yes
endif
ifeq ($(CONFIG_FT2232_SPI), yes)
-FTDILIBS := $(shell pkg-config --libs libftdi 2>/dev/null || printf "%s" "-lftdi -lusb")
+FTDILIBS := $(shell pkg-config --libs libftdi1 2>/dev/null || printf "%s" "-lftdi1 -lusb")
# This is a totally ugly hack.
FEATURE_CFLAGS += $(shell LC_ALL=C grep -q "FTDISUPPORT := yes" .features && printf "%s" "-D'CONFIG_FT2232_SPI=1'")
FEATURE_LIBS += $(shell LC_ALL=C grep -q "FTDISUPPORT := yes" .features && printf "%s" "$(FTDILIBS)")
@@ -666,7 +666,7 @@ featuresavailable:
endif
define FTDI_TEST
-#include <ftdi.h>
+#include <libftdi1/ftdi.h>
struct ftdi_context *ftdic = NULL;
int main(int argc, char **argv)
{
diff --git a/ft2232_spi.c b/ft2232_spi.c
index a5d3828..d54cf6a 100644
--- a/ft2232_spi.c
+++ b/ft2232_spi.c
@@ -27,7 +27,7 @@
#include "flash.h"
#include "programmer.h"
#include "spi.h"
-#include <ftdi.h>
+#include <libftdi1/ftdi.h>
/* Please keep sorted by vendor ID, then device ID. */

View File

@ -1,42 +0,0 @@
#!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This Program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC.tv; see the file COPYING. If not, write to
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
echo "getting sources..."
svn co svn://coreboot.org/flashrom/trunk flashrom-latest
echo "getting version..."
cd flashrom-latest
SVN_REV=`LANG=C svn info 2>/dev/null | grep Revision: | sed -e 's/.*\: //'`
echo $SVN_REV
cd ..
echo "copying sources..."
rm -rf flashrom-$SVN_REV
cp -R flashrom-latest flashrom-$SVN_REV
echo "cleaning sources..."
find flashrom-$SVN_REV -name .svn -exec rm -rf {} ";"
echo "packing sources..."
tar cvjf flashrom-$SVN_REV.tar.bz2 flashrom-$SVN_REV
echo "remove temporary sourcedir..."
rm -rf flashrom-$SVN_REV