Index: sys/modules/Makefile =================================================================== --- sys/modules/Makefile +++ sys/modules/Makefile @@ -147,6 +147,7 @@ ${_ice_ddp} \ ${_ida} \ if_bridge \ + ${_if_cgem} \ if_disc \ if_edsc \ ${_if_enc} \ @@ -807,6 +808,11 @@ _malo= malo .endif +.if ${MACHINE_ARCH} == "armv7" || ${MACHINE_CPUARCH} == "aarch64" || \ + ${MACHINE_CPUARCH} == "riscv" +_if_cgem= if_cgem +.endif + SUBDIR+=${MODULES_EXTRA} .for reject in ${WITHOUT_MODULES} Index: sys/modules/if_cgem/Makefile =================================================================== --- /dev/null +++ sys/modules/if_cgem/Makefile @@ -0,0 +1,7 @@ +.PATH: ${SRCTOP}/sys/dev/cadence + +KMOD= if_cgem +SRCS= if_cgem.c +SRCS+= bus_if.h device_if.h miibus_if.h ofw_bus_if.h + +.include