FDD-book/examples/part-02/ch07-writing-your-first-driver/labs/lab7.4-fail-dev/Makefile

12 lines
332 B
Makefile
Raw Permalink Normal View History

# Lab 7.4 variant B: deliberate failure right after make_dev_s succeeds.
#
# Loading this driver should fail with ENOMEM. The /dev node was
# created and must be destroyed by the unwind path; verify with
# `ls /dev/myfirst0` (no such file).
KMOD= myfirst
SRCS= myfirst.c
SRCS+= device_if.h bus_if.h
.include <bsd.kmod.mk>