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 :
github.com
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 :
and I get this error :
I edited the Makefile in the subdir /usr/src/sys/dev/drm/modules/rockchip/rk_vop :
with this :
but I've got this new error :
I think the code to alter is inside /usr/src/share/mk/bsd.dep.mk :
But I don't know how. I'm not a coder,please,help me. Thanks.
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 :
GitHub - jsm222/drm-subtree: WIP drm drivers for FreeBSD
WIP drm drivers for FreeBSD. Contribute to jsm222/drm-subtree development by creating an account on GitHub.
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 :
Code:
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# make
and I get this error :
I edited the Makefile in the subdir /usr/src/sys/dev/drm/modules/rockchip/rk_vop :
Code:
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 :
Code:
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 :
Code:
# 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 :
But I don't know how. I'm not a coder,please,help me. Thanks.