core/pkg-generic: redirect only when listing package's installed files
There is no need to redirect again and again for each new file added to the list; we can just redirect once and for all. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
306ad0181a
commit
d63670009b
@ -83,8 +83,8 @@ define step_pkg_size_end
|
|||||||
$(call _step_pkg_size_get_file_list,$($(PKG)_DIR)/.br_filelist_after)
|
$(call _step_pkg_size_get_file_list,$($(PKG)_DIR)/.br_filelist_after)
|
||||||
comm -13 $($(PKG)_DIR)/.br_filelist_before $($(PKG)_DIR)/.br_filelist_after | \
|
comm -13 $($(PKG)_DIR)/.br_filelist_before $($(PKG)_DIR)/.br_filelist_after | \
|
||||||
while read hash file ; do \
|
while read hash file ; do \
|
||||||
echo "$(1),$${file}" >> $(BUILD_DIR)/packages-file-list.txt ; \
|
echo "$(1),$${file}" ; \
|
||||||
done
|
done >> $(BUILD_DIR)/packages-file-list.txt
|
||||||
rm -f $($(PKG)_DIR)/.br_filelist_before $($(PKG)_DIR)/.br_filelist_after
|
rm -f $($(PKG)_DIR)/.br_filelist_before $($(PKG)_DIR)/.br_filelist_after
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user