DESCRIPTION = "U-boot bootloader w/ BUG support"
LICENSE = "GPL"
SECTION = "bootloader"
PRIORITY = "optional"
PV = "1.3.2+svnr${SRCPV}"
SRCREV = "8674"
PR = "r6"

SRC_URI = "\
  svn://svn.buglabs.net/bug/branches/R1.4/qa;module=u-boot;proto=svn \
"
S = "${WORKDIR}/u-boot"

COMPATIBLE_MACHINE = "bug"
PACKAGE_ARCH = "${MACHINE}"

EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
TARGET_LDFLAGS = ""

do_compile () {
    oe_runmake mx31_bug2_config
    oe_runmake clean
    oe_runmake all
}

do_deploy () {
    install -d ${DEPLOY_DIR_IMAGE}
    install -m 0644 ${S}/u-boot.bin ${DEPLOY_DIR_IMAGE}/u-boot-${PV}-${PR}.bin
    ln -sf ${DEPLOY_DIR_IMAGE}/u-boot-${PV}-${PR}.bin ${DEPLOY_DIR_IMAGE}/uboot-latest.bin
}

do_stage() {
    install -m 0755 tools/mkimage ${STAGING_BINDIR_NATIVE}/mkimage
}

do_deploy[dirs] = "${S}"
addtask deploy before do_package after do_install

DESCRIPTION = "U-boot bootloader w/ BUG support"
LICENSE = "GPL"
SECTION = "bootloader"
PRIORITY = "optional"
PV = "1.3.2+svnr${SRCPV}"
SRCREV = "8674"
PR = "r7"

SRC_URI = "\
  svn://svn.buglabs.net/bug/branches/R1.4/qa;module=u-boot;proto=svn \
"
S = "${WORKDIR}/u-boot"

COMPATIBLE_MACHINE = "bug"
PACKAGE_ARCH = "${MACHINE}"

EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
TARGET_LDFLAGS = ""

do_compile () {
    oe_runmake mx31_bug2_config
    oe_runmake clean
    oe_runmake all
}

do_deploy () {
    install -d ${DEPLOY_DIR_IMAGE}
    install -m 0644 ${S}/u-boot.bin ${DEPLOY_DIR_IMAGE}/u-boot-${PV}-${PR}.bin
    package_stagefile_shell ${DEPLOY_DIR_IMAGE}/u-boot-${PV}-${PR}.bin
    ln -sf ${DEPLOY_DIR_IMAGE}/u-boot-${PV}-${PR}.bin ${DEPLOY_DIR_IMAGE}/uboot-latest.bin
    package_stagefile_shell ${DEPLOY_DIR_IMAGE}/uboot-latest.bin
}

do_deploy[dirs] = "${S}"
addtask deploy before do_package after do_install

Drop do_stage (not needed), add package_stagefile_shell to deploy
u-boot-bug: Drop do_stage (not needed), add package_stagefile_shell to deploy

Signed-off-by: Tom Rini <4c3d5c8f8c21c27dd329bd585f481113514551fd@mentor.com>
