mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +02:00
This patch is a rework of Adam Kaufman's Solaris patch
* flash.h: - add a license header - add system definitions * flash_enable.c: - put io priviledge access in one single place - add includes required for Solaris. * lbtable.c, flash_rom.c, 82802ab.c: - use MEM_DEV so it works on Solaris * sst49lfxxxc.c, sharplhf00l04.c, sst_fwhub.c, 82802ab.c - drop unneeded include to sys/io.h * Makefile - adapt to Solaris specifics. Corresponding to flashrom svn r88 and coreboot v2 svn r2550. Signed-off-by: Adam Kaufman <adam.kaufman@pinnacle.com> Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Adam Kaufman <adam.kaufman@pinnacle.com>
This commit is contained in:

committed by
Stefan Reinauer

parent
474230ad42
commit
064b1f23fa
9
Makefile
9
Makefile
@ -12,8 +12,13 @@ INSTALL = /usr/bin/install
|
||||
PREFIX = /usr/local
|
||||
#CFLAGS = -O2 -g -Wall -Werror
|
||||
CFLAGS = -Os -Wall -Werror -DDISABLE_DOC # -DTS5300
|
||||
OS_ARCH = $(shell uname)
|
||||
ifeq ($(OS_ARCH), SunOS)
|
||||
LDFLAGS = -lpci -lz
|
||||
else
|
||||
LDFLAGS = -lpci -lz -static
|
||||
|
||||
STRIP_ARGS = -s
|
||||
endif
|
||||
|
||||
OBJS = flash_enable.o udelay.o jedec.o sst28sf040.o am29f040b.o mx29f002.o \
|
||||
sst39sf020.o m29f400bt.o w49f002u.o 82802ab.o msys_doc.o pm49fl004.o \
|
||||
@ -24,7 +29,7 @@ all: pciutils dep $(PROGRAM)
|
||||
|
||||
$(PROGRAM): $(OBJS)
|
||||
$(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS)
|
||||
$(STRIP) -s $(PROGRAM)
|
||||
$(STRIP) $(STRIP_ARGS) $(PROGRAM)
|
||||
|
||||
clean:
|
||||
rm -f *.o *~
|
||||
|
Reference in New Issue
Block a user