package/swupdate: use $(SWUPDATE_PKGDIR) for pkgdir path
authorJames Hilliard <james.hilliard1@gmail.com>
Sat, 11 Sep 2021 16:50:19 +0000 (10:50 -0600)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 19 Sep 2021 07:35:08 +0000 (09:35 +0200)
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/swupdate/swupdate.mk

index c49af7ebf7f5c9f74522c086067b94388590bf6f..e191ab384a40b52e730beab3e3d81a0b488a9bb0 100644 (file)
@@ -238,30 +238,30 @@ endif
 define SWUPDATE_INSTALL_COMMON
        mkdir -p $(TARGET_DIR)/etc/swupdate/conf.d \
                $(TARGET_DIR)/usr/lib/swupdate/conf.d
-       $(INSTALL) -D -m 755 package/swupdate/swupdate.sh \
+       $(INSTALL) -D -m 755 $(SWUPDATE_PKGDIR)/swupdate.sh \
                $(TARGET_DIR)/usr/lib/swupdate/swupdate.sh
        $(if $(BR2_PACKAGE_SWUPDATE_WEBSERVER), \
-               $(INSTALL) -D -m 644 package/swupdate/10-mongoose-args \
+               $(INSTALL) -D -m 644 $(SWUPDATE_PKGDIR)/10-mongoose-args \
                        $(TARGET_DIR)/usr/lib/swupdate/conf.d/10-mongoose-args)
 endef
 define SWUPDATE_INSTALL_INIT_SYSTEMD
        $(SWUPDATE_INSTALL_COMMON)
-       $(INSTALL) -D -m 644 package/swupdate/swupdate.service \
+       $(INSTALL) -D -m 644 $(SWUPDATE_PKGDIR)/swupdate.service \
                $(TARGET_DIR)/usr/lib/systemd/system/swupdate.service
-       $(INSTALL) -D -m 644 package/swupdate/swupdate.socket \
+       $(INSTALL) -D -m 644 $(SWUPDATE_PKGDIR)/swupdate.socket \
                $(TARGET_DIR)/usr/lib/systemd/system/swupdate.socket
-       $(INSTALL) -D -m 644 package/swupdate/swupdate-usb@.service \
+       $(INSTALL) -D -m 644 $(SWUPDATE_PKGDIR)/swupdate-usb@.service \
                $(TARGET_DIR)/usr/lib/systemd/system/swupdate-usb@.service
-       $(INSTALL) -D -m 644 package/swupdate/swupdate-progress.service \
+       $(INSTALL) -D -m 644 $(SWUPDATE_PKGDIR)/swupdate-progress.service \
                $(TARGET_DIR)/usr/lib/systemd/system/swupdate-progress.service
-       $(INSTALL) -D -m 644 package/swupdate/tmpfiles-swupdate.conf \
+       $(INSTALL) -D -m 644 $(SWUPDATE_PKGDIR)/tmpfiles-swupdate.conf \
                $(TARGET_DIR)/usr/lib/tmpfiles.d/tmpfiles-swupdate.conf
 endef
 define SWUPDATE_INSTALL_INIT_SYSV
        $(SWUPDATE_INSTALL_COMMON)
-       $(INSTALL) -D -m 755 package/swupdate/S80swupdate \
+       $(INSTALL) -D -m 755 $(SWUPDATE_PKGDIR)/S80swupdate \
                $(TARGET_DIR)/etc/init.d/S80swupdate
-       $(INSTALL) -D -m 644 package/swupdate/90-start-progress \
+       $(INSTALL) -D -m 644 $(SWUPDATE_PKGDIR)/90-start-progress \
                $(TARGET_DIR)/usr/lib/swupdate/conf.d/90-start-progress
 endef