Blame view

recipes-kernel/linux/linux-smarcimx8m_4.14.98.bb 1.34 KB
3745f5192   Eric Lee   Initial Release, ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  # 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"
723226c1a   Eric Lee   Yocto Sumo Suppor...
15
  SRCBRANCH = "smarc_8m_imx_4.14.98_2.0.0_ga"
3745f5192   Eric Lee   Initial Release, ...
16
17
18
19
20
21
22
  
  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}"
2c1f50da6   Eric Lee   Fix clcok reset i...
23
  SRCREV = "181e2cadef77cf6891fd285915b294f7fd937c8c"
3745f5192   Eric Lee   Initial Release, ...
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
  
  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"