-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gtel3g: Import from T561_KK_Opensource
- Loading branch information
Ma3aXaTa
committed
Nov 13, 2018
0 parents
commit b2f013c
Showing
45,712 changed files
with
17,968,830 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
KERNEL_OUT := $(TARGET_OUT_INTERMEDIATES)/KERNEL | ||
KERNEL_CONFIG := $(KERNEL_OUT)/.config | ||
KERNEL_MODULES_OUT := $(TARGET_OUT)/lib/modules | ||
|
||
ifeq ($(USES_UNCOMPRESSED_KERNEL),true) | ||
TARGET_PREBUILT_KERNEL := $(KERNEL_OUT)/arch/arm/boot/Image | ||
else | ||
TARGET_PREBUILT_KERNEL := $(KERNEL_OUT)/arch/arm/boot/zImage | ||
endif | ||
|
||
$(KERNEL_OUT): | ||
@echo "==== Start Kernel Compiling ... ====" | ||
|
||
$(KERNEL_CONFIG): kernel/arch/arm/configs/$(KERNEL_DEFCONFIG) | ||
mkdir -p $(KERNEL_OUT) | ||
$(MAKE) -C kernel O=../$(KERNEL_OUT) ARCH=arm CROSS_COMPILE=arm-eabi- $(KERNEL_DEFCONFIG) | ||
|
||
ifeq ($(TARGET_BUILD_VARIANT),user) | ||
USER_CONFIG := $(TARGET_OUT)/dummy | ||
TARGET_DEVICE_USER_CONFIG := $(PLATDIR)/user_diff_config | ||
TARGET_DEVICE_CUSTOM_CONFIG := device/sprd/$(TARGET_DEVICE)/ProjectConfig.mk | ||
|
||
$(USER_CONFIG) : $(KERNEL_CONFIG) | ||
$(info $(shell ./kernel/scripts/sprd_custom_config_kernel.sh $(KERNEL_CONFIG) $(TARGET_DEVICE_CUSTOM_CONFIG))) | ||
$(info $(shell ./kernel/scripts/sprd_create_user_config.sh $(KERNEL_CONFIG) $(TARGET_DEVICE_USER_CONFIG))) | ||
else | ||
USER_CONFIG := $(TARGET_OUT)/dummy | ||
TARGET_DEVICE_CUSTOM_CONFIG := device/sprd/$(TARGET_DEVICE)/ProjectConfig.mk | ||
$(USER_CONFIG) : $(KERNEL_CONFIG) | ||
$(info $(shell ./kernel/scripts/sprd_custom_config_kernel.sh $(KERNEL_CONFIG) $(TARGET_DEVICE_CUSTOM_CONFIG))) | ||
endif | ||
|
||
$(TARGET_PREBUILT_KERNEL) : $(KERNEL_OUT) $(USER_CONFIG)|$(KERNEL_CONFIG) | ||
$(MAKE) -C kernel O=../$(KERNEL_OUT) ARCH=arm CROSS_COMPILE=arm-eabi- headers_install | ||
$(MAKE) -C kernel O=../$(KERNEL_OUT) ARCH=arm CROSS_COMPILE=arm-eabi- -j4 | ||
$(MAKE) -C kernel O=../$(KERNEL_OUT) ARCH=arm CROSS_COMPILE=arm-eabi- modules | ||
@-mkdir -p $(KERNEL_MODULES_OUT) | ||
@-find $(KERNEL_OUT) -name *.ko | xargs -I{} cp {} $(KERNEL_MODULES_OUT) | ||
|
||
kernelheader: | ||
mkdir -p $(KERNEL_OUT) | ||
$(MAKE) -j1 -C kernel O=../$(KERNEL_OUT) ARCH=arm CROSS_COMPILE=arm-eabi- headers_install |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.