[Skiboot] [PATCH 09/10] platforms: put P8 platforms behind CONFIG_P8
Nicholas Piggin
npiggin at gmail.com
Sat Jun 26 12:38:23 AEST 2021
From: Stewart Smith <stewart at flamingspork.com>
Shaves an additional 4kb off skiboot.lid.xz.
Signed-off-by: Stewart Smith <stewart at flamingspork.com>
---
platforms/astbmc/Makefile.inc | 12 ++++++++----
platforms/ibm-fsp/Makefile.inc | 7 ++++++-
2 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/platforms/astbmc/Makefile.inc b/platforms/astbmc/Makefile.inc
index 24e94039f..bd0e578f0 100644
--- a/platforms/astbmc/Makefile.inc
+++ b/platforms/astbmc/Makefile.inc
@@ -1,14 +1,18 @@
SUBDIRS += $(PLATDIR)/astbmc
ASTBMC_OBJS = pnor.o common.o slots.o \
- palmetto.o habanero.o firestone.o \
- p8dtu.o p8dnu.o \
- garrison.o barreleye.o \
witherspoon.o zaius.o romulus.o p9dsu.o \
- vesnin.o nicole.o mihawk.o mowgli.o \
+ nicole.o mihawk.o mowgli.o \
talos.o blackbird.o \
swift.o
+ifeq ($(CONFIG_P8),1)
+ASTBMC_OBJS += palmetto.o habanero.o firestone.o \
+ p8dtu.o p8dnu.o \
+ garrison.o barreleye.o \
+ vesnin.o
+endif
+
ASTBMC = $(PLATDIR)/astbmc/built-in.a
$(ASTBMC): $(ASTBMC_OBJS:%=$(PLATDIR)/astbmc/%)
diff --git a/platforms/ibm-fsp/Makefile.inc b/platforms/ibm-fsp/Makefile.inc
index 8883f09c1..fd80a79a9 100644
--- a/platforms/ibm-fsp/Makefile.inc
+++ b/platforms/ibm-fsp/Makefile.inc
@@ -1,7 +1,12 @@
SUBDIRS += $(PLATDIR)/ibm-fsp
IBM_FSP_OBJS = common.o lxvpd.o hostservices.o fsp-vpd.o \
- firenze.o firenze-pci.o zz.o
+ firenze-pci.o zz.o
+
+ifeq ($(CONFIG_P8),1)
+IBM_FSP_OBJS += firenze.o
+endif
+
IBM_FSP = $(PLATDIR)/ibm-fsp/built-in.a
ifeq ($(CONFIG_FSP),1)
--
2.23.0
More information about the Skiboot
mailing list