fixed %patch0
This commit is contained in:
parent
229b7f8cd7
commit
fd3c0c2771
@ -1,30 +1,35 @@
|
|||||||
--- Makefile 2007-08-05 15:15:51.000000000 +0400
|
--- Makefile.Makefile_cleanup 2008-05-17 05:08:58.000000000 +0400
|
||||||
+++ Makefile 2007-08-05 15:18:46.000000000 +0400
|
+++ Makefile 2008-05-17 23:33:17.000000000 +0400
|
||||||
@@ -7,18 +7,10 @@
|
@@ -9,15 +9,15 @@
|
||||||
PROGRAM = flashrom
|
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
-STRIP = strip
|
STRIP = strip
|
||||||
INSTALL = /usr/bin/install
|
INSTALL = /usr/bin/install
|
||||||
-PREFIX = /usr/local
|
-PREFIX = /usr/local
|
||||||
-#CFLAGS = -O2 -g -Wall -Werror
|
|
||||||
-CFLAGS = -Os -Wall -Werror -DDISABLE_DOC # -DTS5300
|
|
||||||
+PREFIX = /usr
|
+PREFIX = /usr
|
||||||
|
#CFLAGS = -O2 -g -Wall -Werror
|
||||||
|
-CFLAGS = -Os -Wall -Werror -DDISABLE_DOC # -DTS5300
|
||||||
|
+#CFLAGS = -Os -Wall -Werror -DDISABLE_DOC # -DTS5300
|
||||||
OS_ARCH = $(shell uname)
|
OS_ARCH = $(shell uname)
|
||||||
-ifeq ($(OS_ARCH), SunOS)
|
ifeq ($(OS_ARCH), SunOS)
|
||||||
|
LDFLAGS = -lpci -lz
|
||||||
|
else
|
||||||
LDFLAGS = -lpci -lz
|
LDFLAGS = -lpci -lz
|
||||||
-else
|
|
||||||
-LDFLAGS = -lpci -lz -static
|
|
||||||
-STRIP_ARGS = -s
|
-STRIP_ARGS = -s
|
||||||
-endif
|
+#STRIP_ARGS = -s
|
||||||
|
endif
|
||||||
|
|
||||||
OBJS = chipset_enable.o board_enable.o udelay.o jedec.o sst28sf040.o \
|
OBJS = chipset_enable.o board_enable.o udelay.o jedec.o stm50flw0x0x.c \
|
||||||
am29f040b.o mx29f002.o sst39sf020.o m29f400bt.o w49f002u.o \
|
@@ -31,12 +31,11 @@
|
||||||
@@ -30,7 +22,6 @@
|
|
||||||
|
# Set the flashrom version string from the highest revision number
|
||||||
|
# of the checked out flashrom files.
|
||||||
|
-SVNDEF := -D'FLASHROM_VERSION="$(shell svnversion -cn . \
|
||||||
|
+#SVNDEF := -D'FLASHROM_VERSION="$(shell svnversion -cn . \
|
||||||
|
| sed -e "s/.*://" -e "s/\([0-9]*\).*/\1/")"'
|
||||||
|
|
||||||
$(PROGRAM): $(OBJS)
|
$(PROGRAM): $(OBJS)
|
||||||
$(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
|
$(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
|
||||||
- $(STRIP) $(STRIP_ARGS) $(PROGRAM)
|
- $(STRIP) $(STRIP_ARGS) $(PROGRAM)
|
||||||
|
|
||||||
clean:
|
flashrom.o: flashrom.c
|
||||||
rm -f *.o *~
|
$(CC) -c $(CFLAGS) $(SVNDEF) $(CPPFLAGS) $< -o $@
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Summary: Simple program for reading/writing BIOS chips content
|
Summary: Simple program for reading/writing BIOS chips content
|
||||||
Name: flashrom
|
Name: flashrom
|
||||||
Version: 0
|
Version: 0
|
||||||
Release: 0.8.20080517svn3332%{?dist}
|
Release: 0.9.20080517svn3332%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
# svn -r 3332 export svn://linuxbios.org/repos/trunk/util/flashrom flashrom
|
# svn -r 3332 export svn://linuxbios.org/repos/trunk/util/flashrom flashrom
|
||||||
@ -26,7 +26,7 @@ and write new contents on the chips ("flash the chip").
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
# currently disabling DiscOnChip due to instability
|
# currently disabling DiscOnChip due to instability
|
||||||
CFLAGS="%{optflags} -DDISABLE_DOC" %{__make} %{?_smp_mflags}
|
CFLAGS="%{optflags} -D'FLASHROM_VERSION=\"3332\"' -DDISABLE_DOC" %{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||||||
@ -44,6 +44,9 @@ install -D -p -m644 %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8/%{name}.8
|
|||||||
%{_mandir}/man8/%{name}.*
|
%{_mandir}/man8/%{name}.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat May 17 2008 Peter Lemenkov <lemenkov@gmail.com> 0-0.9.20080517svn3332
|
||||||
|
- Fixed %patch0
|
||||||
|
|
||||||
* Sat May 17 2008 Peter Lemenkov <lemenkov@gmail.com> 0-0.8.20080517svn3332
|
* Sat May 17 2008 Peter Lemenkov <lemenkov@gmail.com> 0-0.8.20080517svn3332
|
||||||
- Support Pm49FL004/2 Block Locking Registers
|
- Support Pm49FL004/2 Block Locking Registers
|
||||||
- Add support for the Atmel AT25DF321 SPI flash
|
- Add support for the Atmel AT25DF321 SPI flash
|
||||||
|
Loading…
Reference in New Issue
Block a user