diff --git a/config/sources/families/meson-s4t7.conf b/config/sources/families/meson-s4t7.conf index e0cf60c494..4a9ed9edf5 100644 --- a/config/sources/families/meson-s4t7.conf +++ b/config/sources/families/meson-s4t7.conf @@ -154,6 +154,14 @@ function kernel_copy_extra_sources__khadas_common_drivers() { fetch_from_repo "${COMMON_DRIVERS_SOURCE}" "common_drivers:${KERNEL_MAJOR_MINOR}" "${KERNELBRANCH}" "yes" } +function pre_package_kernel_headers__copy_common_drivers_header_include_mk_file() { + display_alert "Copy common_drivers/header_include.mk file in kernel headers" + declare makefile_destination="${headers_target_dir}"/common_drivers + run_host_command_logged mkdir -p ${makefile_destination} + run_host_command_logged cp ${kernel_work_dir}/common_drivers/header_include.mk ${makefile_destination}/ + run_host_command_logged cp -r ${kernel_work_dir}/common_drivers/include ${makefile_destination}/ +} + function pre_package_kernel_image__copy_meson_s4t7_overlays() { display_alert "Copy meson s4t7 overlays" declare dtbo_destination="${tmp_kernel_install_dirs[INSTALL_DTBS_PATH]}"/amlogic