Ticket #101: fr.Makefile.pciutils.patch

File fr.Makefile.pciutils.patch, 1.2 KB (added by stuge, 5 months ago)
  • Makefile

    flashrom: Remove pciutils check from Makefile
    
    Signed-off-by: Peter Stuge <peter@stuge.se>
    
     
    3131        flashrom.o w39v080fa.o sharplhf00l04.o w29ee011.o spi.o it87spi.o \ 
    3232        ichspi.o 
    3333 
    34 all: pciutils dep $(PROGRAM) 
     34all: dep $(PROGRAM) 
    3535 
    3636# Set the flashrom version string from the highest revision number 
    3737# of the checked out flashrom files. 
     
    5454dep: 
    5555        @$(CC) -MM *.c > .dependencies 
    5656 
    57 pciutils: 
    58         @echo; echo -n "Checking for pciutils and zlib... " 
    59         @$(shell ( echo "#include <pci/pci.h>";            \ 
    60                    echo "struct pci_access *pacc;";        \ 
    61                    echo "int main(int argc, char **argv)"; \ 
    62                    echo "{ pacc = pci_alloc(); return 0; }"; ) > .test.c ) 
    63         @$(CC) $(CFLAGS) .test.c -o .test $(LDFLAGS) &>/dev/null &&     \ 
    64                 echo "found." || ( echo "not found."; echo;             \ 
    65                 echo "Please install pciutils-devel and zlib-devel.";   \ 
    66                 echo "See README for more information."; echo;          \ 
    67                 rm -f .test.c .test; exit 1) 
    68         @rm -f .test.c .test 
    69  
    7057install: $(PROGRAM) 
    7158        $(INSTALL) $(PROGRAM) $(PREFIX)/sbin 
    7259        mkdir -p $(PREFIX)/share/man/man8