Yocto Customizing the Linux kernel: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
Line 8: Line 8:


  SRCBRANCH = "{{#var:KERNEL_BRANCH}}"
  SRCBRANCH = "{{#var:KERNEL_BRANCH}}"
  SRCREV = "fixed commit id"
  SRCREV = "commit id"
  KERNEL_SRC ?= "git://github.com/varigit/linux-2.6-imx.git;protocol=git"
  KERNEL_SRC ?= "git://github.com/varigit/linux-2.6-imx.git;protocol=git"


with your own. For example:
with your own. For example:


  SRCBRANCH = "{{#var:KERNEL_BRANCH}}"
  SRCBRANCH = "your desired branch (can stay the same)"
  SRCREV = "${AUTOREV}"
  SRCREV = "your desired commit id"
  KERNEL_SRC ?= "git://github.com/customer/linux-2.6-imx.git;protocol=git"
  KERNEL_SRC ?= "git://github.com/customer/linux-2.6-imx.git;protocol=git"



Revision as of 11:56, 13 September 2017

- Customizing the Linux kernel and U-Boot

Once completed developing your own kernel and U-Boot, create your own github account and upload your proprietary kernel and U-Boot to a new repository.
Replace Variscite's Kernel and U-Boot yocto links, to point to your newly created github branches. i.e. replace kernel link:
https://github.com/varigit/meta-variscite-fslc/blob//recipes-kernel/linux/linux-variscite_4.1.15.bb

SRCBRANCH = ""
SRCREV = "commit id"
KERNEL_SRC ?= "git://github.com/varigit/linux-2.6-imx.git;protocol=git"

with your own. For example:

SRCBRANCH = "your desired branch (can stay the same)"
SRCREV = "your desired commit id"
KERNEL_SRC ?= "git://github.com/customer/linux-2.6-imx.git;protocol=git"

Also replace:
https://github.com/varigit/meta-variscite-fslc/blob//recipes-bsp/u-boot/u-boot-common.inc

SRCBRANCH = ""
UBOOT_SRC = "git://github.com/varigit/uboot-imx.git;protocol=git"
SRCREV = "commit id"

with your own U-boot repository. For example:

SRCBRANCH = "your desired branch (can stay the same)"
UBOOT_SRC = "git://github.com/customer/uboot-imx.git;protocol=git"
SRCREV = "your desired commit id"


For the SRCREV value you can also use "${AUTOREV}" during development to get the latest commit of the branch