esp-open-sdk
esp-open-sdk copied to clipboard
Missing tool permissions when compiling code
Description: The python script in the sdk folder are missing +x flag.
Error
$ make clean all
...
Run objcopy, please wait...
objcopy done
Run gen_appbin.py
make: /Volumes/esp/esp-open-sdk/sdk/tools/gen_appbin.py: Permission denied
make: *** [build/app.out] Error 1
Cause:
/Volumes/esp/esp-open-sdk/sdk/tools$ ls -la
total 72
drwxr-xr-x 8 angst admin 256B 16 Dez 12:23 ./
drwxr-xr-x 17 angst admin 544B 16 Dez 12:23 ../
-rwxr-xr-x 1 angst admin 2,1K 16 Dez 12:23 README.md*
-rw-r--r-- 1 angst admin 8,7K 16 Dez 12:23 gen_appbin.py
-rw-r--r-- 1 angst admin 2,2K 16 Dez 12:23 make_cacert.py
-rw-r--r-- 1 angst admin 2,6K 16 Dez 12:23 make_cert.py
-rwxr-xr-x 1 angst admin 6,4K 16 Dez 12:23 makefile.sh*
-rwxr-xr-x 1 angst admin 170B 16 Dez 12:23 rmfile.sh*
Fix
/Volumes/esp/esp-open-sdk/sdk/tools$ chmod +x *.py
Solution
Added this to the Makefile