Fwd: I need to define an absolute path to be able to compile the DRM / Panfrost subtree code of JSM on the RockPro64 / Khadas Edge-V / RK3399

From: Mario Marietto <marietto2008_at_gmail.com>
Date: Wed, 17 Sep 2025 20:55:17 UTC
Hello.

I'm trying to compile the drm-subtree of JSM because I want to enable the
panfrost driver on the RockPro64 / KHADAS EDGE-V / RK3399. The code is here
:

https://github.com/jsm222/drm-subtree

He improved the old code,adding the modules. It works for FreeBSD
15-CURRENT. So,I've booted FreeBSD 14.2-RELEASE on the KHADAS EDGE-V board
and I did :


marietto# git clone https://git.freebsd.org/src.git /usr/src
marietto# git clone https://github.com/jsm222/drm-subtree.git
/usr/src/sys/dev/drm
marietto# cd /usr/src/sys/dev/drm/modules
marietto# makemarietto# git clone https://git.freebsd.org/src.git /usr/src
marietto# git clone https://github.com/jsm222/drm-subtree.git
/usr/src/sys/dev/drm
marietto# cd /usr/src/sys/dev/drm/modules
marietto# make


[image: r/freebsd - I need to define an absolute path to be able to compile
the DRM / Panfrost subtree code of JSM on the RockPro64 / Khadas Edge-V /
RK3399]
<https://preview.redd.it/i-need-to-define-an-absolute-path-to-be-able-to-compile-the-v0-se3jsjosxqpf1.jpg?width=1560&format=pjpg&auto=webp&s=066f446c2753b21e7079de104eb7d8bff50cc563>


I edited the Makefile in the subdir
/usr/src/sys/dev/drm/modules/rockchip/rk_vop :


KMOD     = rk_vop
DRMROOT?=./../../..
RKROOT?=${DRMROOT}/rockchip
SRCTOP?=/usr/src
SYSDIR?=${SRCTOP}/sys
.include "${SYSDIR}/conf/kern.opts.mk"
CFLAGS= -I${RKROOT}  -I${DRMROOT}/drmkpi/include/
-I${DRMROOT}/core/include/ -include
${DRMROOT}/drmkpi/include/drm/drm_os_freebsd.h
-I${DRMROOT}/core/include/uapi/ -Wno-error=gnu-pointer-arith -DFDT
-Wno-error=format
rk_vop_if.h:
    awk -f /usr/src/sys/tools/makeobjops.awk ${RKROOT}/rk_vop_if.m -h
dw_hdmi_if.h:
    awk -f /usr/src/sys/tools/makeobjops.awk ${DRMROOT}/dw_hdmi_if.m -h

SRCS=device_if.h bus_if.h vnode_if.h pci_if.h opt_platform.h
ofw_bus_if.h clknode_if.h rk_vop_if.h fb_if.h phynode_if.h
${RKROOT}/rk_vop.c dw_hdmi_if.h ${RKROOT}/rk_plane.c


with this one :



KMOD     = rk_vop
DRMROOT?=./../../..
RKROOT?=${DRMROOT}/rockchip
SRCTOP?=/usr/src
SYSDIR?=${SRCTOP}/sys
.include "${SYSDIR}/conf/kern.opts.mk"
CFLAGS= -I${SYSDIR}/dev/drm/rockchip
-I${SYSDIR}/dev/drm/drmkpi/include/  -I${SYSDIR}/dev/drm/core/include/
-include ${SYDIR}/dev/drm/drmkpi/include/drm/drm_os_freebsd.h
-I${SYSDIR}/dev/drm/core/include/uapi/ -Wno-error=gnu-pointer-arith
-DFDT -Wno-error=format
rk_vop_if.h:
    awk -f /usr/src/sys/tools/makeobjops.awk
${SYSDIR}/dev/drm/rockchip/rk_vop_if.m -h
dw_hdmi_if.h:
    awk -f /usr/src/sys/tools/makeobjops.awk ${SYSDIR}/dev/drm/dw_hdmi_if.m -h

SRCS=device_if.h bus_if.h vnode_if.h pci_if.h opt_platform.h
ofw_bus_if.h clknode_if.h rk_vop_if.h fb_if.h phynode_if.h
${SYSDIR}/dev/drm/rockchip/rk_vop.c dw_hdmi_if.h
${SYSDIR}/dev/drm/rockchip/rk_plane.c


but I've got this new error :


# make

make "/usr/src/share/mk/bsd.dep.mk" line 201: $OBJS inside $SRCTOP not
allowed : /usr/src/sys/dev/drm/rockchip/rk_vop.o
/usr/src/sys/dev/drm/rockchip/rk_plane.o


I think the code to alter is inside /usr/src/share/mk/bsd.dep.mk :


[image: r/freebsd - I need to define an absolute path to be able to compile
the DRM / Panfrost subtree code of JSM on the RockPro64 / Khadas Edge-V /
RK3399]
<https://preview.redd.it/i-need-to-define-an-absolute-path-to-be-able-to-compile-the-v0-uih7k22ayqpf1.jpg?width=1194&format=pjpg&auto=webp&s=af74bc50fecf01dcc3354e05c43f23a30c2493fb>


But I don't know how. I'm not a coder,please,help me. Thanks.
-- 
Mario.