Initial commit
This commit is contained in:
parent
566a5aa80b
commit
f5e9ecfaf6
@ -0,0 +1 @@
|
|||||||
|
flashrom-2753.tar.bz2
|
30
flashrom--Makefile_cleanup.diff
Normal file
30
flashrom--Makefile_cleanup.diff
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
--- Makefile 2007-08-05 15:15:51.000000000 +0400
|
||||||
|
+++ Makefile 2007-08-05 15:18:46.000000000 +0400
|
||||||
|
@@ -7,18 +7,10 @@
|
||||||
|
PROGRAM = flashrom
|
||||||
|
|
||||||
|
CC = gcc
|
||||||
|
-STRIP = strip
|
||||||
|
INSTALL = /usr/bin/install
|
||||||
|
-PREFIX = /usr/local
|
||||||
|
-#CFLAGS = -O2 -g -Wall -Werror
|
||||||
|
-CFLAGS = -Os -Wall -Werror -DDISABLE_DOC # -DTS5300
|
||||||
|
+PREFIX = /usr/
|
||||||
|
OS_ARCH = $(shell uname)
|
||||||
|
-ifeq ($(OS_ARCH), SunOS)
|
||||||
|
LDFLAGS = -lpci -lz
|
||||||
|
-else
|
||||||
|
-LDFLAGS = -lpci -lz -static
|
||||||
|
-STRIP_ARGS = -s
|
||||||
|
-endif
|
||||||
|
|
||||||
|
OBJS = chipset_enable.o board_enable.o udelay.o jedec.o sst28sf040.o \
|
||||||
|
am29f040b.o mx29f002.o sst39sf020.o m29f400bt.o w49f002u.o \
|
||||||
|
@@ -30,7 +22,6 @@
|
||||||
|
|
||||||
|
$(PROGRAM): $(OBJS)
|
||||||
|
$(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
|
||||||
|
- $(STRIP) $(STRIP_ARGS) $(PROGRAM)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f *.o *~
|
56
flashrom.spec
Normal file
56
flashrom.spec
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
Summary: Simple program for reading/writing BIOS chips content
|
||||||
|
Name: flashrom
|
||||||
|
Version: 0
|
||||||
|
Release: 0.1.20070830svn2753%{?dist}
|
||||||
|
License: GPLv2+
|
||||||
|
Group: Applications/System
|
||||||
|
# svn -r 2753 export svn://linuxbios.org/repos/trunk/util/flashrom flashrom
|
||||||
|
# tar -cjvf flashrom-2753.tar.bz2 flashrom
|
||||||
|
Source0: flashrom-2753.tar.bz2
|
||||||
|
Patch0: flashrom--Makefile_cleanup.diff
|
||||||
|
URL: http://linuxbios.org/Flashrom
|
||||||
|
BuildRequires: pciutils-devel
|
||||||
|
BuildRequires: zlib-devel
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
|
# Lacks of <sys/io.h>
|
||||||
|
ExcludeArch: ppc ppc64
|
||||||
|
|
||||||
|
%description
|
||||||
|
Utility which can be used to detect BIOS chips (DIP, PLCC), read their contents
|
||||||
|
and write new contents on the chips ("flash the chip").
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{name}
|
||||||
|
%patch0
|
||||||
|
|
||||||
|
%build
|
||||||
|
# currently disabling DiscOnChip due to instability
|
||||||
|
CFLAGS="%{optflags} -DDISABLE_DOC" %{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
||||||
|
install %{name} $RPM_BUILD_ROOT%{_bindir}
|
||||||
|
install -D -p -m644 %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
|
||||||
|
|
||||||
|
%clean
|
||||||
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc README
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
%{_mandir}/man1/%{name}.1.gz
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
|
||||||
|
* Thu Sep 6 2007 Peter Lemenkov <lemenkov@gmail.com> 0-0.1.20070830svn2753
|
||||||
|
- svn ver. 2753 (support for W29C040P and W29EE011 chips added)
|
||||||
|
- New naming scheme
|
||||||
|
|
||||||
|
* Wed Aug 22 2007 Peter Lemenkov <lemenkov@gmail.com> 0.0-1.2744svn
|
||||||
|
- svnver. 2744
|
||||||
|
|
||||||
|
* Sun Aug 5 2007 Peter Lemenkov <lemenkov@gmail.com> 0.0-1.2742svn
|
||||||
|
- Initial build for FC-Extras
|
Loading…
Reference in New Issue
Block a user