KMOD	= df5497
SRCS	= df5497.c

# Rename fwcrom.c's global symbols so they do not clash with the copy
# compiled into the guest kernel (X86_64_GENERIC has `device firewire`).
KCFLAGS+= -Dcrom_init_context=dfh_crom_init_context \
	   -Dcrom_get=dfh_crom_get -Dcrom_next=dfh_crom_next \
	   -Dcrom_search_key=dfh_crom_search_key \
	   -Dcrom_has_specver=dfh_crom_has_specver \
	   -Dcrom_parse_text=dfh_crom_parse_text -Dcrom_crc=dfh_crom_crc \
	   -Dcrom_add_quad=dfh_crom_add_quad \
	   -Dcrom_add_entry=dfh_crom_add_entry \
	   -Dcrom_add_chunk=dfh_crom_add_chunk \
	   -Dcrom_add_simple_text=dfh_crom_add_simple_text \
	   -Dcrom_load=dfh_crom_load
KCFLAGS+= -I${SYSDIR} -Wall

.include <bsd.kmod.mk>
