linux-smarcimx8m_4.14.98.bb
1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright (C) 2013-2016 Freescale Semiconductor
# Copyright 2017 NXP
# Copyright 2018-2019 Embedian, Inc.
# Released under the MIT license (see COPYING.MIT for the terms)
SUMMARY = "Linux kernel provided and supported by Embedian"
DESCRIPTION = "Linux kernel provided and supported by Embedian (based on the kernel imx_4.14.78_1.0.0_ga provided by NXP) \
with focus on i.MX Family SOMs. It includes support for many IPs such as GPU, VPU and IPU."
require recipes-kernel/linux/linux-imx.inc
DEPENDS += "lzop-native bc-native"
DEFAULT_PREFERENCE = "1"
SRCBRANCH = "smarc_8m_imx_4.14.98_2.0.0_ga"
LOCALVERSION = "-${SRCBRANCH}"
KERNEL_DEFCONFIG = "${S}/arch/arm64/configs/smarcimx8m_defconfig"
DEFAULT_DTB = "fsl-smarcimx8mq"
KERNEL_SRC ?= "git@git.embedian.com:developer/smarc-fsl-linux-kernel.git;protocol=git"
SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${SRCBRANCH}"
SRCREV = "93832f589fcc751743e1ebac8024ea29dbcf41df"
S = "${WORKDIR}/git"
addtask copy_defconfig after do_unpack before do_preconfigure
do_copy_defconfig () {
install -d ${B}
mkdir -p ${B}
cp ${KERNEL_DEFCONFIG} ${B}/.config
cp ${KERNEL_DEFCONFIG} ${B}/../defconfig
}
pkg_postinst_kernel-devicetree_append_mx8 () {
cd $D/boot
ln -s ${DEFAULT_DTB}.dtb ${UBOOT_DTB_NAME}
}
COMPATIBLE_MACHINE = "(mx6|mx7|mx8)"
EXTRA_OEMAKE_append_mx8 = " ARCH=arm64"