Amit Pundir | ed4440b | 2020-01-27 14:48:09 +0530 | [diff] [blame^] | 1 | KERNEL_DIR := device/xiaomi/beryllium/prebuilt-kernel |
| 2 | |
| 3 | ifneq ($(USES_GKI), true) |
| 4 | # Kernel tree is hosted at https://github.com/pundiramit/linux/tree/display (beryllium_defconfig). |
| 5 | # cat arch/arm64/boot/Image.gz arch/arm64/boot/dts/qcom/sdm845-beryllium.dtb > Image.gz-dtb-beryllium |
| 6 | TARGET_PREBUILT_KERNEL ?= Image.gz-dtb-beryllium-5.2 |
| 7 | else |
| 8 | TARGET_PREBUILT_KERNEL ?= Image.gz-dtb |
| 9 | MODULES := $(wildcard $(KERNEL_DIR)/*.ko) |
| 10 | ifneq ($(MODULES),) |
| 11 | BOARD_VENDOR_KERNEL_MODULES += $(MODULES) |
| 12 | BOARD_VENDOR_RAMDISK_KERNEL_MODULES += $(MODULES) |
| 13 | endif |
| 14 | endif |
Amit Pundir | c738b81 | 2019-06-19 16:13:49 +0530 | [diff] [blame] | 15 | |
| 16 | # Inherit the full_base and device configurations |
| 17 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) |
| 18 | $(call inherit-product, device/xiaomi/beryllium/aosp_beryllium/device.mk) |
| 19 | $(call inherit-product, device/xiaomi/beryllium/device-common.mk) |
| 20 | $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk) |
| 21 | |
| 22 | # Product overrides |
| 23 | PRODUCT_NAME := aosp_beryllium |
| 24 | PRODUCT_DEVICE := aosp_beryllium |
| 25 | PRODUCT_BRAND := AOSP |