Hi,
On Tue, 22 Jun 2021 12:12:02 +0200
"Yann E. MORIN" [off-list ref] wrote:
quoted
# $2: staging directory of the package
ifeq ($(BR2_PER_PACKAGE_DIRECTORIES),y)
define fixup-libtool-files
- $(Q)find $(2)/usr/lib* -name "*.la" | xargs --no-run-if-empty \
+ $(Q)find $(2) \( -path '$(2)/lib*' -o -path '$(2)/usr/lib*' \) \
+ -name "*.la" | xargs --no-run-if-empty \
$(SED) "s:$(PER_PACKAGE_DIR)/[^/]\+/:$(PER_PACKAGE_DIR)/$(1)/:g"
While at it, can you switch over to using find's -print0 and xarg's -0 ?
Yes, changed.
I will also change PATCH 10 of this series. Same construction in fixup-python-files
same sanction.
Regards,
Herv?
--
Herv? Codina, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com