Merge branch 'test/linux-full-component-build' into 'master'

test: add Linux full component build app

See merge request espressif/esp-idf!50377
This commit is contained in:
Marius Vikhammer
2026-07-08 10:13:12 +08:00
18 changed files with 98 additions and 29 deletions
@@ -12,13 +12,15 @@ endif()
if(${target} STREQUAL "linux")
set(priv_requires "")
set(requires "")
else()
set(priv_requires esp_pm esp_driver_gpio)
set(requires esp_hal_ana_cmpr)
endif()
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS "include"
PRIV_REQUIRES "${priv_requires}"
REQUIRES esp_hal_ana_cmpr
REQUIRES "${requires}"
LDFRAGMENTS "linker.lf"
)
+9 -8
View File
@@ -1,12 +1,17 @@
idf_build_get_property(target IDF_TARGET)
set(srcs "esp_cam_ctlr.c" "dvp_share_ctrl.c")
set(srcs)
set(includes "include" "interface")
set(requires "esp_driver_isp" "esp_hal_cam")
set(priv_requires "esp_driver_gpio" "esp_driver_dma")
if(${target} STREQUAL "linux")
set(requires "esp_driver_isp")
set(priv_requires "")
else()
list(APPEND srcs "esp_cam_ctlr.c" "dvp_share_ctrl.c")
set(requires "esp_driver_isp" "esp_hal_cam" "esp_mm")
set(priv_requires "esp_driver_gpio" "esp_driver_dma")
endif()
if(CONFIG_SOC_MIPI_CSI_SUPPORTED)
list(APPEND srcs "csi/src/esp_cam_ctlr_csi.c")
@@ -18,10 +23,6 @@ if(CONFIG_SOC_ISP_DVP_SUPPORTED)
list(APPEND includes "isp_dvp/include")
endif()
if(NOT ${target} STREQUAL "linux")
list(APPEND requires esp_mm)
endif()
if(CONFIG_SOC_LCDCAM_CAM_SUPPORTED)
list(APPEND srcs "dvp/src/esp_cam_ctlr_dvp_gdma.c" "dvp/src/esp_cam_ctlr_dvp_cam.c")
list(APPEND includes "dvp/include")
+2 -1
View File
@@ -3,10 +3,11 @@ idf_build_get_property(target IDF_TARGET)
set(srcs)
set(public_include "include")
set(requires esp_hal_cordic)
if(${target} STREQUAL "linux")
set(requires "")
set(priv_requires "")
else()
set(requires esp_hal_cordic)
set(priv_requires esp_pm)
endif()
+5 -5
View File
@@ -6,7 +6,11 @@ set(public_include "include")
set(priv_requires "esp_driver_gpio")
set(requires "esp_hal_cam")
if(${target} STREQUAL "linux")
set(requires "")
else()
set(requires "esp_hal_cam" "esp_mm")
endif()
if(CONFIG_SOC_ISP_SUPPORTED)
list(APPEND srcs "src/isp_core.c"
@@ -50,10 +54,6 @@ if(CONFIG_SOC_ISP_CROP_SUPPORTED)
list(APPEND srcs "src/isp_crop.c")
endif()
if(NOT ${target} STREQUAL "linux")
list(APPEND requires esp_mm)
endif()
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS ${public_include}
REQUIRES ${requires}
+2 -1
View File
@@ -23,10 +23,11 @@ if(CONFIG_SOC_JPEG_CODEC_SUPPORTED)
endif()
endif()
set(requires esp_hal_jpeg)
if(${target} STREQUAL "linux")
set(requires "")
set(priv_requires "")
else()
set(requires esp_hal_jpeg)
set(priv_requires esp_mm esp_pm esp_psram esp_driver_dma)
endif()
+2 -1
View File
@@ -19,10 +19,11 @@ if(CONFIG_SOC_MCPWM_SUPPORTED)
endif()
endif()
set(requires esp_hal_mcpwm)
if(${target} STREQUAL "linux")
set(requires "")
set(priv_requires "")
else()
set(requires esp_hal_mcpwm)
set(priv_requires esp_pm esp_driver_gpio)
endif()
+3 -1
View File
@@ -18,8 +18,10 @@ endif()
if(${target} STREQUAL "linux")
set(requires "")
set(priv_requires "")
else()
set(requires esp_hal_parlio)
set(priv_requires esp_pm esp_driver_gpio esp_mm esp_driver_bitscrambler esp_driver_dma)
endif()
@@ -27,6 +29,6 @@ idf_component_register(SRCS ${srcs}
INCLUDE_DIRS ${public_include}
PRIV_INCLUDE_DIRS "src"
PRIV_REQUIRES "${priv_requires}"
REQUIRES esp_hal_parlio
REQUIRES "${requires}"
LDFRAGMENTS "linker.lf"
)
+2 -1
View File
@@ -6,10 +6,11 @@ if(CONFIG_SOC_PCNT_SUPPORTED)
list(APPEND srcs "src/pulse_cnt.c")
endif()
set(requires esp_hal_pcnt)
if(${target} STREQUAL "linux")
set(requires "")
set(priv_requires "")
else()
set(requires esp_hal_pcnt)
set(priv_requires esp_pm esp_driver_gpio)
endif()
+3 -1
View File
@@ -13,8 +13,10 @@ if(CONFIG_SOC_PPA_SUPPORTED)
endif()
if(${target} STREQUAL "linux")
set(requires "")
set(priv_requires "")
else()
set(requires esp_hal_ppa)
set(priv_requires esp_mm esp_pm esp_driver_dma efuse)
endif()
@@ -22,6 +24,6 @@ endif()
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS ${public_include}
PRIV_INCLUDE_DIRS "src"
REQUIRES esp_hal_ppa
REQUIRES "${requires}"
PRIV_REQUIRES "${priv_requires}"
)
+3 -1
View File
@@ -10,13 +10,15 @@ if(CONFIG_SOC_SDIO_SLAVE_SUPPORTED)
endif()
if(${target} STREQUAL "linux")
set(requires "")
set(priv_requires esp_ringbuf)
else()
set(requires esp_hal_sd)
set(priv_requires esp_driver_gpio esp_ringbuf)
endif()
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS ${public_include}
REQUIRES esp_hal_sd
REQUIRES "${requires}"
PRIV_REQUIRES "${priv_requires}"
)
+9 -2
View File
@@ -1,7 +1,6 @@
idf_build_get_property(target IDF_TARGET)
set(srcs)
set(priv_req efuse)
set(public_include "include")
if(CONFIG_SOC_TEMP_SENSOR_SUPPORTED)
list(APPEND srcs "src/temperature_sensor.c")
@@ -14,9 +13,17 @@ if(CONFIG_SOC_TEMP_SENSOR_SUPPORTED)
endif()
endif()
if(${target} STREQUAL "linux")
set(requires "")
set(priv_req "")
else()
set(requires esp_hal_ana_conv)
set(priv_req efuse)
endif()
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS ${public_include}
PRIV_INCLUDE_DIRS "src"
REQUIRES esp_hal_ana_conv
REQUIRES "${requires}"
PRIV_REQUIRES ${priv_req}
)
+13 -6
View File
@@ -21,9 +21,16 @@ if(CONFIG_SOC_GPSPI_SUPPORTED)
endif()
endif()
idf_component_register(
SRCS ${srcs}
INCLUDE_DIRS ${includes}
REQUIRES soc hal esp_hal_dma
PRIV_REQUIRES esp_hal_gpio
)
if(${target} STREQUAL "linux")
idf_component_register(
INCLUDE_DIRS ${includes}
REQUIRES soc hal
)
else()
idf_component_register(
SRCS ${srcs}
INCLUDE_DIRS ${includes}
REQUIRES soc hal esp_hal_dma
PRIV_REQUIRES esp_hal_gpio
)
endif()