Skip to content

main/dtc: increase MAX_SRCFILE_DEPTH

ignapk requested to merge ignapk/aports:dtc-fix into master

Upstream dtc has MAX_SRCFILE_DEPTH set to 100 in srcpos.c, which is max number of includes set to prevent infinite recursion.

Unfortunately some kernels require this number to be bigger, and since it's just a sanity check to detect infinite recursion it shouldn't hurt increasing it to 200.

In the future I'll try to upstream this change but for the time being I would appreciate this getting merged so projects like postmarketOS could benefit from it.

Merge request reports