mirror of
https://git.yoctoproject.org/poky
synced 2026-03-02 05:19:40 +01:00
The following patch creates a hello-mod recipe for building a trivial out-of-tree kernel module, hello-mod.ko. This demonstrates the hostprogs build modifications added to module.bbclass. When loaded and unloaded, the module prints a simple string to the console to demonstrate it was compiled correctly. Tested on qemux86 poky-image-sato and beagleboard poky-image-minimal (after adding hello-mod to the images). (From OE-Core rev: d4765569d51448e8918bb15e7ab342983344074a) Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
292 B
292 B
obj-m := hello.o
SRC := $(shell pwd)
all: $(MAKE) -C $(KERNEL_SRC) M=$(SRC)
modules_install: $(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules_install
clean: rm -f *.o ~ core .depend ..cmd *.ko *.mod.c rm -f Module.markers Module.symvers modules.order rm -rf .tmp_versions Modules.symvers