Files
android_kernel_samsung_sm86…/qcom/opensource/camera-kernel/Makefile
chandu078 7d853a00e3 camera-kernel: Makefile: Add kbuild extra symbols
Change-Id: I3cb257dc87f6a71d10dd4ee16aa2e146a283fb0d
Signed-off-by: chandu078 <chandudyavanapelli03@gmail.com>
2024-10-06 16:55:37 +02:00

33 lines
1.1 KiB
Makefile

# Makefile for use with Android's kernel/build system
KBUILD_OPTIONS += CAMERA_KERNEL_ROOT=$(KERNEL_SRC)/$(M)
KBUILD_OPTIONS += KERNEL_ROOT=$(KERNEL_SRC)
KBUILD_OPTIONS += MODNAME=camera
KBUILD_OPTIONS += BOARD_PLATFORM=pineapple
KBUILD_EXTRA_SYMBOLS := \
$(OUT_DIR)/../sm8650-modules/qcom/opensource/mmrm-driver/Module.symvers \
$(OUT_DIR)/../sm8650-modules/qcom/opensource/securemsm-kernel/Module.symvers
all: modules
CAMERA_COMPILE_TIME = $(shell date)
CAMERA_COMPILE_BY = $(shell whoami | sed 's/\\/\\\\/')
CAMERA_COMPILE_HOST = $(shell uname -n)
cam_generated_h: $(shell find . -iname "*.c") $(shell find . -iname "*.h") $(shell find . -iname "*.mk")
echo '#define CAMERA_COMPILE_TIME "$(CAMERA_COMPILE_TIME)"' > cam_generated_h
echo '#define CAMERA_COMPILE_BY "$(CAMERA_COMPILE_BY)"' >> cam_generated_h
echo '#define CAMERA_COMPILE_HOST "$(CAMERA_COMPILE_HOST)"' >> cam_generated_h
modules: cam_generated_h
modules dtbs:
$(MAKE) -C $(KERNEL_SRC) M=$(M) modules $(KBUILD_OPTIONS)
modules_install:
$(MAKE) M=$(M) -C $(KERNEL_SRC) modules_install
clean:
$(MAKE) -C $(KERNEL_SRC) M=$(M) clean