-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (17 loc) · 687 Bytes
/
Makefile
File metadata and controls
23 lines (17 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Makefile for simple external out-of-tree Linux kernel module example
# KERNEL_SRC_PATH must be defined
# Object file(s) to be built
obj-m := uart_rpmsg_bus.o
# Path to the directory that contains the Linux kernel source code
# and the configuration file (.config)
KERNEL_DIR ?= $(KERNEL_SRC_PATH)
# Path to the directory that contains the generated objects
DESTDIR ?= $(KERNEL_DIR)/install_artifact
# Path to the directory that contains the source file(s) to compile
PWD := $(shell pwd)
default:
$(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules
install:
$(MAKE) -C $(KERNEL_DIR) M=$(PWD) INSTALL_MOD_PATH=$(DESTDIR) modules_install
clean:
$(MAKE) -C $(KERNEL_DIR) M=$(PWD) clean