Changeset View
Changeset View
Standalone View
Standalone View
sys/conf/kmod.mk
Show First 20 Lines • Show All 193 Lines • ▼ Show 20 Lines | |||||
CLEANFILES+= ${KMOD:S/$/.c/} | CLEANFILES+= ${KMOD:S/$/.c/} | ||||
.for _firmw in ${FIRMWS} | .for _firmw in ${FIRMWS} | ||||
${_firmw:C/\:.*$/.fwo/:T}: ${_firmw:C/\:.*$//} ${SYSDIR}/kern/firmw.S | ${_firmw:C/\:.*$/.fwo/:T}: ${_firmw:C/\:.*$//} ${SYSDIR}/kern/firmw.S | ||||
@${ECHO} ${_firmw:C/\:.*$//} ${.ALLSRC:M*${_firmw:C/\:.*$//}} | @${ECHO} ${_firmw:C/\:.*$//} ${.ALLSRC:M*${_firmw:C/\:.*$//}} | ||||
${CC:N${CCACHE_BIN}} -c -x assembler-with-cpp -DLOCORE \ | ${CC:N${CCACHE_BIN}} -c -x assembler-with-cpp -DLOCORE \ | ||||
${CFLAGS} ${WERROR} \ | ${CFLAGS} ${WERROR} \ | ||||
-DFIRMW_FILE="${.ALLSRC:M*${_firmw:C/\:.*$//}}" \ | -DFIRMW_FILE="${.ALLSRC:M*${_firmw:C/\:.*$//}}" \ | ||||
-DFIRMW_SYMBOL="${_firmw:C/\:.*$//:C/[-.\/]/_/g}" \ | -DFIRMW_SYMBOL="${_firmw:C/\:.*$//:C/[-.\/@]/_/g}" \ | ||||
${SYSDIR}/kern/firmw.S -o ${.TARGET} | ${SYSDIR}/kern/firmw.S -o ${.TARGET} | ||||
OBJS+= ${_firmw:C/\:.*$/.fwo/:T} | OBJS+= ${_firmw:C/\:.*$/.fwo/:T} | ||||
.endfor | .endfor | ||||
.endif | .endif | ||||
# Conditionally include SRCS based on kernel config options. | # Conditionally include SRCS based on kernel config options. | ||||
.for _o in ${KERN_OPTS} | .for _o in ${KERN_OPTS} | ||||
▲ Show 20 Lines • Show All 349 Lines • Show Last 20 Lines |