Skip to contentSkip to conversation

package/udev: move pkgconfig files to staging dir after install

PATCH New Daniel Mack 1 participant 2 messages Aug 16, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/udev: move pkgconfig files to staging dir after install

There is unfortunately no way to tell udev's configure process about the install location of its pkgconfig files. However, they should clearly end up in the staging area and not in the target.

---
 package/udev/udev.mk |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
package/udev/udev.mk +1 -0
index 567bbfb..f5bd893 100644
@@ -29,6 +29,7 @@ endif
 
 define UDEV_INSTALL_INITSCRIPT
 	$(INSTALL) -m 0755 package/udev/S10udev $(TARGET_DIR)/etc/init.d/S10udev
+	mv $(TARGET_DIR)/usr/lib/pkgconfig/*udev* $(STAGING_DIR)/usr/lib/pkgconfig/
 endef
 
 UDEV_POST_INSTALL_TARGET_HOOKS += UDEV_INSTALL_INITSCRIPT
Signature · 1 line
1.7.6
#1 lore raw

PATCH 2/2 package/libusb: move pkgconfig file to staging dir after install

There is unfortunately no way to tell udev's configure process about the install location of its pkgconfig files. However, should should clearly end up in the staging area and not in the target.

---
 package/libusb/libusb.mk |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
package/libusb/libusb.mk +6 -0
index 050e2ba..1dc28d9 100644
@@ -10,4 +10,10 @@ LIBUSB_DEPENDENCIES = host-pkg-config
 LIBUSB_INSTALL_STAGING = YES
 LIBUSB_INSTALL_TARGET = YES
 
+define LIBUSB_POST_INSTALL
+        mv $(TARGET_DIR)/usr/lib/pkgconfig/libusb*.pc $(STAGING_DIR)/usr/lib/pkgconfig/
+endef
+
+LIBUSB_POST_INSTALL_TARGET_HOOKS += LIBUSB_POST_INSTALL
+
 $(eval $(call AUTOTARGETS,package,libusb))
Signature · 1 line
1.7.6