diff --git a/sys/modules/Makefile b/sys/modules/Makefile --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -84,6 +84,7 @@ cd9660_iconv \ ${_ce} \ ${_cfi} \ + ${_cgem} \ ${_chromebook_platform} \ ${_ciss} \ ${_coretemp} \ @@ -807,6 +808,11 @@ _malo= malo .endif +.if ${MACHINE_ARCH} == "armv7" || ${MACHINE_CPUARCH} == "aarch64" || \ + ${MACHINE_CPUARCH} == "riscv" +_cgem= cgem +.endif + SUBDIR+=${MODULES_EXTRA} .for reject in ${WITHOUT_MODULES} diff --git a/sys/modules/cgem/Makefile b/sys/modules/cgem/Makefile new file mode 100644 --- /dev/null +++ b/sys/modules/cgem/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${SRCTOP}/sys/dev/cadence + +KMOD= if_cgem +SRCS= ofw_bus_if.h device_if.h bus_if.h miibus_if.h if_cgem.c + +.include