From eb2f2886b2364e5b6a0867f55106bf83acb064e7 Mon Sep 17 00:00:00 2001 From: Andrey Grafin Date: Fri, 9 Dec 2022 00:03:28 +0300 Subject: [PATCH] package/swupdate: add staging install 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 Signed-off-by: Thomas Petazzoni --- 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