From patchwork Wed Feb 11 14:32:52 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1815 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770820456; bh=mPSQ3Dh4h6PDd7Dw85JQ1xfVaCh3oF/ZaS+YF1tWqKw=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=eZq+VoFZz73B+/CVgcWsMcm4G38dSFYRJLOUe82aUuKpYLtfryHZrmtekKcG0HHbx pqX7X9yOl4I7yCXMRnoJX0WMedz16SSdXkr28fC7XJ6gXkIozsukuMo+l2LRksS0/v ifbgw9u607wWU/owiYcRMr+pJ5OfW6WZKrwk/O8Gz78sQBIQUvHn/rX7DSCBxPTFp5 OEY4aw37fSJfCe5V93hFmPuC9aEqd2gEIp/jvdL3/0UyTgTdQAzCqXYCBbpAfWcUJC vCFzpeslighxgzG4SuzPAGbc55gZMZUYDbiX9qrfHgBtSdK7gswZB8li2yzqfa5VkW v2GGxmH6/nOqw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id AC3AB69A8E for ; Wed, 11 Feb 2026 07:34:16 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id wnjO2nO9sKdS for ; Wed, 11 Feb 2026 07:34:16 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770820456; bh=mPSQ3Dh4h6PDd7Dw85JQ1xfVaCh3oF/ZaS+YF1tWqKw=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=eZq+VoFZz73B+/CVgcWsMcm4G38dSFYRJLOUe82aUuKpYLtfryHZrmtekKcG0HHbx pqX7X9yOl4I7yCXMRnoJX0WMedz16SSdXkr28fC7XJ6gXkIozsukuMo+l2LRksS0/v ifbgw9u607wWU/owiYcRMr+pJ5OfW6WZKrwk/O8Gz78sQBIQUvHn/rX7DSCBxPTFp5 OEY4aw37fSJfCe5V93hFmPuC9aEqd2gEIp/jvdL3/0UyTgTdQAzCqXYCBbpAfWcUJC vCFzpeslighxgzG4SuzPAGbc55gZMZUYDbiX9qrfHgBtSdK7gswZB8li2yzqfa5VkW v2GGxmH6/nOqw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 9B85969A89 for ; Wed, 11 Feb 2026 07:34:16 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770820455; bh=Ts1g3iA3yM+516BsQ7LTvmRRFKddz8srOPLil1VqhNE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XP95fGJ4QwV32t5OCVo0ooyGuERFXODLIXZOOOo+q3L7b9KfYmKZgT0u+OmOKftl4 Na94cFLOWBEe+aQPDBsTI8HborgB+hcVGFTThtNHeLlft/GssHoKtZJP3SxPecxXin 8+c+2DoJGsQI3Q/E3iT7901M4pxBPUBvxhqrmQS6VgRpYpJb7tyueEQA8q6/IzM9Az /btQl7xiXDNffVF2v4iiZ0zzRFJI7aHtoSLfyKGfKW8TWWLFCWkjx50t20QxniUkp/ xErTVC7BfD0M7DUyrXooFGh2z7XbwGgkEobJkPFLXv+lmQgufB1Do8it+iNHhmlQHm t4fhF1XY5I2MQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 9D55669A89; Wed, 11 Feb 2026 07:34:15 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id uEpW2gVZfRBO; Wed, 11 Feb 2026 07:34:15 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1770820450; bh=9z4YtPVZb62s2n0QzwgFf0A4Y7mMxhHT33iSY4fINmk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CTYP9SLflPHXZKA3ignHULLhJCnAmi8ve5fmKshURdW5TEgyrrIadZnEgzrfxWezf OOzpFrq7ff7EkafvBw2pYXx9AZ/Fmja7uBrO+5sVq8h4U3dh4VQn66063cEo6RCRVR YcGw7sMp2jRgcITQHaEm70CsV0KLgbSos/pztEQhqAXf2AzqTVVpXG7PsY/E7K7ZQ9 pGQD+p1fPjbE2i1DsHqUdAsZpRaNuvuzjaWhYFxOHWEMA3MT1ME2a7wB7xDdRmKO8E M26gY7+ndZzYvA11/HwjyuOrZhqExOvlz16LiH7FvGNPVvPvluzoh2Mbmd1M5hDvtw um82y+KlYnyvQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 6BA18699BF; Wed, 11 Feb 2026 07:34:10 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Wed, 11 Feb 2026 07:32:52 -0700 Message-ID: <20260211143309.1183113-5-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260211143309.1183113-1-sjg@u-boot.org> References: <20260211143309.1183113-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: TVKBPNWK44YYWAWTTP7N6JEKM7FT4KSN X-Message-ID-Hash: TVKBPNWK44YYWAWTTP7N6JEKM7FT4KSN X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass , "Claude Opus 4 . 6" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 04/12] x86: Move 16-bit binary rules to arch/x86/Makefile List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass The rules for extracting u-boot-x86-start16.bin and u-boot-x86-reset16.bin are x86-specific but live in the top-level Makefile. Move them to arch/x86/Makefile where they belong, dropping the outer ifdef CONFIG_X86 guard since that file is only included for x86 builds. Co-developed-by: Claude Opus 4.6 Signed-off-by: Simon Glass --- Makefile | 10 ---------- arch/x86/Makefile | 8 ++++++++ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index f9a24cf21a0..ee5b54c4c51 100644 --- a/Makefile +++ b/Makefile @@ -1694,16 +1694,6 @@ quiet_cmd_ldr = LD $@ cmd_ldr = $(LD) $(LDFLAGS_$(@F)) \ $(filter-out FORCE,$^) -o $@ -ifdef CONFIG_X86 -OBJCOPYFLAGS_u-boot-x86-start16.bin := -O binary -j .start16 -u-boot-x86-start16.bin: u-boot FORCE - $(call if_changed,objcopy) - -OBJCOPYFLAGS_u-boot-x86-reset16.bin := -O binary -j .resetvec -u-boot-x86-reset16.bin: u-boot FORCE - $(call if_changed,objcopy) - -endif # CONFIG_X86 OBJCOPYFLAGS_u-boot-app.efi := $(OBJCOPYFLAGS_EFI) u-boot-app.efi: u-boot dts/dt.dtb FORCE diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 7dc3171cebf..07e8df15afb 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -25,3 +25,11 @@ head-$(CONFIG_$(PHASE_)X86_16BIT_INIT) += arch/x86/cpu/resetvec.o libs-y += arch/x86/cpu/ libs-y += arch/x86/lib/ + +OBJCOPYFLAGS_u-boot-x86-start16.bin := -O binary -j .start16 +u-boot-x86-start16.bin: u-boot FORCE + $(call if_changed,objcopy) + +OBJCOPYFLAGS_u-boot-x86-reset16.bin := -O binary -j .resetvec +u-boot-x86-reset16.bin: u-boot FORCE + $(call if_changed,objcopy)