This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM335X: makefile error "No rule to make target" PVRSRVKM

Part Number: PROCESSOR-SDK-AM335X

Hi,

I got an error while tried to make a pvrsrvkm module for the kernel version 5.4.106

module source: https://git.ti.com/cgit/graphics/omap5-sgx-ddk-linux/commit/?h=ti-img-sgx/1.17.4948957/k5.4&id=bfe83bbabb3849c24b03d5172cf678e7c5915e04

cmd: CROSS_COMPILE=arm-none-linux-gnueabihf- ARCH=arm KERNELDIR=$KERDIR_5.4.106 TARGET_PRODUCT=ti335x make -C eurasiacon/build/linux2/omap_linux

make: Entering directory '/home/***/***/omap5-sgx-ddk-linux-bfe83bbabb3849c24b03d5172cf678e7c5915e04/eurasia_km/eurasiacon/build/linux2/omap_linux'
../config/compiler.mk:96: host gcc
../config/compiler.mk:185: target arm-none-linux-gnueabihf-gcc
******* Multiarch build: no
******* Primary arch: target_armhf
******* Secondary arch: none
GEN eurasiacon/binary_omap_linux_xorg_release/target_armhf/install_km.sh
GEN eurasiacon/binary_omap_linux_xorg_release/install.sh
AR /home/***/***/omap5-sgx-ddk-linux-bfe83bbabb3849c24b03d5172cf678e7c5915e04/eurasia_km/eurasiacon/binary_omap_linux_xorg_release/target_armhf/kbuild/built-in.a
make[3]: *** No rule to make target '/home/***/***/omap5-sgx-ddk-linux-bfe83bbabb3849c24b03d5172cf678e7c5915e04/eurasia_km/eurasiacon/binary_omap_linux_xorg_release/target_armhf/kbuild/services4/srvkm/env/linux/osfunc.o', needed by '/home/***/***/omap5-sgx-ddk-linux-bfe83bbabb3849c24b03d5172cf678e7c5915e04/eurasia_km/eurasiacon/binary_omap_linux_xorg_release/target_armhf/kbuild/pvrsrvkm.o'. Stop.
make[2]: *** [Makefile:1734: /home/***/***/omap5-sgx-ddk-linux-bfe83bbabb3849c24b03d5172cf678e7c5915e04/eurasia_km/eurasiacon/binary_omap_linux_xorg_release/target_armhf/kbuild] Error 2
make[1]: *** [eurasiacon/build/linux2/kbuild/kbuild.mk:56: kbuild] Error 2
make: *** [../config/core.mk:789: build] Error 2
make: Leaving directory '/home/***/***/omap5-sgx-ddk-linux-bfe83bbabb3849c24b03d5172cf678e7c5915e04/eurasia_km/eurasiacon/build/linux2/omap_linux'

Regards,

Arjun

  • Hi Arjun,

    I am not able to replicate the issue on my side and here are the steps that I took for building the driver:

    Step 1: Clone the Kernel: git clone -b ti-linux-5.4.y https://git.ti.com/git/ti-linux-kernel/ti-linux-kernel.git

    Step 2: Build Kernel:

    2a. cd ./ti-linux-kernel/
    2b. export ARCH=arm
    2c. export CROSS_COMPILE=/home/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-
    2d. ./ti_config_fragments/defconfig_builder.sh -t ti_sdk_am3x_release
    2e. make ti_sdk_am3x_release_defconfig
    2f. make -j16 zImage dtbs modules

    Step 3: Build the GPU driver(Ensure Kernel builds successfully before building GPU driver)
    3a. make -C ./eurasia_km/eurasiacon/build/linux2/omap_linux ARCH=arm TARGET_PRODUCT=ti335x KERNELDIR=/home/work/harddrive2/psdk_linux/am335x/gpu_test/ti-linux-kernel WINDOW_SYSTEM=lws-generic

    Regards,
    Krunal

  • Hi Krunal,

    Thanks for reply its resolved now!

    Regards,

    Arjun