message: Modify Makefile to allow additional kernel sources and headers.
diff: @@ -394,9 +394,6 @@ tensorflow/lite/micro/kernels/transpose_conv.cc \
  tensorflow/lite/micro/kernels/unpack.cc \
  tensorflow/lite/micro/kernels/zeros_like.cc
  -# Load custom kernels.
  -include $(MAKEFILE_DIR)/additional_kernels.inc
  -
  MICROLITE_TEST_HDRS := \
  $(wildcard tensorflow/lite/micro/testing/*.h)
  @@ -412,9 +409,6 @@ tensorflow/lite/kernels/internal/quantization_util.cc \
  tensorflow/lite/kernels/kernel_util.cc \
  tensorflow/lite/schema/schema_utils.cc
  -MICROLITE_CC_SRCS := $(filter-out $(MICROLITE_TEST_SRCS), $(MICROLITE_CC_BASE_SRCS))
  -MICROLITE_CC_SRCS := $(filter-out $(MICROLITE_BENCHMARK_SRCS), $(MICROLITE_CC_SRCS))
  -
  MICROLITE_CC_HDRS := \
  $(wildcard tensorflow/lite/micro/*.h) \
  $(wildcard tensorflow/lite/micro/benchmarks/*model_data.h) \
  @@ -503,6 +497,12 @@ tensorflow/lite/portable_type_to_tflitetype.h \
  tensorflow/lite/schema/schema_generated.h \
  tensorflow/lite/schema/schema_utils.h
  +# Load custom kernels.
  +include $(MAKEFILE_DIR)/additional_kernels.inc
  +
  +MICROLITE_CC_SRCS := $(filter-out $(MICROLITE_TEST_SRCS), $(MICROLITE_CC_BASE_SRCS))
  +MICROLITE_CC_SRCS := $(filter-out $(MICROLITE_BENCHMARK_SRCS), $(MICROLITE_CC_SRCS))
  +
  # For project generation v1, the headers that are common to all targets need to
  # have a third_party prefix. Other third_party headers (e.g. CMSIS) do not have
  # this requirement and are added to THIRD_PARTY_CC_HDRS with full path from the
  