Add camera legacy support by checking BOARD_CONFIG_CAMERA_KERNEL_NAME to decide which folder will be used to compile the camera techpack. Also, due to camera legacy, the camera uapi kernel headers installation routines need to be updated to consider the camera legacy support. This commit also fixes the routines to install kernel headers for 'make headers_install' and also 'qti_generate_kernel_headers_arm' and 'qti_generate_kernel_headers_arm64'. Change-Id: I845c5cb49c388bc15eba2fbf0ed0724e93de5192 Reviewed-on: https://gerrit.mot.com/2632695 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Rafael Ortolan <rafones@motorola.com> Reviewed-by: Rav(CR) Vembu <raviv@motorola.com> Reviewed-by: Miguel Nicodemus <miguelh@motorola.com> Tested-by: Jira Key Submit-Approved: Jira Key
28 lines
1.3 KiB
Makefile
28 lines
1.3 KiB
Makefile
# 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
|
|
obj-${TECHPACK} += stub/ $(addsuffix /,$(subst $(srctree)/techpack/,,$(techpack-dirs)))
|
|
|
|
ifeq ($(BOARD_CONFIG_CAMERA_KERNEL_NAME),)
|
|
$(info "using default camera path")
|
|
techpack-header-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-header-dirs := $(shell find $(srctree)/techpack -maxdepth 1 -mindepth 1 -type d -not -name ".*"\
|
|
| grep -v camera)
|
|
techpack-header-dirs += $(shell find $(srctree)/techpack -maxdepth 2 -mindepth 2 -name "$(BOARD_CONFIG_CAMERA_KERNEL_NAME)")
|
|
endif
|
|
|
|
header-${TECHPACK} += $(addsuffix /include/uapi/,$(subst $(srctree)/techpack/,,$(techpack-header-dirs)))
|