blob: c4d640a20c4292e9affcbd842dc445c165e4046f [file] [log] [blame]
Amit Pundired4440b2020-01-27 14:48:09 +05301KERNEL_DIR := device/xiaomi/beryllium/prebuilt-kernel
2
3ifneq ($(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
7else
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
14endif
Amit Pundirc738b812019-06-19 16:13:49 +053015
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
23PRODUCT_NAME := aosp_beryllium
24PRODUCT_DEVICE := aosp_beryllium
25PRODUCT_BRAND := AOSP