Hi. I only checked where in the the log file the system was searching for the wlan drivers and having issues. If they aren’t there in your build, just copy them there.
The Makefile as shown just creates two symbolic links from the “persist” folder to the newly created (mkdir) target etc folder. For me all this looks good. If you look at the system image, you should be able to find the file under:
as a symbolic link like this:
./system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin -> /persist/WCNSS_qcom_wlan_nv.bin
Maybe you have a broken symbolic link?
/persist/WCNSS_qcom_wlan_nv.bin is not around or does not get copied to the image, the file will not be around. So you need the file that provides the persist “folder” as well.
Normally there should be a “persist.img” as well that supplies this folder.
Note: I hope this will not kill your system, but maybe you need to do something like
fastboot flash persist persist.img. Have you found something like this for Firefox OS? Please check if something similar is done during the flash process.