meta-digi-arm: create complete u-boot recipe (instead of bbappend)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2013-06-04 13:49:52 +02:00
parent ce54d81e66
commit 7ad6a5e63a
2 changed files with 12 additions and 11 deletions

View File

@ -1,6 +1,6 @@
# Digi BSP default providers
PREFERRED_PROVIDER_linux-libc-headers ?= "linux-libc-headers-imx"
PREFERRED_PROVIDER_u-boot ?= "u-boot-imx"
PREFERRED_PROVIDER_u-boot ?= "u-boot-del"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-del"
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"

View File

@ -1,15 +1,19 @@
# Copyright (C) 2012 Digi International
DESCRIPTION = "bootloader for Digi platforms"
DESCRIPTION = "Bootloader for Digi platforms"
require recipes-bsp/u-boot/u-boot.inc
PRINC := "${@int(PRINC) + 1}"
PR_append = "+${DISTRO}"
PROVIDES += "u-boot"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=4c6cde5df68eff615d36789dc18edd3b"
PR = "r0"
# Uncomment to build the from sources (internal use only)
# UBOOT_BUILD_SRC ?= "1"
SRCREV_mxs = "4af0b5f73215c6f075e17f866d831a948d777a2a"
SRCREV_mx5 = "4af0b5f73215c6f075e17f866d831a948d777a2a"
SRCREV = "4af0b5f73215c6f075e17f866d831a948d777a2a"
SRCREV_SHORT = "${@'${SRCREV}'[:7]}"
# Checksums for 'u-boot-denx-${SRCREV_SHORT}.tar.gz' tarballs
@ -24,15 +28,12 @@ SRC_URI_tarball = " \
SRC_URI = "${@base_conditional('UBOOT_BUILD_SRC', '1' , '${SRC_URI_git}', '${SRC_URI_tarball}', d)}"
S = "${@base_conditional('UBOOT_BUILD_SRC', '1' , '${WORKDIR}/git', '${WORKDIR}/u-boot-denx-${SRCREV_SHORT}', d)}"
EXTRA_OEMAKE += 'HOSTSTRIP=true'
DEPENDS_mxs += "elftosb-native imx-bootlets-del"
BOOTLETSDIR_mxs = "BOOTLETS_DIR=${STAGING_DIR_TARGET}/boot/"
EXTRA_OEMAKE += '${BOOTLETSDIR}'
# The meta-fsl-arm recipe overrides this so it needs to be done here again.
UBOOT_MAKE_TARGET_ccardimx28js = "u-boot-ivt.sb"
UBOOT_MAKE_TARGET_cpx2 = "u-boot-ivt.sb"
UBOOT_MAKE_TARGET_wr21 = "u-boot-ivt.sb"
PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "(ccardimx28js|ccimx51js|ccimx53js|cpx2|wr21)"