diff options
| author | Sipke Vriend <sipke.vriend@xilinx.com> | 2013-08-09 15:19:34 +1000 |
|---|---|---|
| committer | Sipke Vriend <sipke.vriend@xilinx.com> | 2013-08-09 15:19:34 +1000 |
| commit | 31b1ec743cc0c6484c426bc7e1621a0608f0a1ea (patch) | |
| tree | 609ecd7b54596e72476829010ca4b05d41df8d87 | |
| parent | ec2b5f821555808b163a068b5193e1155ef5e03c (diff) | |
| download | meta-xilinx-31b1ec743cc0c6484c426bc7e1621a0608f0a1ea.tar.gz | |
recipes-kernel: Add linux-xlnx-dev bleeding edge recipe
Bleeding edge recipe allows developers to build the latest commit on
linux-xlnx kernel master-next branch. The branch can be modified by the developer if
they wish in the local.conf file by setting KBRANCH variable.
The configuration is taken from meta-xilinx, and is likely from a slightly
older kernel release. The developer should create a new config if there
are new configs or features in the bleeding edge kernel.
Signed-off-by: Sipke Vriend <sipke.vriend@xilinx.com>
| -rw-r--r-- | recipes-kernel/linux/linux-xlnx-dev.bb | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-xlnx-dev.bb b/recipes-kernel/linux/linux-xlnx-dev.bb new file mode 100644 index 00000000..d27f506e --- /dev/null +++ b/recipes-kernel/linux/linux-xlnx-dev.bb | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | # This recipe tracks the 'bleeding edge' linux-xlnx repository. | ||
| 2 | # Since this tree is frequently updated, AUTOREV is used to track its contents. | ||
| 3 | # | ||
| 4 | # To enable this recipe, set PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-dev" | ||
| 5 | |||
| 6 | # These variables should reflect the linux-xlnx SRCREV and Linux version of | ||
| 7 | # latest upstream linux release merge. If these are out of date, please email | ||
| 8 | # meta-xilinx@yoctoproject.org to have it corrected. The linux-xlnx-dev build | ||
| 9 | # should still function correctly with out of date values, but the naming will | ||
| 10 | # be missleading. | ||
| 11 | LINUX_XLNX_NEARTOP_SRCREV = "669ee45083e22963d7fb7b774c5d7893ed35de2e" | ||
| 12 | LINUX_XLNX_NEARTOP_VERSION = "3.10" | ||
| 13 | |||
| 14 | # LINUX_VERSION is set to select the defconfig and dts we wish to use within | ||
| 15 | # meta-xilinx. If the build fails it may be because this defconfig is out | ||
| 16 | # of date. If that happens or if the developer desires a non meta-xilinx config | ||
| 17 | # they should add the defconfig and name it appropriately so the recipes find | ||
| 18 | # the file. | ||
| 19 | LINUX_VERSION ?= "3.8" | ||
| 20 | |||
| 21 | LINUX_VERSION_EXTENSION ?= "-xilinx-dev" | ||
| 22 | |||
| 23 | KBRANCH ?= "master-next" | ||
| 24 | KBRANCH_DEFAULT = "master" | ||
| 25 | |||
| 26 | include linux-xlnx.inc | ||
| 27 | |||
| 28 | SRC_URI = "git://github.com/Xilinx/linux-xlnx.git;protocol=git;nocheckout=1;branch=${KBRANCH}" | ||
| 29 | |||
| 30 | # Set default SRCREVs. SRCREVs statically set to prevent network access during | ||
| 31 | # parsing. If linux-xlnx-dev is the preferred provider, they will be overridden | ||
| 32 | # to AUTOREV in the anonymous python routine and resolved when the variables | ||
| 33 | # are finalized. | ||
| 34 | SRCREV="${LINUX_XLNX_NEARTOP_SRCREV}" | ||
| 35 | |||
| 36 | python () { | ||
| 37 | if d.getVar("PREFERRED_PROVIDER_virtual/kernel", True) != "linux-xlnx-dev": | ||
| 38 | raise bb.parse.SkipPackage("Set PREFERRED_PROVIDER_virtual/kernel to linux-xlnx-dev to enable it") | ||
| 39 | else: | ||
| 40 | d.setVar("SRCREV", "${AUTOREV}") | ||
| 41 | } | ||
| 42 | |||
| 43 | PR = "r0" | ||
| 44 | PV = "${LINUX_XLNX_NEARTOP_VERSION}+${LINUX_VERSION_EXTENSION}+git${SRCREV}" | ||
