esp-hosted icon indicating copy to clipboard operation
esp-hosted copied to clipboard

esp-hosted/esp_hosted_ng/host does not compile in kernel source tree

Open mike-2020 opened this issue 1 year ago • 6 comments

Need add the line in bold. PWD does not work when compile the whole kernel:

EXTRA_CFLAGS += -I$(PWD)/include -I$(PWD) -Idrivers/net/wireless/esp32/include -Idrivers/net/wireless/esp32

mike-2020 avatar Mar 14 '24 06:03 mike-2020

Can you point what part of code refers to 'drivers/net/wireless/esp32/' in the ESP-Hosted repo?

mantriyogesh avatar Mar 14 '24 07:03 mantriyogesh

This file: https://github.com/espressif/esp-hosted/blob/master/esp_hosted_ng/host/Makefile

mike-2020 avatar Mar 14 '24 13:03 mike-2020

I understood that it is make file. I was asking folder location, 'drivers/net/wireless/esp32' is not available in ESP-Hosted..

mantriyogesh avatar Mar 14 '24 14:03 mantriyogesh

Still trying to understand.

All what I wanted to say is that, the location 'drivers/net/wireless/esp32' is not recognized by the ESP-Hosted. Maybe you had placed your files there. So in this case we do not need to change anything.

Is that correct @mike-2020 ?

mantriyogesh avatar Mar 20 '24 03:03 mantriyogesh

"drivers/net/wireless/esp32" is the linux kernel source tree. it looks like the "make" does not enter this directory before runs gcc compiler (this is decided by the caller Makefile). In such case, the Makefile statement above will not work.

mike-2020 avatar Mar 20 '24 10:03 mike-2020

Hi @mike-2020 , are you trying to compile this as part of kernel? Current Makefile is written to compile this as a standalone module.

kapilkedawat avatar Mar 26 '24 04:03 kapilkedawat