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:53 pm

hello

i am testing an example for ESP32 that let me connect to AWS server.

for that i am using ESP-IDF and Eclipse.

there is a file named component.mk that contains a script for generating a ky header file ( needed to 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


i am unable to run this script, is therea mean to do that in eclipse?

thanks.

Zakaria

Who is online

Users browsing this forum: Baidu [Spider] and 14 guests