Skip to main content.
Navigation:
DENX
>
Training2
>
LddKernelMakefiles
Translations:
Edit
|
Attach
|
Raw
|
Ref-By
|
Printable
|
More
Training2
Sections of this site:
DENX Home
|
DULG
|
ELDK-5
|
Know
|
Training
|
U-Boot
|
U-Bootdoc
Topics
Training2 Home
Changes
Index
Search
Go
List of pages in Training2
Search
%SECTION0{name=LddKernelMakefils}% Linux kernel makefiles * Two ways to build modules: statically linked in vs dynamically loadable * Extensive documentation: =Documentation/kbuild/= * build a kernel with module statically compiled in *Makefile:* <verbatim> # # Slightly more advanced Makefile for building the hello world module # ifneq ($(KERNELRELEASE),) obj-m := hello.o else KDIR := /home/mk/git/linux-denx PWD := $(shell pwd) default: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules endif clean: rm -rf .*.cmd .tmp* *.ko *~ *.o *.mod.c *.symvers </verbatim>
5.2.2. A first hello_world module
1. Denx Training Topics
5.2.4. Kernel message logging and printk
Prev
Home
Next