[Buildroot] [PATCH 1 of 5 v2] Makefile.package.in: add utility functions find*clauses and notfirstword

Cam Hutchison camh at xdna.net
Sat Nov 19 07:13:34 UTC 2011


Thomas De Schampheleire <patrickdepinguin+buildroot at gmail.com> writes:

Apologies if you have seen this, but I haven't seen my response to this
come through (probably a gmane stuffup).

>+# finddirclauses: creates "-wholename 'basedir/dirX' -o -wholename 'basedir/dirY'"
>+# [1:basedir, 2:namelist]
>+finddirclauses=-wholename '$(firstword $(2))' $(patsubst %,-o -wholename '$(1)/%',$(call notfirstword,$(2)))

I think the first -wholename argument is meant to be
  '$(1)/$(firstword $(2))'

according to the comment above it.

Also, my man page for find(1) says this about -wholename:
  See -path.    This alternative is less portable than -path.

Do you find -wholename to be more readable? It's not an option I've used
much, so I need to look up the man page anyway, but -path is easier to
look up because you do not get redirected to another option like you do
with -wholename.



More information about the buildroot mailing list