esp-idf with eclipse script runing

Zakaria13
Posts: 2
Joined: Fri Nov 29, 2019 11:27 pm

esp-idf with eclipse script runing

Postby Zakaria13 » Fri Nov 29, 2019 11:39 pm

hello

i am working on a program that let my ESP32 module connects to AWS cloud.

i am using ESP-IDF and eclipse.

there is a file named component.mk that contains a script for creating a key header file ( used by the ESP32to connect to AWS
server).

this is the content of this file :


COMPONENT_EXTRA_CLEAN := certs.h

main.o: certs.h

certs.h: $(COMPONENT_PATH)/certs/root-CA.crt $(COMPONENT_PATH)/certs/certificate.pem.crt $(COMPONENT_PATH)/certs/private.pem.key
$(Q) rm -f certs.h
$(Q) echo "const char *rootCA =" >> certs.h
$(Q) cat $(COMPONENT_PATH)/certs/root-CA.crt | tr -d "\r" | awk '{ print "\""$$0"\\r\\n\""}' >> certs.h
$(Q) echo ";" >> certs.h
$(Q) echo "const char *devicePrivateKey =" >> certs.h
$(Q) cat $(COMPONENT_PATH)/certs/private.pem.key | tr -d "\r" | awk '{ print "\""$$0"\\r\\n\""}' >> certs.h
$(Q) echo ";" >> certs.h
$(Q) echo "const char *deviceCert =" >> certs.h
$(Q) cat $(COMPONENT_PATH)/certs/certificate.pem.crt | tr -d "\r" | awk '{ print "\""$$0"\\r\\n\""}' >> certs.h
$(Q) echo ";" >> certs.h

the problem is that i am unable to run this script file, is there a mean to do that in eclipse?

regards.

Zakaria

Who is online

Users browsing this forum: No registered users and 1 guest