forked from pool/flashrom
Accepting request 56361 from home:reinauer:branches:hardware
New package flashrom - Split out of coreboot-utils (same happened mainline) with accepted submitrequest #55464 - would be great to see in openSUSE 11.4 soon OBS-URL: https://build.opensuse.org/request/show/56361 OBS-URL: https://build.opensuse.org/package/show/hardware/flashrom?expand=0&rev=1
This commit is contained in:
commit
178e027d00
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
flashrom-0.9.3_r1246.tar.bz2
Normal file
3
flashrom-0.9.3_r1246.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:78db0449ccfd98379feca7663ba03951e196d91e7c4dbc652ded3ebfb1c36f6b
|
||||||
|
size 265385
|
84
flashrom.changes
Normal file
84
flashrom.changes
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 9 22:11:02 CET 2010 - stepan@coresystems.de
|
||||||
|
|
||||||
|
- update to 0.9.3 r1246.
|
||||||
|
- split package into coreboot-utils and flashrom
|
||||||
|
- add update-snapshots script
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 2 20:04:06 CEST 2009 - kernel01@hailfinger.org
|
||||||
|
|
||||||
|
- Update flashrom to from 0.9.1-rc1 to 0.9.1
|
||||||
|
* Bug fixes and documentation fixes only
|
||||||
|
- Update nvramtool to r4625
|
||||||
|
* Fix HIGH_TABLES
|
||||||
|
* Install manpage in section 8 instead of section 1
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 24 13:26:37 CEST 2009 - kernel01@hailfinger.org
|
||||||
|
|
||||||
|
- Update flashrom description
|
||||||
|
- Add nvramtool description
|
||||||
|
- Use RPM_OPT_FLAGS, drop custom CFLAGS/LDFLAGS
|
||||||
|
- Install nvramtool in sbin because it's only usable as root
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 18 20:32:39 CEST 2009 - kernel01@hailfinger.org
|
||||||
|
|
||||||
|
- Update flashrom to version 0.9.1-rc1
|
||||||
|
* Support for more external flashers
|
||||||
|
* Universal external flasher protocol
|
||||||
|
* Automatic write/erase verification
|
||||||
|
* Dozens of added flash chips, chipsets, mainboards
|
||||||
|
* No root privileges needed for most external flashers
|
||||||
|
* Improved more verbose user interface
|
||||||
|
* Speedups: Fast bus type dependent probing, 100x faster write for
|
||||||
|
some chips
|
||||||
|
* Reliability fixes for buggy hardware, corner case spec
|
||||||
|
conformance
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 22 21:48:15 CEST 2009 - trenn@suse.de
|
||||||
|
|
||||||
|
- Update coreboot-utils to version 0.9.0
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 8 17:37:43 CET 2009 - bbrunner@suse.de
|
||||||
|
|
||||||
|
- update nvramtool to svn release r3852
|
||||||
|
- update flashrom to svn release r3852
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 15 20:58:16 CEST 2008 - bwalle@suse.de
|
||||||
|
|
||||||
|
- update nvramtool to svn release r3613
|
||||||
|
- update flashrom to svn release r3659
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 13 18:11:40 CEST 2008 - ro@suse.de
|
||||||
|
|
||||||
|
- add ExclusiveArch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 17 17:14:59 CET 2008 - bwalle@suse.de
|
||||||
|
|
||||||
|
- rename lxbios to nvramtool
|
||||||
|
- update nvramtool to svn release r3124
|
||||||
|
- update flashrom to svn release r3153
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jan 20 00:02:19 CET 2008 - bwalle@suse.de
|
||||||
|
|
||||||
|
- update to svn release r3061
|
||||||
|
o Support SPI flash chips bigger than 512 kByte sitting behind
|
||||||
|
IT8716F Super I/O performing LPC-to-SPI flash translation.
|
||||||
|
o Enable MX25L8005 support in flashrom.
|
||||||
|
o Minor changes.
|
||||||
|
- add lxbios utility
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 10 11:41:16 CET 2008 - bwalle@suse.de
|
||||||
|
|
||||||
|
- initial package
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
103
flashrom.spec
Normal file
103
flashrom.spec
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
#
|
||||||
|
# spec file for package flashrom
|
||||||
|
#
|
||||||
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
# norootforbuild
|
||||||
|
|
||||||
|
|
||||||
|
Name: flashrom
|
||||||
|
Url: http://coreboot.org/
|
||||||
|
Summary: A universal flash programming utility
|
||||||
|
Version: 0.9.3_r1246
|
||||||
|
Release: 1
|
||||||
|
License: GPL v2 only; GPL v2 or later
|
||||||
|
Group: Development/Tools/Other
|
||||||
|
Source0: flashrom-%{version}.tar.bz2
|
||||||
|
Source23: update-snapshots.sh
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: pciutils-devel zlib-devel
|
||||||
|
BuildRequires: libftdi1 libftdi1-devel
|
||||||
|
%if 0%{?suse_version} <= 1110
|
||||||
|
Requires: pmtools
|
||||||
|
%else
|
||||||
|
Requires: dmidecode
|
||||||
|
%endif
|
||||||
|
ExclusiveArch: %ix86 x86_64
|
||||||
|
|
||||||
|
%description
|
||||||
|
flashrom is a utility for reading, writing, verifying and erasing flash ROM
|
||||||
|
chips. It's often used to flash BIOS/EFI/coreboot/firmware images in-system
|
||||||
|
using a supported mainboard, but it also supports flashing of network
|
||||||
|
cards (NICs), SATA controller cards, and other external devices which can
|
||||||
|
program flash chips.
|
||||||
|
|
||||||
|
It supports a wide range of DIP32, PLCC32, DIP8, SO8/SOIC8, TSOP32, and
|
||||||
|
TSOP40 chips, which use various protocols such as LPC, FWH, parallel flash,
|
||||||
|
or SPI.
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Carl-Daniel Hailfinger
|
||||||
|
Claus Gindhart <claus.gindhart@kontron.com>
|
||||||
|
Dominik Geyer <dominik.geyer@kontron.com>
|
||||||
|
Eric Biederman <ebiederman@lnxi.com>
|
||||||
|
Giampiero Giancipoli <gianci@email.it>
|
||||||
|
Joe Bao <Zheng.Bao@amd.com>
|
||||||
|
Luc Verhaegen <libv@skynet.be>
|
||||||
|
Li-Ta Lo
|
||||||
|
Markus Boas <ryven@ryven.de>
|
||||||
|
Nikolay Petukhov <nikolay.petukhov@gmail.com>
|
||||||
|
Peter Stuge <peter@stuge.se>
|
||||||
|
Reinder E.N. de Haan <lb_reha@mveas.com>
|
||||||
|
Ronald G. Minnich <rminnich@gmail.com>
|
||||||
|
Ronald Hoogenboom <ronald@zonnet.nl>
|
||||||
|
Stefan Reinauer <stepan@coresystems.de>
|
||||||
|
Stefan Wildemann <stefan.wildemann@kontron.com>
|
||||||
|
Steven James <pyro@linuxlabs.com>
|
||||||
|
Uwe Hermann <uwe@hermann-uwe.de>
|
||||||
|
Wang Qingpei <Qingpei.Wang@amd.com>
|
||||||
|
Yinghai Lu <yinghai.lu@amd.com>
|
||||||
|
David S. Peterson <dsp@llnl.gov> <dave_peterson@pobox.com>
|
||||||
|
some others
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n flashrom-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
make %{?jobs:-j%jobs} \
|
||||||
|
CFLAGS="$RPM_OPT_FLAGS -Os -Wall -DDISABLE_DOC " \
|
||||||
|
LDFLAGS="-lpci -lz"
|
||||||
|
strip flashrom
|
||||||
|
gzip flashrom.8
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
|
||||||
|
install -m 0755 flashrom $RPM_BUILD_ROOT/%{_sbindir}
|
||||||
|
install -m 0644 flashrom.8.gz $RPM_BUILD_ROOT/%{_mandir}/man8
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc COPYING
|
||||||
|
%doc README
|
||||||
|
%{_sbindir}/flashrom
|
||||||
|
%{_mandir}/man8/flashrom.8.gz
|
||||||
|
|
||||||
|
%changelog
|
59
update-snapshots.sh
Normal file
59
update-snapshots.sh
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
# get upstream revisions
|
||||||
|
printf "Checking flashrom revision... "
|
||||||
|
VERSION=`svn cat svn://flashrom.org/flashrom/trunk/Makefile|grep ^RELEASE\ | cut -f2 -d= |cut -c2-`
|
||||||
|
REV=$(svn info svn://flashrom.org/flashrom/trunk |grep ^Revision|cut -c11-)
|
||||||
|
printf "done. (r$REV)\n"
|
||||||
|
|
||||||
|
printf "Continue? (YES/no) "
|
||||||
|
read answer
|
||||||
|
answer=$(echo $answer|tr "a-z" "A-Z")
|
||||||
|
if [ "$answer" == "YES" -o "$answer" == "Y" -o "$answer" == "" ]; then
|
||||||
|
printf "Updating tree... \n"
|
||||||
|
else
|
||||||
|
printf "Good bye.\n"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -r flashrom-${VERSION}_r$REV.tar.bz2 ]; then
|
||||||
|
osc rm flashrom-*.tar.bz2
|
||||||
|
fi
|
||||||
|
|
||||||
|
# clean up
|
||||||
|
printf "Cleaning up... "
|
||||||
|
rm -rf flashrom-${VERSION}_r????
|
||||||
|
rm -rf flashrom-${VERSION}_r???
|
||||||
|
printf "done.\n"
|
||||||
|
|
||||||
|
# check out flashrom
|
||||||
|
printf "Checking out flashrom $VERSION r$REV... "
|
||||||
|
svn export -q svn://flashrom.org/flashrom/trunk flashrom-${VERSION}_r$REV
|
||||||
|
sed -i "s/^SVNVERSION.*/SVNVERSION := $REV/" flashrom-${VERSION}_r$REV/Makefile
|
||||||
|
LC_ALL=C svn log svn://flashrom.org/flashrom/trunk/ >flashrom-${VERSION}_r$REV/ChangeLog
|
||||||
|
|
||||||
|
printf "packing... "
|
||||||
|
tar cjf flashrom-${VERSION}_r$REV.tar.bz2 flashrom-${VERSION}_r$REV
|
||||||
|
printf "done.\n"
|
||||||
|
|
||||||
|
sed -i s/Version:.*r[0-9].*$/Version:\ \ \ \ \ \ \ \ ${VERSION}_r$REV/ \
|
||||||
|
flashrom.spec
|
||||||
|
|
||||||
|
osc add flashrom-${VERSION}_r$REV.tar.bz2
|
||||||
|
mv flashrom.changes flashrom.changes.old
|
||||||
|
echo "-------------------------------------------------------------------" > \
|
||||||
|
flashrom.changes
|
||||||
|
echo "`date` - stepan@coresystems.de" >> \
|
||||||
|
flashrom.changes
|
||||||
|
echo >> flashrom.changes
|
||||||
|
echo "- update to $VERSION r$REV." >> flashrom.changes
|
||||||
|
echo >> flashrom.changes
|
||||||
|
cat flashrom.changes.old >> flashrom.changes
|
||||||
|
rm flashrom.changes.old
|
||||||
|
|
||||||
|
rm -rf flashrom-${VERSION}_r$REV
|
||||||
|
|
||||||
|
# finished.
|
||||||
|
ls -la *.bz2
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user