diff mbox series

[v5,9/9] platforms: put P8 platforms behind CONFIG_P8

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

Checks

Context Check Description
snowpatch_ozlabs/github-Docker_builds_and_checks fail 9 of 9 jobs failed.

Commit Message

Nicholas Piggin Dec. 20, 2021, 12:22 p.m. UTC
From: Stewart Smith <stewart@flamingspork.com>

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

Reviewed-by: Dan Horák <dan@danny.cz>
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)