summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-11-24 18:38:45 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-12-26 23:33:08 +0100
commitde642e4d2b895abc5927719d5999033920981e60 (patch)
tree9968cdf4bf3e7d00cdb3e9ae30a034b874a21b3b
parent9fab70a1c42f72dcab0faabde8f2b5933828665f (diff)
downloaddevice_samsung_midas_common-replicant-11.tar.gz
device_samsung_midas_common-replicant-11.tar.bz2
device_samsung_midas_common-replicant-11.zip
Build the kernelreplicant-11
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--BoardConfigCommon.mk14
-rw-r--r--midas.mk7
2 files changed, 14 insertions, 7 deletions
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk
index ddd711d..0a5d355 100644
--- a/BoardConfigCommon.mk
+++ b/BoardConfigCommon.mk
@@ -28,6 +28,18 @@ TARGET_NO_BOOTLOADER := true
BOARD_VENDOR := samsung
+# Kernel
+# To append the dtb to the zImage:
+# - Use BOARD_DTB_IMAGE_NAME with the right dtb
+# - Make sure that your kernel source doesn't have
+# any Android patches that would add the zImage-dtb
+# target.
+# The vendor/lineage/build/tasks/kernel.mk file
+# was modified to add support for that feature.
+TARGET_KERNEL_SOURCE := kernel/replicant/linux
+TARGET_KERNEL_CONFIG := replicant_defconfig
+BOARD_KERNEL_IMAGE_NAME := zImage-dtb
+
BOARD_USES_FULL_RECOVERY_IMAGE := false
BOARD_USES_RECOVERY_AS_BOOT := false
@@ -50,3 +62,5 @@ DEVICE_MANIFEST_FILE := device/samsung/midas-common/manifest.xml
PRODUCT_FULL_TREBLE_OVERRIDE := true
BUILD_BROKEN_USES_BUILD_HOST_STATIC_LIBRARY := true
BOARD_VENDOR_SEPOLICY_DIRS += device/samsung/midas-common/sepolicy
+
+-include vendor/replicant/config/BoardConfigReplicant.mk
diff --git a/midas.mk b/midas.mk
index 55c89d7..1b2871d 100644
--- a/midas.mk
+++ b/midas.mk
@@ -131,13 +131,6 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += $(LOCAL_PATH)/resize2fs_partitions.sh:system/bin/resize2fs_partitions.sh
##########
-# Kernel #
-##########
-
-PRODUCT_COPY_FILES += \
- kernel/replicant/linux/zImage-dtb:kernel \
-
-##########
# Lights #
##########