modemmanager: handle no *.conf files being installed
authorPhilip Prindeville <redacted>
Wed, 6 Sep 2023 03:38:27 +0000 (21:38 -0600)
committerPhilip Prindeville <redacted>
Wed, 6 Sep 2023 03:38:27 +0000 (21:38 -0600)
commitaa03634cbcd837d25bc33c64aa9054cdd096e46d
treebfe8480232529be295bfb3a67f33d550c25107c2
parent1e1b2051db47a82513f4eb4e9da892207785b7e2
modemmanager: handle no *.conf files being installed

To begin with, there are only a couple of .conf files, and
one of them is for testing, and the other is only installed
when MBIM is enabled, so if you build without MBIM you'll
have a failing install:

  install -m0644 /home/pprindeville/work/openwrt/build_dir/target-x86_64_musl/modemmanager-1.20.6/ipkg-install/usr/share/ModemManager/*.conf /home/pprindeville/work/openwrt/build_dir/target-x86_64_musl/modemmanager-1.20.6/.pkgdir/modemmanager/usr/share/ModemManager
  install: cannot stat '/home/pprindeville/work/openwrt/build_dir/target-x86_64_musl/modemmanager-1.20.6/ipkg-install/usr/share/ModemManager/*.conf': No such file or directory
  make[2]: *** [Makefile:161: /home/pprindeville/work/openwrt/build_dir/target-x86_64_musl/modemmanager-1.20.6/.pkgdir/modemmanager.installed] Error 1
  make[2]: Leaving directory '/home/pprindeville/work/openwrt/feeds/packages/net/modemmanager'

So make sure there's anything there to copy over first.

Signed-off-by: Philip Prindeville <redacted>
net/modemmanager/Makefile
git clone https://git.99rst.org/PROJECT