@@ -9,32 +9,6 @@ load("//backends/xnnpack/third-party/XNNPACK/gen:microkernels.bzl", "prod_srcs_f
99load ("@fbsource//xplat/executorch/third-party:glob_defs.bzl" , "subdir_glob" )
1010
1111# To get from XNNPACK:build_srcs.bzl in the future
12- _XNNPACK_SRCS = [
13- "src/configs/argmaxpool-config.c" ,
14- "src/configs/avgpool-config.c" ,
15- "src/configs/binary-elementwise-config.c" ,
16- "src/configs/cmul-config.c" ,
17- "src/configs/conv-hwc2chw-config.c" ,
18- "src/configs/dwconv-config.c" ,
19- "src/configs/dwconv2d-chw-config.c" ,
20- "src/configs/gemm-config.c" ,
21- "src/configs/ibilinear-chw-config.c" ,
22- "src/configs/ibilinear-config.c" ,
23- "src/configs/lut32norm-config.c" ,
24- "src/configs/maxpool-config.c" ,
25- "src/configs/pack-lh-config.c" ,
26- "src/configs/raddstoreexpminusmax-config.c" ,
27- "src/configs/reduce-config.c" ,
28- "src/configs/spmm-config.c" ,
29- "src/configs/transpose-config.c" ,
30- "src/configs/unary-elementwise-config.c" ,
31- "src/configs/unpool-config.c" ,
32- "src/configs/vmulcaddc-config.c" ,
33- "src/configs/x8-lut-config.c" ,
34- "src/configs/xx-fill-config.c" ,
35- "src/configs/xx-pad-config.c" ,
36- ]
37-
3812def define_xnnpack_build_src (xnnpack_build_src ):
3913 return ["XNNPACK/{}" .format (src ) for src in xnnpack_build_src ]
4014
@@ -56,8 +30,12 @@ def get_xnnpack_headers():
5630 ])
5731 return src_headers | include_headers | ukernel_headers
5832
33+ def get_ukernel_config_srcs ():
34+ return subdir_glob ([
35+ ("XNNPACK/src/configs" , "*.c" ),
36+ ]).values ()
37+
5938OPERATOR_SRCS = define_xnnpack_build_src (_OPERATOR_SRCS )
6039SUBGRAPH_SRCS = define_xnnpack_build_src (_SUBGRAPH_SRCS )
6140TABLE_SRCS = define_xnnpack_build_src (_TABLE_SRCS )
62- XNNPACK_SRCS = define_xnnpack_build_src (_XNNPACK_SRCS )
6341LOGGING_SRCS = define_xnnpack_build_src (_LOGGING_SRCS )
0 commit comments