-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (28 loc) · 1.05 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
# SIE CONFIDENTIAL
#
# Copyright (C) 2020 Sony Interactive Entertainment Inc.
# All Rights Reserved.
#
TOP_PATH := $(CURDIR)
include $(TOP_PATH)/build/common.mk
OUT := $(TOP_PATH)/out/$(SIE_BUILD_TYPE)/linux
LINUX_KERNEL_PATH := $(TOP_PATH)/src/linux
KERN_IMAGE := $(OUT)/arch/arm64/Image
# FIXME
KBUILD_DEFCONFIG := sie_$(SIE_BUILD_TYPE)_mt3612_asic_a0_defconfig
MAKE_ARG := ARCH=arm64 O=$(OUT) CROSS_COMPILE="$(CCACHE) $(ARM64_COMPILE_PREFIX)" KBUILD_IMAGE=Image
all: kern_mod
kern_mod: $(KERN_IMAGE)
@$(MAKE) -C ./src/kern_module/mtk_wrapper all
@$(MAKE) -C ./src/kern_module/log all
@$(MAKE) -C ./src/kern_module/fts all
@$(MAKE) -C ./src/kern_module/sieaudio all
@$(MAKE) -C ./src/kern_module/sieimu all
@$(MAKE) -C ./src/kern_module/sieusb all
$(KERN_IMAGE): $(OUT)/.config
@$(MAKE) -C $(LINUX_KERNEL_PATH) $(MAKE_ARG) all
$(OUT)/.config:
@$(MAKE) -C $(LINUX_KERNEL_PATH) $(MAKE_ARG) $(KBUILD_DEFCONFIG)
clean:
@$(RM) -fr $(TOP_PATH)/out
.PHONY : all kern_mod clean