Blame view

recipes-kernel/linux/linux-smarct437x-staging_4.1.bb 3.64 KB
4c269ef45   Eric Lee   Initial Yocto met...
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
43
44
45
46
47
48
49
50
  SECTION = "kernel"
  DESCRIPTION = "Linux kernel for Embedian SMARC-T437X Computer on Module devices"
  LICENSE = "GPLv2"
  LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
  
  inherit kernel
  
  require recipes-kernel/linux/linux-dtb.inc
  require recipes-kernel/linux/setup-defconfig.inc
  require recipes-kernel/linux/cmem.inc
  
  # Look in the generic major.minor directory for files
  FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-4.1:"
  
  # Pull in the devicetree files into the rootfs
  RDEPENDS_kernel-base += "kernel-devicetree"
  
  # Add a run-time dependency for the PM firmware to be installed
  # on the target file system.
  RDEPENDS_kernel-base_append_ti33x = " amx3-cm3"
  RDEPENDS_kernel-base_append_ti43x = " amx3-cm3"
  
  # Add a run-time dependency for the VPE VPDMA firmware to be installed
  # on the target file system.
  RDEPENDS_kernel-base_append_dra7xx = " vpdma-fw"
  
  # Default is to package all dtb files for ti33x devices unless building
  # for the specific beaglebone machine.
  KERNEL_DEVICETREE_ti33x = "am335x-smarct335x.dtb am335x-evm.dtb am335x-evmsk.dtb am335x-bone.dtb am335x-boneblack.dtb"
  KERNEL_DEVICETREE_ti43x = "am43x-epos-evm.dtb am43x-epos-evm-hdmi.dtb am437x-gp-evm.dtb am437x-gp-evm-hdmi.dtb am437x-sk-evm.dtb am437x-smarct437x.dtb"
  KERNEL_DEVICETREE_beaglebone = "am335x-bone.dtb am335x-boneblack.dtb"
  KERNEL_DEVICETREE_omap5-evm = "omap5-uevm.dtb"
  KERNEL_DEVICETREE_dra7xx-evm = "dra7-evm.dtb dra7-evm-lcd-lg.dtb dra7-evm-lcd-osd.dtb dra72-evm.dtb dra72-evm-lcd-lg.dtb dra72-evm-lcd-osd.dtb"
  KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb am57xx-evm.dtb"
  KERNEL_DEVICETREE_omap3 = "omap3-beagle.dtb omap3-beagle-xm.dtb omap3-evm.dtb omap3-evm-37xx.dtb am3517-evm.dtb"
  KERNEL_DEVICETREE_am3517-evm = "am3517-evm.dtb"
  KERNEL_DEVICETREE_am37x-evm = "omap3-evm-37xx.dtb"
  KERNEL_DEVICETREE_beagleboard = "omap3-beagle.dtb omap3-beagle-xm.dtb"
  KERNEL_DEVICETREE_pandaboard = "omap4-panda.dtb omap4-panda-es.dtb"
  KERNEL_DEVICETREE_k2hk-evm = "k2hk-evm.dtb"
  KERNEL_DEVICETREE_k2e-evm = "k2e-evm.dtb"
  KERNEL_DEVICETREE_k2l-evm = "k2l-evm.dtb"
  
  KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
  
  COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|omap3|omap4|keystone|smarct335x|smarct437x"
  
  S = "${WORKDIR}/git"
  
  # For 4.1y Kernel and running at 1Ghz
c27c68d15   Eric Lee   Fix audio bug whe...
51
  BRANCH = "smarct4x-processor-sdk-linux-02.00.01"
5105bb9a1   Eric Lee   Change OPP table ...
52
  # For 4.1y Kernel and running at 800Mhz
c27c68d15   Eric Lee   Fix audio bug whe...
53
  # BRANCH = "smarct4x-800-processor-sdk-linux-02.00.01"
4c269ef45   Eric Lee   Initial Yocto met...
54
55
  
  # Corresponds to tag smarct4x-processor-sdk-linux-02.00.01, CPU running at 1Ghz
c27c68d15   Eric Lee   Fix audio bug whe...
56
  SRCREV = "2e14e83584cb6bcd08dbcecbcbdf57a75ae4fc66"
5105bb9a1   Eric Lee   Change OPP table ...
57
58
  
  # Corresponds to tag smarct4x-800-processor-sdk-linux-02.00.01, CPU running at 800Mhz
c27c68d15   Eric Lee   Fix audio bug whe...
59
  # SRCREV = "84e9252dbf36e0ca852d26377e8f155d548b62da"
4c269ef45   Eric Lee   Initial Yocto met...
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
  PV = "4.1.13+git${SRCPV}"
  
  # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
  MACHINE_KERNEL_PR_append = "m"
  PR = "${MACHINE_KERNEL_PR}"
  
  KERNEL_CONFIG_DIR = "${S}/ti_config_fragments"
  
  KERNEL_CONFIG_FRAGMENTS_append_ti33x = " ${KERNEL_CONFIG_DIR}/am33xx_only.cfg"
  KERNEL_CONFIG_FRAGMENTS_append_ti43x = " ${KERNEL_CONFIG_DIR}/am43xx_only.cfg"
  KERNEL_CONFIG_FRAGMENTS_append_dra7xx = " ${KERNEL_CONFIG_DIR}/dra7_only.cfg"
  
  MULTI_CONFIG_BASE_SUFFIX = ""
  
  SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${BRANCH} \
          file://defconfig \
  "
  
  # Add append for SDK-02.00.00.00 specific changes not in mainline
  MACHINE_KERNEL_PR_append = "-smarc2"
  
  EXTRAPATHS_prepend := "${THISDIR}/${P}:"
  
  require copy-defconfig.inc
  
  KERNEL_LOCALVERSION = "-g${@d.getVar('SRCPV', True).partition('+')[2][0:7]}"
  
  kernel_do_configure_prepend() {
      if [ ! -e ${B}/.scmversion -a ! -e ${S}/.scmversion ]
      then
          echo ${KERNEL_LOCALVERSION} > ${B}/.scmversion
          echo ${KERNEL_LOCALVERSION} > ${S}/.scmversion
      fi
  }