public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Vitaly Kuznetsov <vkuznets@redhat.com>
To: Jan Stancek <jstancek@redhat.com>
Cc: hpa@zytor.com, linux-kernel@vger.kernel.org, jstancek@redhat.com,
	tglx@linutronix.de, mingo@redhat.com, bp@alien8.de,
	dave.hansen@linux.intel.com, x86@kernel.org
Subject: Re: [PATCH v2] x86: add $(srctree) as include dir for sbat.o
Date: Wed, 04 Mar 2026 09:45:14 +0100	[thread overview]
Message-ID: <875x7cf0f9.fsf@redhat.com> (raw)
In-Reply-To: <f4eda155b0cef91d4d316b4e92f5771cb0aa7187.1772047658.git.jstancek@redhat.com>

Jan Stancek <jstancek@redhat.com> writes:

> CONFIG_EFI_SBAT_FILE can be a relative path. When compiling with
> objdir != srctree the build currently fails because it can't find
> the file set in CONFIG_EFI_SBAT_FILE:
>     arch/x86/boot/compressed/sbat.S: Assembler messages:
>     arch/x86/boot/compressed/sbat.S:6: Error: file not found: kernel.sbat
>
> Add $(srctree) as include dir for sbat.o.
>
> Fixes: 61b57d35396a ("x86/efi: Implement support for embedding SBAT data for x86")
> Signed-off-by: Jan Stancek <jstancek@redhat.com>
> ---
>  arch/x86/boot/compressed/Makefile | 1 +
>  1 file changed, 1 insertion(+)
>
> Changes in v2: updated shortlog
>
> diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile
> index 68f9d7a1683b..b8b2b7bea1d3 100644
> --- a/arch/x86/boot/compressed/Makefile
> +++ b/arch/x86/boot/compressed/Makefile
> @@ -113,6 +113,7 @@ vmlinux-objs-$(CONFIG_EFI_SBAT) += $(obj)/sbat.o
>  
>  ifdef CONFIG_EFI_SBAT
>  $(obj)/sbat.o: $(CONFIG_EFI_SBAT_FILE)
> +AFLAGS_sbat.o += -I $(srctree)
>  endif
>  
>  $(obj)/vmlinux: $(vmlinux-objs-y) $(vmlinux-libs-y) FORCE

Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>

Thanks for the fix!

-- 
Vitaly


  reply	other threads:[~2026-03-04  8:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-06  8:01 [PATCH] arch/x86: add $(srctree) as include dir for sbat.o Jan Stancek
2026-02-25 19:30 ` [PATCH v2] x86: " Jan Stancek
2026-03-04  8:45   ` Vitaly Kuznetsov [this message]
2026-03-04 11:06   ` [tip: x86/urgent] x86/boot: Handle relative CONFIG_EFI_SBAT_FILE file paths tip-bot2 for Jan Stancek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875x7cf0f9.fsf@redhat.com \
    --to=vkuznets@redhat.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=jstancek@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox