From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Michael Tretter <m.tretter@pengutronix.de>
Subject: Re: [ptxdist] [APPLIED] optee-test: set libdir and bindir
Date: Sat, 5 Jul 2025 10:22:22 +0200 [thread overview]
Message-ID: <20250705082222.1506304-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20250626150657.2728049-5-m.tretter@pengutronix.de>
Thanks, applied as dd4378735f06f9bb5a5dc53944f7a82e7ab5da56.
Michael
[sent from post-receive hook]
On Sat, 05 Jul 2025 10:22:22 +0200, Michael Tretter <m.tretter@pengutronix.de> wrote:
> optee-test by default sets ${libdir} to /lib and ${bindir} to /bin. As a
> workaround, the ptxdist rule adds /usr to ${DESTDIR} to install into
> /usr. This doesn't work, if files not be installed into /usr or a path
> already contains /usr.
>
> Thus, set libdir and bindir to include /usr and drop /usr from DESTDIR
> to install files relative to the root directory.
>
> Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
> Message-Id: <20250626150657.2728049-5-m.tretter@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
>
> diff --git a/rules/optee-test.make b/rules/optee-test.make
> index 83b149461afd..4984c2bed16f 100644
> --- a/rules/optee-test.make
> +++ b/rules/optee-test.make
> @@ -36,7 +36,9 @@ OPTEE_TEST_MAKE_ENV := \
> CROSS_COMPILE_TA=$(call remove_quotes,$(PTXCONF_COMPILER_PREFIX)) \
> TA_DEV_KIT_DIR=$(PTXDIST_SYSROOT_TARGET)/usr/lib/optee-os \
> OPTEE_CLIENT_EXPORT=$(PTXDIST_SYSROOT_TARGET)/usr \
> - COMPILE_NS_USER=32 OPTEE_OPENSSL_EXPORT=$(PTXDIST_SYSROOT_TARGET)/usr/lib
> + COMPILE_NS_USER=32 OPTEE_OPENSSL_EXPORT=$(PTXDIST_SYSROOT_TARGET)/usr/lib \
> + bindir=/usr/bin \
> + libdir=/usr/lib
>
> OPTEE_TEST_CFLAGS := \
> -Wno-error=deprecated-declarations
> @@ -45,7 +47,7 @@ OPTEE_TEST_CFLAGS := \
> # Install
> # ----------------------------------------------------------------------------
>
> -OPTEE_TEST_INSTALL_OPT := install DESTDIR=$(OPTEE_TEST_PKGDIR)/usr/
> +OPTEE_TEST_INSTALL_OPT := install DESTDIR=$(OPTEE_TEST_PKGDIR)
>
> $(STATEDIR)/optee-test.install:
> @$(call targetinfo)
next prev parent reply other threads:[~2025-07-05 8:22 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-26 15:06 [ptxdist] [PATCH 1/7] optee: version bump 4.5.0 -> 4.6.0 Michael Tretter
2025-06-26 15:06 ` [ptxdist] [PATCH 2/7] optee-client: switch to cmake Michael Tretter
2025-07-05 8:22 ` [ptxdist] [APPLIED] " Michael Olbrich
2025-06-26 15:06 ` [ptxdist] [PATCH 3/7] optee-client: set OPTEE_CLIENT_LICENSE_FILES Michael Tretter
2025-07-05 8:22 ` [ptxdist] [APPLIED] " Michael Olbrich
2025-06-26 15:06 ` [ptxdist] [PATCH 4/7] optee-client: add option for supplicant plugin support Michael Tretter
2025-07-05 8:22 ` [ptxdist] [APPLIED] " Michael Olbrich
2025-06-26 15:06 ` [ptxdist] [PATCH 5/7] optee-test: set libdir and bindir Michael Tretter
2025-07-05 8:22 ` Michael Olbrich [this message]
2025-06-26 15:06 ` [ptxdist] [PATCH 6/7] optee-test: install tee-supplicant plugins Michael Tretter
2025-07-05 8:22 ` [ptxdist] [APPLIED] " Michael Olbrich
2025-06-26 15:06 ` [ptxdist] [PATCH 7/7] optee-test: set OPTEE_TEST_LICENSE_FILES Michael Tretter
2025-07-05 8:22 ` [ptxdist] [APPLIED] " Michael Olbrich
2025-07-05 8:22 ` [ptxdist] [APPLIED] optee: version bump 4.5.0 -> 4.6.0 Michael Olbrich
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=20250705082222.1506304-1-m.olbrich@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=m.tretter@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/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