From patchwork Wed Apr 13 12:06:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?C=C3=A9dric_Le_Goater?= X-Patchwork-Id: 609989 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3qlMwt5BB0z9t0t for ; Wed, 13 Apr 2016 22:06:54 +1000 (AEST) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3qlMwt4MtfzDqD5 for ; Wed, 13 Apr 2016 22:06:54 +1000 (AEST) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) (using TLSv1.2 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3qlMwf4bCXzDq60 for ; Wed, 13 Apr 2016 22:06:42 +1000 (AEST) Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 13 Apr 2016 13:06:39 +0100 Received: from d06dlp02.portsmouth.uk.ibm.com (9.149.20.14) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 13 Apr 2016 13:06:36 +0100 X-IBM-Helo: d06dlp02.portsmouth.uk.ibm.com X-IBM-MailFrom: clg@fr.ibm.com X-IBM-RcptTo: skiboot@lists.ozlabs.org Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 60F592190068 for ; Wed, 13 Apr 2016 13:06:14 +0100 (BST) Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u3DC6ZmP51445848 for ; Wed, 13 Apr 2016 12:06:35 GMT Received: from d06av03.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u3DC6Yvw030324 for ; Wed, 13 Apr 2016 06:06:34 -0600 Received: from hermes.ibm.com (icon-9-164-142-221.megacenter.de.ibm.com [9.164.142.221]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id u3DC6X2I030286; Wed, 13 Apr 2016 06:06:33 -0600 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: skiboot@lists.ozlabs.org Date: Wed, 13 Apr 2016 14:06:23 +0200 Message-Id: <1460549184-24312-1-git-send-email-clg@fr.ibm.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16041312-0009-0000-0000-000012240D7C Subject: [Skiboot] [RFC PATCH 1/2] config: introduce CONFIG_FSP in Makefiles X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Here is a quick patch to remove support of FSP based systems in skiboot. The goal is to reduce the size of skiboot which is limited to 1MB on OpenPOWER systems. To activate support, one needs to add CONFIG_FSP=1 to the make command line. Signed-off-by: Cédric Le Goater --- Makefile.main | 4 ++++ hw/Makefile.inc | 2 ++ platforms/Makefile.inc | 4 ++++ 3 files changed, 10 insertions(+) Index: skiboot.git/hw/Makefile.inc =================================================================== --- skiboot.git.orig/hw/Makefile.inc +++ skiboot.git/hw/Makefile.inc @@ -9,7 +9,9 @@ HW_OBJS += phb3.o sfc-ctrl.o fake-rtc.o HW_OBJS += dts.o lpc-rtc.o npu.o npu-hw-procedures.o HW=hw/built-in.o +ifeq ($(CONFIG_FSP),1) include $(SRC)/hw/fsp/Makefile.inc +endif include $(SRC)/hw/ec/Makefile.inc include $(SRC)/hw/ast-bmc/Makefile.inc include $(SRC)/hw/ipmi/Makefile.inc Index: skiboot.git/platforms/Makefile.inc =================================================================== --- skiboot.git.orig/platforms/Makefile.inc +++ skiboot.git/platforms/Makefile.inc @@ -1,9 +1,13 @@ +# -*-Makefile-*- + PLATDIR = platforms SUBDIRS += $(PLATDIR) PLATFORMS = $(PLATDIR)/built-in.o +ifeq ($(CONFIG_FSP),1) include $(SRC)/$(PLATDIR)/ibm-fsp/Makefile.inc +endif include $(SRC)/$(PLATDIR)/rhesus/Makefile.inc include $(SRC)/$(PLATDIR)/astbmc/Makefile.inc include $(SRC)/$(PLATDIR)/mambo/Makefile.inc Index: skiboot.git/Makefile.main =================================================================== --- skiboot.git.orig/Makefile.main +++ skiboot.git/Makefile.main @@ -65,6 +65,10 @@ CFLAGS += -Wl,--oformat,elf64-powerpc CFLAGS += $(call try-cflag,$(CC),-mabi=elfv1) CFLAGS += $(call try-cflag,$(CC),-std=gnu11) +ifeq ($(CONFIG_FSP),1) +CFLAGS += -DCONFIG_FSP +endif + ifeq ($(SKIBOOT_GCOV),1) CFLAGS += -fprofile-arcs -ftest-coverage -DSKIBOOT_GCOV=1 endif