diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-09-16 12:19:03 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-09-16 12:19:03 +0000 |
commit | bf7c748aefdcef9fbb0c788d1a516693bdb2e543 (patch) | |
tree | ba4ae2e503ddbc9d37cb730bf880f086b9224e79 /Makefile | |
parent | 2fa6f73ce19a6c3582f597cfa331766c94c10963 (diff) | |
download | flashrom-bf7c748aefdcef9fbb0c788d1a516693bdb2e543.zip flashrom-bf7c748aefdcef9fbb0c788d1a516693bdb2e543.tar.gz |
Compile out wiki output on request and move wiki stuff into a separate file
This is useful for libflashrom (you don't need wiki output in a coreboot
payload). Wiki output is now disabled by default. If you want to enable it,
run make CONFIG_PRINT_WIKI=yes
Corresponding to flashrom svn r725.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -83,6 +83,9 @@ CONFIG_DUMMY ?= yes # Always enable Dr. Kaiser for now. CONFIG_DRKAISER ?= yes +# Always enable wiki printing for now. +CONFIG_PRINT_WIKI ?= no + ifeq ($(CONFIG_SERPROG), yes) FEATURE_CFLAGS += -D'SERPROG_SUPPORT=1' OBJS += serprog.o @@ -118,6 +121,11 @@ FEATURE_CFLAGS += -D'DRKAISER_SUPPORT=1' OBJS += drkaiser.o endif +ifeq ($(CONFIG_PRINT_WIKI), yes) +FEATURE_CFLAGS += -D'PRINT_WIKI_SUPPORT=1' +OBJS += print_wiki.o +endif + $(PROGRAM): $(OBJS) $(CC) $(LDFLAGS) -o $(PROGRAM) $(OBJS) $(LIBS) $(FEATURE_LIBS) |