Skip to content

Commit

Permalink
Makefile: install optee_client_config.mk at INCLUDEDIR
Browse files Browse the repository at this point in the history
optee_client_config.mk should be installed to a more traditional and
common folder such as INCLUDEDIR instead of being installed directly to
DESTDIR (which can end up as / depending on the packaging system used).

This was noticed when packaging optee-client for OE, as DESTDIR gets set
to the deploy folder, which is later used as root for packaging
optee-client.

Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Acked-by: Jerome Forissier <jerome@forissier.org>
  • Loading branch information
ricardosalveti authored and jforissier committed Apr 29, 2021
1 parent 6782dcf commit 7c9c423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ distclean: clean

copy_export: build
mkdir -p $(DESTDIR)$(SBINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(INCLUDEDIR)
cp config.mk $(DESTDIR)/optee_client_config.mk
cp config.mk $(DESTDIR)/$(INCLUDEDIR)/optee_client_config.mk
cp -a ${O}/libteec/libteec.so* $(DESTDIR)$(LIBDIR)
cp -a ${O}/libteec/libteec.a $(DESTDIR)$(LIBDIR)
cp ${O}/tee-supplicant/tee-supplicant $(DESTDIR)$(SBINDIR)
Expand Down

0 comments on commit 7c9c423

Please sign in to comment.