Skip to content

Commit

Permalink
Experimental support for building without FSP code
Browse files Browse the repository at this point in the history
Now, with CONFIG_FSP=0/1 we have:
1.6M/1.4M skiboot.lid
323K/375K skiboot.lid.xz

Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
stewartsmith committed Jun 24, 2019
1 parent 6336456 commit 46a5902
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Expand Up @@ -44,6 +44,8 @@ LITTLE_ENDIAN ?= 0
ELF_ABI_v2 ?= $(LITTLE_ENDIAN)
# Discard unreferenced code and data at link-time
DEAD_CODE_ELIMINATION ?= 0
# Try to build without FSP code
CONFIG_FSP?=1

#
# Where is the source directory, must be a full path (no ~)
Expand All @@ -62,4 +64,3 @@ DEVSRC=hdata
CONFIG := config.h

include $(SRC)/Makefile.main

3 changes: 3 additions & 0 deletions hw/fsp/Makefile.inc
Expand Up @@ -7,4 +7,7 @@ FSP_OBJS += fsp-elog-read.o fsp-elog-write.o fsp-epow.o fsp-dpo.o
FSP_OBJS += fsp-dump.o fsp-mdst-table.o fsp-chiptod.o fsp-ipmi.o
FSP_OBJS += fsp-attn.o fsp-occ.o fsp-psi.o
FSP = hw/fsp/built-in.a

ifeq ($(CONFIG_FSP),1)
$(FSP): $(FSP_OBJS:%=hw/fsp/%)
endif
3 changes: 3 additions & 0 deletions platforms/ibm-fsp/Makefile.inc
Expand Up @@ -3,4 +3,7 @@ SUBDIRS += $(PLATDIR)/ibm-fsp
IBM_FSP_OBJS = common.o lxvpd.o hostservices.o fsp-vpd.o \
firenze.o firenze-pci.o zz.o
IBM_FSP = $(PLATDIR)/ibm-fsp/built-in.a

ifeq ($(CONFIG_FSP),1)
$(IBM_FSP): $(IBM_FSP_OBJS:%=$(PLATDIR)/ibm-fsp/%)
endif

0 comments on commit 46a5902

Please sign in to comment.