All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/swupdate: add staging install
@ 2022-12-08 21:03 conquistador
  2022-12-11 13:31 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: conquistador @ 2022-12-08 21:03 UTC (permalink / raw)
  To: buildroot

From: Andrey Grafin <conquistador@yandex-team.ru>

SWupdate provides API for external programs, so some headers and
libraries must be install to staging.

This patch installs headers and libs to STAGING_DIR, to prevent a
header name collision a subdirectory /usr/include/swupdate creates.

Signed-off-by: Andrey Grafin <conquistador@yandex-team.ru>
---
 package/swupdate/swupdate.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/swupdate/swupdate.mk b/package/swupdate/swupdate.mk
index ed0c1e56a8..54ae03f238 100644
--- a/package/swupdate/swupdate.mk
+++ b/package/swupdate/swupdate.mk
@@ -17,6 +17,7 @@ SWUPDATE_LICENSE_FILES = LICENSES/BSD-1-Clause.txt \
 	LICENSES/LGPL-2.1-or-later.txt \
 	LICENSES/MIT.txt \
 	LICENSES/OFL-1.1.txt
+SWUPDATE_INSTALL_STAGING = YES
 
 # swupdate uses $CROSS-cc instead of $CROSS-gcc, which is not
 # available in all external toolchains, and use CC for linking. Ensure
@@ -228,6 +229,11 @@ define SWUPDATE_BUILD_CMDS
 	$(TARGET_MAKE_ENV) $(SWUPDATE_MAKE_ENV) $(MAKE) -C $(@D) $(SWUPDATE_MAKE_OPTS)
 endef
 
+define SWUPDATE_INSTALL_STAGING_CMDS
+        $(TARGET_MAKE_ENV) $(SWUPDATE_MAKE_ENV) $(MAKE) -C $(@D) \
+                $(SWUPDATE_MAKE_OPTS) DESTDIR=$(STAGING_DIR) INCLUDEDIR=/usr/include/swupdate install
+endef
+
 define SWUPDATE_INSTALL_TARGET_CMDS
 	$(TARGET_MAKE_ENV) $(SWUPDATE_MAKE_ENV) $(MAKE) -C $(@D) \
 		$(SWUPDATE_MAKE_OPTS) DESTDIR=$(TARGET_DIR) install
-- 
2.37.4

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/swupdate: add staging install
  2022-12-08 21:03 [Buildroot] [PATCH 1/1] package/swupdate: add staging install conquistador
@ 2022-12-11 13:31 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-12-11 13:31 UTC (permalink / raw)
  To: conquistador; +Cc: buildroot

On Fri,  9 Dec 2022 00:03:28 +0300
conquistador@yandex-team.ru wrote:

> From: Andrey Grafin <conquistador@yandex-team.ru>
> 
> SWupdate provides API for external programs, so some headers and
> libraries must be install to staging.
> 
> This patch installs headers and libs to STAGING_DIR, to prevent a
> header name collision a subdirectory /usr/include/swupdate creates.
> 
> Signed-off-by: Andrey Grafin <conquistador@yandex-team.ru>
> ---
>  package/swupdate/swupdate.mk | 6 ++++++
>  1 file changed, 6 insertions(+)

Applied to master, thanks.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-11 13:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-08 21:03 [Buildroot] [PATCH 1/1] package/swupdate: add staging install conquistador
2022-12-11 13:31 ` Thomas Petazzoni via buildroot

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.