From 9d8e207e7aaf035f48252e19013b610893d2fce0 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Wed, 8 Feb 2023 14:35:21 +0100 Subject: [PATCH] package/qt6/qt6serialport: use DESTDIR instead of --prefix for installation Even though it works, overriding --prefix at installation time is a bit weird. In order to be more consistent with what is done with other build systems, use DESTDIR instead at installation time. Note that $(DESTDIR) comes in addition to the -DCMAKE_INSTALL_PREFIX=/usr that is passed at configure time, so with this commit, the files continue to be installed in $(STAGING_DIR)/usr and $(TARGET_DIR)/usr as they should be. Signed-off-by: Thomas Petazzoni --- package/qt6/qt6serialport/qt6serialport.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/qt6/qt6serialport/qt6serialport.mk b/package/qt6/qt6serialport/qt6serialport.mk index 9656e97c96..497719d4ec 100644 --- a/package/qt6/qt6serialport/qt6serialport.mk +++ b/package/qt6/qt6serialport/qt6serialport.mk @@ -41,11 +41,11 @@ define QT6SERIALPORT_BUILD_CMDS endef define QT6SERIALPORT_INSTALL_STAGING_CMDS - $(TARGET_MAKE_ENV) $(BR2_CMAKE) --install $(QT6SERIALPORT_BUILDDIR) --prefix $(STAGING_DIR)/usr + $(TARGET_MAKE_ENV) DESTDIR=$(STAGING_DIR) $(BR2_CMAKE) --install $(QT6SERIALPORT_BUILDDIR) endef define QT6SERIALPORT_INSTALL_TARGET_CMDS - $(TARGET_MAKE_ENV) $(BR2_CMAKE) --install $(QT6SERIALPORT_BUILDDIR) --prefix $(TARGET_DIR)/usr + $(TARGET_MAKE_ENV) DESTDIR=$(TARGET_DIR) $(BR2_CMAKE) --install $(QT6SERIALPORT_BUILDDIR) endef $(eval $(cmake-package))