Use conditional check for build number
This commit is contained in:
parent
c501d462cf
commit
57934decb2
1 changed files with 6 additions and 1 deletions
|
@ -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) \
|
||||||
|
|
Loading…
Reference in a new issue