summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-12-24 03:11:55 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-12-24 03:11:55 +0000
commitbadd99addb64035cc139d22a647ce3f7af753e1d (patch)
tree0522bdd685b608f066795f75bb905b31c3b56b43 /Makefile
parent21d8739c88726bc84be0e5108579bd4f236d13c2 (diff)
downloadflashrom-badd99addb64035cc139d22a647ce3f7af753e1d.zip
flashrom-badd99addb64035cc139d22a647ce3f7af753e1d.tar.gz
Internal.c was always compiled in because it hosted the function internal_delay()
Move that function to udelay.c and compile internal.c only if really needed. physmap.c is only needed if the programmer is internal or a PCI card. Make its compilation conditional. Corresponding to flashrom svn r822. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Idwer Vollering <vidwer@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 77731ed..20c9bab 100644
--- a/Makefile
+++ b/Makefile
@@ -47,7 +47,7 @@ OBJS = jedec.o stm50flw0x0x.o w39v080fa.o sharplhf00l04.o w29ee011.o \
sst28sf040.o am29f040b.o mx29f002.o m29f400bt.o pm29f002.o w39v040c.o \
w49f002u.o 82802ab.o pm49fl00x.o sst49lf040.o en29f002a.o m29f002.o \
sst49lfxxxc.o sst_fwhub.o flashchips.o layout.o spi.o \
- flashrom.o print.o physmap.o internal.o udelay.o
+ flashrom.o print.o udelay.o
all: pciutils features dep $(PROGRAM)
@@ -168,7 +168,7 @@ endif
ifeq ($(NEED_PCI), yes)
FEATURE_CFLAGS += -D'NEED_PCI=1'
-OBJS += pcidev.o
+OBJS += pcidev.o physmap.o internal.o
endif
ifeq ($(CONFIG_PRINT_WIKI), yes)
OpenPOWER on IntegriCloud