diff mbox series

[6/7] platforms: put P8 platforms behind CONFIG_P8

Message ID 20210125005807.3019715-8-stewart@flamingspork.com
State Under Review
Headers show
Series Modularize hardware probing | expand

Commit Message

Stewart Smith Jan. 25, 2021, 12:58 a.m. UTC
Can shave an additional 4kb off skiboot.lid.xz

Signed-off-by: Stewart Smith <stewart@flamingspork.com>
---
 platforms/astbmc/Makefile.inc | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

Comments

Vasant Hegde Feb. 12, 2021, 6:50 a.m. UTC | #1
On 1/25/21 6:28 AM, Stewart Smith wrote:
> Can shave an additional 4kb off skiboot.lid.xz
> 
> Signed-off-by: Stewart Smith <stewart@flamingspork.com>
> ---
>   platforms/astbmc/Makefile.inc | 12 ++++++++----
>   1 file changed, 8 insertions(+), 4 deletions(-)
> 
> diff --git a/platforms/astbmc/Makefile.inc b/platforms/astbmc/Makefile.inc
> index 24e94039..bd0e578f 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

May be we can put firenze (platforms/ibm-fsp/firenze.c) behind CONFIG_P8.

-Vasant


> +
>   ASTBMC = $(PLATDIR)/astbmc/built-in.a
>   $(ASTBMC): $(ASTBMC_OBJS:%=$(PLATDIR)/astbmc/%)
>
diff mbox series

Patch

diff --git a/platforms/astbmc/Makefile.inc b/platforms/astbmc/Makefile.inc
index 24e94039..bd0e578f 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/%)