Merge kernel prototype patch

Resolves: COMPMID-5151

Signed-off-by: Giorgio Arena <giorgio.arena@arm.com>
Change-Id: Ic4024d5cd4819fe917a1d49621f1866ae2e90a37
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/7260
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: SiCong Li <sicong.li@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
diff --git a/SConscript b/SConscript
index 62ec9f8..13ef37a 100644
--- a/SConscript
+++ b/SConscript
@@ -172,7 +172,7 @@
             for line in tmp_file:
                 found = pattern.search(line)
                 if found:
-                    include_file = found.group(1)
+                    include_file = found.group(1).split('/')[-1]
                     data = files_dict[include_file].file_contents
                     updated_file.extend(data)
                 else:
@@ -490,6 +490,16 @@
 # Common backend files
 lib_files = filelist['common']
 
+# Experimental files
+# Dynamic fusion
+if env['experimental_dynamic_fusion']:
+    if env['embed_kernels']:
+        print("Dynamic fusion with embed_kernels=1 not supported. Skipping.")
+    else:
+        lib_files += filelist['experimental']['dynamic_fusion']
+        arm_compute_env.Append(CPPDEFINES = ['ENABLE_EXPERIMENTAL_DYNAMIC_FUSION'])
+
+
 # Logging files
 if env["logging"]:
     lib_files += filelist['logging']