libremesh / network-profiles

Set of profiles for the networks using LibreMesh
https://libremesh.org/development-network_profiles.html
44 stars 41 forks source link

root/ directory is needed by profile.mk, even if there is no need for it #86

Closed ilario closed 1 year ago

ilario commented 1 year ago

If you compile a profile without the root/ folder, like the libremesh/suggested-packages one, you get an error like:

cp -fpR -r ./root/* /home/ilario/software/openwrt19/build_dir/target-mipsel_24kc_musl/profile-libremesh-suggested-packages/.pkgdir/profile-libremesh-suggested-packages/
cp: cannot stat './root/*': No such file or directory
make[3]: *** [../../profile.mk:64: /home/ilario/software/openwrt19/build_dir/target-mipsel_24kc_musl/profile-libremesh-suggested-packages/.pkgdir/profile-libremesh-suggested-packages.installed] Error 1

adding an empty root/ directory is an annoying thing to do in git, so it would be better if profile.mk could check if the root directory exists here:

https://github.com/libremesh/network-profiles/blob/78d4c083245fa9720662bd4aa6e2ce1f5c62d4c7/profile.mk#L49-L52