No, it
can't be there because libosmocore subdir has to stay an exact
copy of the libosmocore git for git-subtree to work properly.
Please apply it there then.
Well, no ... these have nothing to do in the global libosmocore, the
build-host build-target are just an artifact of the osmocom-bb build
system.
The correct solution is to use the top level osmocom-bb .gitignore