pfalcon / esp-open-sdk

Free and open (as much as possible) integrated SDK for ESP8266/ESP8285 chips
1.97k stars 624 forks source link

$ make STANDALONE=y build #93

Open lloyd-g opened 9 years ago

lloyd-g commented 9 years ago

followed "$ make STANDALONE=y" but xtensa-lx106-elf-gcc was not installed into opt/ folder. and when I run make file pointing to ~/esp-open-sdk/ and folders below it can't find ld scripts but they are there? is there a good makefile and example you could recommended?

systemparanoia commented 8 years ago

Also having issues with the same. doesnt work if i run it as sudo or not

Now configured for "xtensa-lx106-elf" make[2]: Leaving directory '/home/crunch/GIT/esp-open-sdk/crosstool-NG' sed -r -i.org s%CT_PREFIXDIR=.%CT_PREFIX_DIR="/xtensa-lx106-elf"% .config sed -r -i s%CT_INSTALL_DIR_RO=y%"#"CT_INSTALL_DIRRO=y% .config cat ../crosstool-config-overrides >> .config ./ct-ng build make[2]: Entering directory '/home/crunch/GIT/esp-open-sdk/crosstool-NG' [ERROR] You must NOT be root to run crosstool-NG [00:00] / ct-ng:148: recipe for target 'build' failed make[2]: ** [build] Error 1 make[2]: Leaving directory '/home/crunch/GIT/esp-open-sdk/crosstool-NG' ../Makefile:282: recipe for target '_toolchain' failed make[1]: * [_toolchain] Error 2 make[1]: Leaving directory '/home/crunch/GIT/esp-open-sdk/crosstool-NG' Makefile:279: recipe for target '/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc' failed make: * [/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc] Error 2

jmccutchan commented 8 years ago

same issue:make[2]: Entering directory /root/esp-open-sdk/crosstool-NG' [ERROR] You must NOT be root to run crosstool-NG [00:00] / make[2]: *** [build] Error 1 make[2]: Leaving directory/root/esp-open-sdk/crosstool-NG' make[1]: * [_toolchain] Error 2 make[1]: Leaving directory `/root/esp-open-sdk/crosstool-NG' make: * [/root/esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc] Error 2

Anwaarullah commented 8 years ago

Give your normal user full read/write/execute permissions on the esp-open-sdk folder. Eg: http://serverfault.com/questions/105535/how-can-i-set-full-premissions-to-a-user-in-a-specified-dir

Then, simply use make instead of sudo make (i.e don't run as root)

kaizoku-oh commented 6 years ago

@chriva thanks