Yocto Customizing the Linux kernel: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
Line 24: Line 24:
  SRC_URI = "git://github.com/varigit/uboot-imx.git;protocol=git;branch=${SRCBRANCH}"
  SRC_URI = "git://github.com/varigit/uboot-imx.git;protocol=git;branch=${SRCBRANCH}"


to replace Variscite's U-Boot with your own.
with your own U-boot repository. For example:
SRCBRANCH = "{{#var:U-BOOT_BRANCH}}"
SRCREV = "${AUTOREV}"
SRC_URI = "git://github.com/customer/uboot-imx.git;protocol=git;branch=${SRCBRANCH}"
 


{{note|We recommend to use "${AUTOREV}" during development to get the latest Kernel and U-boot when you build Yocto}}
{{note|We recommend to use "${AUTOREV}" during development to get the latest Kernel and U-boot when you build Yocto}}

Revision as of 10:00, 23 May 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/morty/recipes-kernel/linux/linux-variscite_4.1.15.bb

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

with your own. For example:

SRCBRANCH = ""
SRCREV = "${AUTOREV}"
KERNEL_SRC ?= "git://github.com/customer/linux-2.6-imx.git;protocol=git"

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

SRCREV = "fixed commit id"
SRCBRANCH = ""
SRC_URI = "git://github.com/varigit/uboot-imx.git;protocol=git;branch=${SRCBRANCH}"

with your own U-boot repository. For example:

SRCBRANCH = ""
SRCREV = "${AUTOREV}" 
SRC_URI = "git://github.com/customer/uboot-imx.git;protocol=git;branch=${SRCBRANCH}"


We recommend to use "${AUTOREV}" during development to get the latest Kernel and U-boot when you build Yocto