diff mbox series

[v2,09/10] platforms: put P8 platforms behind CONFIG_P8

Message ID 20210807042100.399449-10-npiggin@gmail.com
State Superseded
Headers show
Series hwprobe patches | expand

Commit Message

Nicholas Piggin Aug. 7, 2021, 4:20 a.m. UTC
From: Stewart Smith <stewart@flamingspork.com>

Shaves an additional 4kb off skiboot.lid.xz.

Signed-off-by: Stewart Smith <stewart@flamingspork.com>
---
 platforms/astbmc/Makefile.inc  | 12 ++++++++----
 platforms/ibm-fsp/Makefile.inc |  7 ++++++-
 2 files changed, 14 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/platforms/astbmc/Makefile.inc b/platforms/astbmc/Makefile.inc
index 070813231..1cdf37f2a 100644
--- a/platforms/astbmc/Makefile.inc
+++ b/platforms/astbmc/Makefile.inc
@@ -1,13 +1,17 @@ 
 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 rainier.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)