Commit 3b5d95be authored by Thomas Petazzoni's avatar Thomas Petazzoni
Browse files

lvm2: prevent dmsetup from being re-installed every time



After being copied to target/, touch dmsetup so that its date is newer
than the .built stamp file in lvm2 source directory. This prevents
make from re-installing dmsetup every time.

Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent e8352988
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -86,9 +86,11 @@ $(LVM2_DIR)/.built: $(LVM2_DIR)/.configured

$(LVM2_TARGET_SBINS) $(LVM2_TARGET_DMSETUP_SBINS): $(LVM2_DIR)/.built
	cp -a $(STAGING_DIR)/sbin/$(notdir $@) $@
	touch $@

$(LVM2_TARGET_LIBS): $(LVM2_DIR)/.built
	cp -a $(STAGING_DIR)/lib/$(notdir $@) $@
	touch $@


ifeq ($(BR2_PACKAGE_LVM2_DMSETUP_ONLY),y)