-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (50 loc) · 3.32 KB
/
Makefile
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
extra_symbols := $(abspath $(O)/../vendor/mediatek/kernel_modules/met_drv_v3/Module.symvers)
ifneq (,$(wildcard ../met_drv_secure_v3))
extra_symbols += $(abspath $(O)/../vendor/mediatek/kernel_modules/met_drv_secure_v3/Module.symvers)
endif
all: PRIVATE_SYMBOLS := $(extra_symbols)
all:
$(MAKE) -C $(KERNEL_SRC) M=$(M) modules $(KBUILD_OPTIONS)
ifneq (,$(wildcard ../met_drv_secure_v3))
$(MAKE) -C $(KERNEL_SRC) M=$(M)/../met_drv_secure_v3 modules $(KBUILD_OPTIONS) KBUILD_EXTRA_SYMBOLS="$(PRIVATE_SYMBOLS)"
endif
$(MAKE) -C $(KERNEL_SRC) M=$(M)/met_api/met_gpu_api modules $(KBUILD_OPTIONS) KBUILD_EXTRA_SYMBOLS="$(PRIVATE_SYMBOLS)"
$(MAKE) -C $(KERNEL_SRC) M=$(M)/met_api/met_gpu_adv_api modules $(KBUILD_OPTIONS) KBUILD_EXTRA_SYMBOLS="$(PRIVATE_SYMBOLS)"
$(MAKE) -C $(KERNEL_SRC) M=$(M)/met_api/met_vcore_api modules $(KBUILD_OPTIONS) KBUILD_EXTRA_SYMBOLS="$(PRIVATE_SYMBOLS)"
$(MAKE) -C $(KERNEL_SRC) M=$(M)/met_api/met_backlight_api modules $(KBUILD_OPTIONS) KBUILD_EXTRA_SYMBOLS="$(PRIVATE_SYMBOLS)"
$(MAKE) -C $(KERNEL_SRC) M=$(M)/met_api/met_emi_api modules $(KBUILD_OPTIONS) KBUILD_EXTRA_SYMBOLS="$(PRIVATE_SYMBOLS)"
$(MAKE) -C $(KERNEL_SRC) M=$(M)/met_api/met_sspm_api modules $(KBUILD_OPTIONS) KBUILD_EXTRA_SYMBOLS="$(PRIVATE_SYMBOLS)"
$(MAKE) -C $(KERNEL_SRC) M=$(M)/met_api/met_mcupm_api modules $(KBUILD_OPTIONS) KBUILD_EXTRA_SYMBOLS="$(PRIVATE_SYMBOLS)"
$(MAKE) -C $(KERNEL_SRC) M=$(M)/met_api/met_gpueb_api modules $(KBUILD_OPTIONS) KBUILD_EXTRA_SYMBOLS="$(PRIVATE_SYMBOLS)"
$(MAKE) -C $(KERNEL_SRC) M=$(M)/met_api/met_ipi_api modules $(KBUILD_OPTIONS) KBUILD_EXTRA_SYMBOLS="$(PRIVATE_SYMBOLS)"
$(MAKE) -C $(KERNEL_SRC) M=$(M)/met_api/met_scmi_api modules $(KBUILD_OPTIONS) KBUILD_EXTRA_SYMBOLS="$(PRIVATE_SYMBOLS)"
modules_install:
$(MAKE) M=$(M) -C $(KERNEL_SRC) modules_install
ifneq (,$(wildcard ../met_drv_secure_v3))
$(MAKE) M=$(M)/../met_drv_secure_v3 -C $(KERNEL_SRC) modules_install
endif
$(MAKE) M=$(M)/met_api/met_gpu_api -C $(KERNEL_SRC) modules_install
$(MAKE) M=$(M)/met_api/met_gpu_adv_api -C $(KERNEL_SRC) modules_install
$(MAKE) M=$(M)/met_api/met_vcore_api -C $(KERNEL_SRC) modules_install
$(MAKE) M=$(M)/met_api/met_backlight_api -C $(KERNEL_SRC) modules_install
$(MAKE) M=$(M)/met_api/met_emi_api -C $(KERNEL_SRC) modules_install
$(MAKE) M=$(M)/met_api/met_sspm_api -C $(KERNEL_SRC) modules_install
$(MAKE) M=$(M)/met_api/met_mcupm_api -C $(KERNEL_SRC) modules_install
$(MAKE) M=$(M)/met_api/met_gpueb_api -C $(KERNEL_SRC) modules_install
$(MAKE) M=$(M)/met_api/met_ipi_api -C $(KERNEL_SRC) modules_install
$(MAKE) M=$(M)/met_api/met_scmi_api -C $(KERNEL_SRC) modules_install
clean:
$(MAKE) -C $(KERNEL_SRC) M=$(M) clean
ifneq (,$(wildcard ../met_drv_secure_v3))
$(MAKE) -C $(KERNEL_SRC) M=$(M)/../met_drv_secure_v3 clean
endif
$(MAKE) -C $(KERNEL_SRC) M=$(M)/met_api/met_gpu_api clean
$(MAKE) -C $(KERNEL_SRC) M=$(M)/met_api/met_gpu_adv_api clean
$(MAKE) -C $(KERNEL_SRC) M=$(M)/met_api/met_vcore_api clean
$(MAKE) -C $(KERNEL_SRC) M=$(M)/met_api/met_backlight_api clean
$(MAKE) -C $(KERNEL_SRC) M=$(M)/met_api/met_emi_api clean
$(MAKE) -C $(KERNEL_SRC) M=$(M)/met_api/met_sspm_api clean
$(MAKE) -C $(KERNEL_SRC) M=$(M)/met_api/met_mcupm_api clean
$(MAKE) -C $(KERNEL_SRC) M=$(M)/met_api/met_gpueb_api clean
$(MAKE) -C $(KERNEL_SRC) M=$(M)/met_api/met_ipi_api clean
$(MAKE) -C $(KERNEL_SRC) M=$(M)/met_api/met_scmi_api clean