diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-04-16 18:51:20 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-04-16 18:51:20 +0000 |
commit | 41decaa9fea506c08f210f411710951f4920b91d (patch) | |
tree | f84d747585e23d96842ff43f272016e2d0e2d0ef /package/libsysfs | |
parent | 0f620a15c57ceceabd761429a03240ccf97fd3c7 (diff) | |
download | buildroot-novena-41decaa9fea506c08f210f411710951f4920b91d.tar.gz buildroot-novena-41decaa9fea506c08f210f411710951f4920b91d.zip |
- install some more stuff that goes into staging_dir into the proper place.
First hunk of fixes for bug #1290
Diffstat (limited to 'package/libsysfs')
-rw-r--r-- | package/libsysfs/libsysfs.mk | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/package/libsysfs/libsysfs.mk b/package/libsysfs/libsysfs.mk index 8a0580684..adfad0311 100644 --- a/package/libsysfs/libsysfs.mk +++ b/package/libsysfs/libsysfs.mk @@ -34,10 +34,11 @@ libsysfs-source: $(DL_DIR)/$(LIBSYSFS_SOURCE) $(LIBSYSFS_DIR)/.unpacked: $(DL_DIR)/$(LIBSYSFS_SOURCE) $(LIBSYSFS_CAT) $(DL_DIR)/$(LIBSYSFS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - - touch $(LIBSYSFS_DIR)/.unpacked + $(CONFIG_UPDATE) $(@D) + touch $@ $(LIBSYSFS_DIR)/.configured: $(LIBSYSFS_DIR)/.unpacked - (cd $(LIBSYSFS_DIR); \ + (cd $(LIBSYSFS_DIR); rm -rf config.cache ; \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS) " \ LDFLAGS="$(TARGET_LDFLAGS)" \ @@ -45,25 +46,28 @@ $(LIBSYSFS_DIR)/.configured: $(LIBSYSFS_DIR)/.unpacked --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ --build=$(GNU_HOST_NAME) \ - --prefix=/ ); - touch $(LIBSYSFS_DIR)/.configured + --prefix=/usr \ + --sysconfdir=/etc \ + ); + touch $@ $(LIBSYSFS_DIR)/.compiled: $(LIBSYSFS_DIR)/.configured $(MAKE) -C $(LIBSYSFS_DIR) - touch $(LIBSYSFS_DIR)/.compiled + touch $@ -$(STAGING_DIR)/lib/libsysfs.so: $(LIBSYSFS_DIR)/.compiled +$(STAGING_DIR)/usr/lib/libsysfs.so: $(LIBSYSFS_DIR)/.compiled $(MAKE) -C $(LIBSYSFS_DIR) DESTDIR=$(STAGING_DIR) install - touch -c $(STAGING_DIR)/lib/libsysfs.so + touch -c $@ -$(TARGET_DIR)/usr/lib/libsysfs.so: $(STAGING_DIR)/lib/libsysfs.so - cp -dpf $(STAGING_DIR)/lib/libsysfs.so* $(TARGET_DIR)/usr/lib/ +$(TARGET_DIR)/usr/lib/libsysfs.so: $(STAGING_DIR)/usr/lib/libsysfs.so + cp -dpf $(STAGING_DIR)/usr/lib/libsysfs.so* $(TARGET_DIR)/usr/lib/ -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libsysfs.so libsysfs: uclibc $(TARGET_DIR)/usr/lib/libsysfs.so libsysfs-clean: -$(MAKE) -C $(LIBSYSFS_DIR) clean + -$(MAKE) -C $(LIBSYSFS_DIR) DESTDIR=$(STAGING_DIR) uninstall rm -f $(TARGET_DIR)/usr/lib/libsysfs.so* libsysfs-dirclean: |