From nobody Fri Apr 19 13:23:22 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1618568745; cv=none; d=zohomail.com; s=zohoarc; b=ZQ3bPmg/Hq6ucgnOeNDCed7cV7yb9ffs/as61sn6cc0F9ARJvI8j1+xCV6qPpxTzKWiQCriVcxQPn/he8a5lB3VReGMdo9hQxQELlo1v5EpTN2hbdqYIYr7FYDFMtArF2lf4Fl1B2vRuq5wWB9yCVIR1TIilD6u7tksL9TOlimo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1618568745; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Subject:To; bh=QVLsbqIKKv4MswIt2RxtCP+s6bY1zMI+Qo2ook7JPl0=; b=Pkk/WweFsLR3aU2IHbr3LEnjh1imAPThISka265rJ0jlJQnD24TJcEsGlHHisarkQKUeVDwHlw/Tuo3A9jvhP3Mf/5mvUNSbOFpJ1qgT/mjPRuZC3doFrXoO+rH77ozG89hSN0cB+zrIG+0A6rNWGLX7BreJPJgm5RsatmfcGzg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from coreboot.org (coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1618568745283444.7174998316915; Fri, 16 Apr 2021 03:25:45 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id 9D9D616A09CF; Fri, 16 Apr 2021 10:25:41 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id 902DF16A09C2 for ; Fri, 16 Apr 2021 10:25:23 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-294-GkyfXpN_MuyQHn7GMlKFDQ-1; Fri, 16 Apr 2021 06:25:19 -0400 Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2C537107ACC7 for ; Fri, 16 Apr 2021 10:25:19 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BE7BB5B4BC; Fri, 16 Apr 2021 10:25:15 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) id D08EC18000A1; Fri, 16 Apr 2021 12:25:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1618568722; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=omUyYKW+a+X4WEP70OaxiTsxKg6wa6KOgYAsArRD+WU=; b=NLoZyRqXp0RzPmVFQ7cE68xSRdbl4TqsDFDodCSHamZW/IUxGXt9MzlzVhm4zz2mHM9DAN gVMc6/6bnvLAqnwCy181RVzbThSHkXm36tPF6l3gBWQUz9ynZ4LjmOk7dF+/UEN+gXvrIM McB7nWk0tLBZLzKsYqvlmEpVkjTnvVw= X-MC-Unique: GkyfXpN_MuyQHn7GMlKFDQ-1 From: Gerd Hoffmann To: seabios@seabios.org Date: Fri, 16 Apr 2021 12:25:13 +0200 Message-Id: <20210416102513.3058509-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: DIFVL4BF4P4MXYG7232TPLVUPDG2XRU6 X-Message-ID-Hash: DIFVL4BF4P4MXYG7232TPLVUPDG2XRU6 X-MailFrom: kraxel@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-seabios.seabios.org-0; header-match-seabios.seabios.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Gerd Hoffmann X-Mailman-Version: 3.3.4b1 Precedence: list Subject: [SeaBIOS] [PATCH] make BUILD_MIN_BIOSTABLE configurable List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable Authentication-Results: coreboot.org; auth=pass smtp.auth=mailman@coreboot.org smtp.mailfrom=seabios-bounces@seabios.org X-Spamd-Bar: / X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Add config option for BUILD_MIN_BIOSTABLE. Default is 8k for bios images being 256k or larger in size, 2k (current value) otherwise. Signed-off-by: Gerd Hoffmann --- Makefile | 2 +- scripts/layoutrom.py | 3 ++- src/Kconfig | 7 +++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3d8943ef5f25..ddcd1dff399d 100644 --- a/Makefile +++ b/Makefile @@ -172,7 +172,7 @@ $(OUT)romlayout16.lds: $(OUT)ccode32flat.o $(OUT)code32= seg.o $(OUT)ccode16.o $(O $(Q)$(OBJDUMP) -thr $(OUT)code32flat.o > $(OUT)code32flat.o.objdump $(Q)$(OBJDUMP) -thr $(OUT)code32seg.o > $(OUT)code32seg.o.objdump $(Q)$(OBJDUMP) -thr $(OUT)code16.o > $(OUT)code16.o.objdump - $(Q)$(PYTHON) ./scripts/layoutrom.py $(OUT)code16.o.objdump $(OUT)code32s= eg.o.objdump $(OUT)code32flat.o.objdump $(OUT)$(KCONFIG_AUTOHEADER) $(OUT)r= omlayout16.lds $(OUT)romlayout32seg.lds $(OUT)romlayout32flat.lds + $(Q)$(PYTHON) ./scripts/layoutrom.py $(OUT)code16.o.objdump $(OUT)code32s= eg.o.objdump $(OUT)code32flat.o.objdump $(OUT)$(KCONFIG_AUTOHEADER) $(OUT)r= omlayout16.lds $(OUT)romlayout32seg.lds $(OUT)romlayout32flat.lds $(CONFIG_= MIN_BIOSTABLE) =20 # These are actually built by scripts/layoutrom.py above, but by pulling t= hem # into an extra rule we prevent make -j from spawning layoutrom.py 4 times. diff --git a/scripts/layoutrom.py b/scripts/layoutrom.py index 6616721d1b58..94deca9fcc85 100755 --- a/scripts/layoutrom.py +++ b/scripts/layoutrom.py @@ -636,7 +636,8 @@ def scanconfig(file): =20 def main(): # Get output name - in16, in32seg, in32flat, cfgfile, out16, out32seg, out32flat =3D sys.a= rgv[1:] + in16, in32seg, in32flat, cfgfile, out16, out32seg, out32flat, biostabl= e =3D sys.argv[1:] + BUILD_MIN_BIOSTABLE =3D biostable * 1024 =20 # Read in the objdump information infile16 =3D open(in16, 'r') diff --git a/src/Kconfig b/src/Kconfig index 3a8ffa15fded..95519fc50fa3 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -140,6 +140,13 @@ endchoice it into 128 KB (which was big enouth for a long time) you'll probably have to disable some featues such as xhci support. =20 + config MIN_BIOSTABLE + int "biostable size (in KB)" + default 8 if ROM_SIZE >=3D 256 + default 2 + help + Memory space for BIOS tables in f-segment. + endmenu =20 menu "Hardware support" --=20 2.30.2 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org