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-11-30 18:51:39 +0100
commit96dc2e76e6752e595520f85e10171299f0491ef2 (patch)
treec2ff246bfe7b4a739d1095a9179f96dd90335d37
parent10f8d01eedc6d66440a81c80f64c0520bafe0ded (diff)
downloaddevice_samsung_midas_common-wip/replicant-11/gcc-10.tar.gz
device_samsung_midas_common-wip/replicant-11/gcc-10.tar.bz2
device_samsung_midas_common-wip/replicant-11/gcc-10.zip
Build the kernelwip/replicant-11/gcc-10
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 aaba6ef..0ec328e 100644
--- a/midas.mk
+++ b/midas.mk
@@ -134,13 +134,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 #
##########