-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (41 loc) · 1.11 KB
/
Copy pathMakefile
File metadata and controls
53 lines (41 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# SPDX-License-Identifier: GPL-2.0-only
#
# beamfs - Fault-Tolerant Radiation-Robust Filesystem
#
obj-$(CONFIG_BEAMFS_FS) += beamfs.o
beamfs-y := super.o \
inode.o \
dir.o \
file.o \
file_inline.o \
edac.o \
alloc.o \
namei.o
# Strip absolute build paths from __FILE__ macros so the resulting .ko
# binary does not embed TMPDIR (Yocto buildpaths QA fix).
ccflags-y += -fmacro-prefix-map=$(src)/=
ccflags-y += -fmacro-prefix-map=$(srctree)/=
ccflags-y += -ffile-prefix-map=$(src)/=
ccflags-y += -ffile-prefix-map=$(srctree)/=
ifneq ($(KERNELRELEASE),)
else
ifneq ($(KERNEL_SRC),)
KERNELDIR := $(KERNEL_SRC)
else
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
endif
ifneq ($(O),)
KBUILD_OUTPUT := O=$(O)
else
KBUILD_OUTPUT :=
endif
PWD := $(shell pwd)
all:
$(MAKE) -C $(KERNELDIR) $(KBUILD_OUTPUT) M=$(PWD) \
CONFIG_BEAMFS_FS=m \
modules
clean:
$(MAKE) -C $(KERNELDIR) $(KBUILD_OUTPUT) M=$(PWD) clean
modules_install:
$(MAKE) -C $(KERNELDIR) $(KBUILD_OUTPUT) M=$(PWD) modules_install
endif