diff --git a/techpack/Kbuild b/techpack/Kbuild index ecc335151076..037f394ff675 100644 --- a/techpack/Kbuild +++ b/techpack/Kbuild @@ -1,16 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only TECHPACK?=y -ifeq ($(BOARD_CONFIG_CAMERA_KERNEL_NAME),) -$(info "using default camera path") -techpack-dirs := $(shell find $(srctree)/techpack -maxdepth 1 -mindepth 1 -type d -not -name ".*"\ - | grep -v legacy) -else -$(info "using camera-legacy/$(BOARD_CONFIG_CAMERA_KERNEL_NAME)") -techpack-dirs := $(shell find $(srctree)/techpack -maxdepth 1 -mindepth 1 -type d -not -name ".*"\ - | grep -v camera) -techpack-dirs += $(shell find $(srctree)/techpack -maxdepth 2 -mindepth 2 -name "$(BOARD_CONFIG_CAMERA_KERNEL_NAME)") -endif - -$(info "techpack-dirs:=$(techpack-dirs)") +techpack-dirs := $(shell find $(srctree)/techpack -maxdepth 1 -mindepth 1 -type d -not -name ".*") obj-${TECHPACK} += stub/ $(addsuffix /,$(subst $(srctree)/techpack/,,$(techpack-dirs)))