Use conditional check for build number

This commit is contained in:
Kamil Trzciński 2017-05-02 15:59:13 +02:00 committed by GitHub
parent c501d462cf
commit 57934decb2

View file

@ -31,10 +31,15 @@ KERNEL_OUT_MODINSTALL := $(KERNEL_OUT_DIR)/$(KERNEL_MODINSTALL)
KERNEL_MODULES_ROOT := $(PRODUCT_OUT)/root KERNEL_MODULES_ROOT := $(PRODUCT_OUT)/root
KERNEL_MODULES_VENDOR := $(PRODUCT_OUT)/system/vendor/modules KERNEL_MODULES_VENDOR := $(PRODUCT_OUT)/system/vendor/modules
KERNEL_CONFIG := $(KERNEL_OUT_DIR)/.config KERNEL_CONFIG := $(KERNEL_OUT_DIR)/.config
ifneq ($(BUILD_NUMBER),)
KERNEL_BUILD_NUMBER ?= $(BUILD_NUMBER)
else
KERNEL_BUILD_NUMBER ?= dev
endif
KERNEL_BLD_FLAGS := \ KERNEL_BLD_FLAGS := \
ARCH=$(TARGET_KERNEL_ARCH) \ ARCH=$(TARGET_KERNEL_ARCH) \
INSTALL_MOD_PATH=$(KERNEL_MODINSTALL) \ INSTALL_MOD_PATH=$(KERNEL_MODINSTALL) \
LOCALVERSION=-ayufan-$(BUILD_NUMBER) \ LOCALVERSION=-ayufan-$(KERNEL_BUILD_NUMBER) \
$(KERNEL_EXTRA_FLAGS) $(KERNEL_EXTRA_FLAGS)
KERNEL_BLD_FLAGS :=$(KERNEL_BLD_FLAGS) \ KERNEL_BLD_FLAGS :=$(KERNEL_BLD_FLAGS) \