Skip to content

Makefile makes no sense if CONFIG_MSM_VIDC_ANDROID=m #130

Description

@gagath

In the Makefile, most of the logic revolves around CONFIG_MSM_VIDC_ANDROID being not set:

ifneq ($(CONFIG_MSM_VIDC_ANDROID), m)
M := $(shell pwd)
KBUILD_OPTIONS += VIDEO_ROOT=$(M)
VIDEO_ROOT := $(CURDIR)
endif

If we force CONFIG_MSM_VIDC_ANDROID=m, then M is not set so the Makefile will call make modules M= with nothing to build. Moreover, since VIDEO_ROOT is not set, this will fail even earlier by because of VIDEO_ROOT being empty as well:

========== /var/lib/dkms/iris-vpu/1.0.19+ds/build/make.log ==========
DKMS (dkms-3.2.2) make.log for iris-vpu/1.0.19+ds for kernel 7.0.13+deb14-rt-arm64 (aarch64)
Fri Jun 26 07:50:10 UTC 2026

Building module(s)
# command: make -j12 KERNELRELEASE=7.0.13+deb14-rt-arm64 KERNEL_SRC=/lib/modules/7.0.13+deb14-rt-arm64/build
CONFIG_MSM_VIDC_ANDROID=m
echo '#define VIDEO_COMPILE_TIME "Fri Jun 26 07:50:10 UTC 2026"' > /driver/vidc/inc/video_generated_h
/bin/sh: 1: cannot create /driver/vidc/inc/video_generated_h: Directory nonexistent
make: *** [Makefile:21: /driver/vidc/inc/video_generated_h] Error 2

# exit code: 2
# elapsed time: 00:00:00
----------------------------------------------------------------
====================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions