diff options
author | Dan McGregor <danismostlikely@gmail.com> | 2013-12-10 08:45:34 -0600 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2013-12-10 14:09:23 -0200 |
commit | c9284f1668f33d5c6a9b2bcc7fc869642a0e4b92 (patch) | |
tree | 364bc658dfd9d66cc029bd71638c438034f73aff | |
parent | daea0e2bb3b42bf5ebb3a676f27e2fa08e87520b (diff) | |
download | meta-fsl-arm-c9284f1668f33d5c6a9b2bcc7fc869642a0e4b92.tar.gz |
u-boot-fslc: Add branch to SRC_URI and separate recipe files
Separate the recipe into two files in the same fashion as the kernel
recipes. A u-boot-fslc.inc file contains the common settings for the
recipe, and a .bb file contains the settings specific to the version
of u-boot to be built (e.g. SRCREV, branch name).
In addition, new versions of bitbake require that a branch be specified
and that the SRCREV be in the specified branch. Set the branch in the
SRC_URI.
Branch code based on patch from Dan McGregor <danismostlikely@gmail.com>
Change-Id: I89d017fa4cc3e7addbea89d49605f78e3d84e246
Signed-off-by: John Weber <rjohnweber@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r-- | recipes-bsp/u-boot/u-boot-fslc.inc | 29 | ||||
-rw-r--r-- | recipes-bsp/u-boot/u-boot-fslc_2013.10.bb | 24 |
2 files changed, 32 insertions, 21 deletions
diff --git a/recipes-bsp/u-boot/u-boot-fslc.inc b/recipes-bsp/u-boot/u-boot-fslc.inc new file mode 100644 index 0000000..485c252 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-fslc.inc | |||
@@ -0,0 +1,29 @@ | |||
1 | # Copyright (C) 2012, 2013 O.S. Systems Software LTDA. | ||
2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
3 | |||
4 | require recipes-bsp/u-boot/u-boot.inc | ||
5 | |||
6 | DESCRIPTION = "U-boot bootloader for Freescale ARM platforms" | ||
7 | LICENSE = "GPLv2+" | ||
8 | LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb" | ||
9 | COMPATIBLE_MACHINE = "(mxs|mx3|mx5|mx6|vf60)" | ||
10 | |||
11 | DEPENDS_mxs += "elftosb-native openssl-native" | ||
12 | |||
13 | PROVIDES += "u-boot" | ||
14 | |||
15 | SRCBRANCH ??= "master" | ||
16 | |||
17 | SRC_URI = "git://github.com/Freescale/u-boot-imx.git;branch=${SRCBRANCH}" | ||
18 | |||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | # FIXME: Allow linking of 'tools' binaries with native libraries | ||
22 | # used for generating the boot logo and other tools used | ||
23 | # during the build process. | ||
24 | EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CPPFLAGS}" \ | ||
25 | HOSTLDFLAGS="-L${STAGING_BASE_LIBDIR_NATIVE} -L${STAGING_LIBDIR_NATIVE}" \ | ||
26 | HOSTSTRIP=true' | ||
27 | |||
28 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
29 | |||
diff --git a/recipes-bsp/u-boot/u-boot-fslc_2013.10.bb b/recipes-bsp/u-boot/u-boot-fslc_2013.10.bb index 73d4371..ea42c74 100644 --- a/recipes-bsp/u-boot/u-boot-fslc_2013.10.bb +++ b/recipes-bsp/u-boot/u-boot-fslc_2013.10.bb | |||
@@ -1,25 +1,7 @@ | |||
1 | require recipes-bsp/u-boot/u-boot.inc | 1 | include u-boot-fslc.inc |
2 | |||
3 | LICENSE = "GPLv2+" | ||
4 | LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb" | ||
5 | COMPATIBLE_MACHINE = "(mxs|mx3|mx5|mx6|vf60)" | ||
6 | |||
7 | DEPENDS_mxs += "elftosb-native openssl-native" | ||
8 | |||
9 | PROVIDES += "u-boot" | ||
10 | 2 | ||
11 | PV = "v2013.10" | 3 | PV = "v2013.10" |
12 | 4 | ||
13 | SRCREV = "079e214888279518ce061c71238a74a0c3db2c28" | 5 | SRCBRANCH = "patches-2013.10" |
14 | SRC_URI = "git://github.com/Freescale/u-boot-imx.git" | ||
15 | 6 | ||
16 | S = "${WORKDIR}/git" | 7 | SRCREV = "079e214888279518ce061c71238a74a0c3db2c28" |
17 | |||
18 | # FIXME: Allow linking of 'tools' binaries with native libraries | ||
19 | # used for generating the boot logo and other tools used | ||
20 | # during the build process. | ||
21 | EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CPPFLAGS}" \ | ||
22 | HOSTLDFLAGS="-L${STAGING_BASE_LIBDIR_NATIVE} -L${STAGING_LIBDIR_NATIVE}" \ | ||
23 | HOSTSTRIP=true' | ||
24 | |||
25 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||