All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Sourabh Hegde <hrsourabh011@gmail.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] Error while building tpm2-tools package with fapi support
Date: Sat, 20 May 2023 21:24:37 +0200	[thread overview]
Message-ID: <20230520212437.2125e68b@windsurf> (raw)
In-Reply-To: <CADYjeSuBBWWpoD3HKWQ6H0RV_EL4WAsBHxvHGTiV3P_-JrLy3g@mail.gmail.com>

Hello,

On Fri, 19 May 2023 12:59:30 +0200
Sourabh Hegde <hrsourabh011@gmail.com> wrote:

> Hello All,
> 
> I am trying to build the package tpm2-tools
> https://github.com/buildroot/buildroot/tree/master/package/tpm2-tools with
> "fapi tools" option enabled
> https://github.com/buildroot/buildroot/blob/603df32a0cd416caa2d2688008cb87f14ad68ef3/package/tpm2-tools/Config.in#L26
>  (BR2_PACKAGE_TPM2_TOOLS_FAPI=y, BR2_PACKAGE_TPM2_TSS_FAPI=y).
> But this results in below error

I have just built the following configuration:

BR2_arm=y
BR2_cortex_a9=y
BR2_ARM_ENABLE_VFP=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
BR2_INIT_NONE=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_TPM2_TOOLS=y
BR2_PACKAGE_TPM2_TOOLS_FAPI=y
# BR2_TARGET_ROOTFS_TAR is not set

and it builds just fine here. Could you share your .config, or a
minimal configuration that exhibits the problem?

> checking for TSS2_FAPI... no
> configure: error: Required module tss2-fapi not found

It is simply using pkg-config to detect TSS2_FAPI. tpm2-tools correctly
has a dependency on host-pkgconf and tpm2-tss properly installs
tss2-fapi.pc.

So my guess is that you are doing a partial rebuild. You did a first
build without BR2_PACKAGE_TPM2_TOOLS_FAPI enabled, and then enabled it.
Thing is that tpm2-tss was already built as part of a previous build,
but without FAPI support.

See https://buildroot.org/downloads/manual/manual.html#full-rebuild for
some details on this.

Best regards,

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2023-05-20 19:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-19 10:59 [Buildroot] Error while building tpm2-tools package with fapi support Sourabh Hegde
2023-05-20 19:24 ` Thomas Petazzoni via buildroot [this message]
2023-05-20 21:34   ` Sourabh Hegde
2023-05-22 14:16     ` Thomas Petazzoni via buildroot
2023-06-13 21:21       ` Sourabh Hegde

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=20230520212437.2125e68b@windsurf \
    --to=buildroot@buildroot.org \
    --cc=hrsourabh011@gmail.com \
    --cc=thomas.petazzoni@bootlin.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.