2014-07-14 07:32:10 +00:00
|
|
|
PROVIDES = ""
|
2014-07-11 16:53:23 +00:00
|
|
|
SRC_URI = "git://git.sysmocom.de/barebox;protocol=git;branch=master"
|
2014-07-14 09:28:41 +00:00
|
|
|
SRCREV = "79a975077c3844c957f009224a76b5e493cfcb07"
|
|
|
|
PR = "r1"
|
2014-07-11 16:53:23 +00:00
|
|
|
|
|
|
|
COMPATIBLE_MACHINE="sysmocom-odu"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
|
|
|
|
BAREBOX_BINARY_OE ?= "barebox-mlo-${MACHINE}-${PV}-${PR}.bin"
|
|
|
|
BAREBOX_BINARY_SYMLINK ?= "barebox-mlo-${MACHINE}.bin"
|
|
|
|
BAREBOX_IMAGE ?= "images/barebox-am33xx-phytec-phycore-mlo.img"
|
|
|
|
BAREBOX_IMAGE_OE ?= "barebox-mlo-${MACHINE}-${PV}-${PR}.img"
|
|
|
|
BAREBOX_IMAGE_SYMLINK ?= "barebox-mlo-${MACHINE}.img"
|
|
|
|
|
|
|
|
require barebox.inc
|
|
|
|
|
2014-07-14 09:28:41 +00:00
|
|
|
|
2014-07-11 16:53:23 +00:00
|
|
|
do_pre_configure() {
|
|
|
|
cp ${S}/arch/arm/configs/am335x_mlo_defconfig_odu ${S}/.config
|
|
|
|
oe_runmake oldconfig
|
|
|
|
}
|
|
|
|
|
|
|
|
do_deploy_append() {
|
|
|
|
install ${S}/${BAREBOX_IMAGE} ${DEPLOY_DIR_IMAGE}/${BAREBOX_IMAGE_OE}
|
|
|
|
|
|
|
|
cd ${DEPLOY_DIR_IMAGE}
|
|
|
|
rm -f ${BAREBOX_IMAGE_SYMLINK}
|
|
|
|
ln -sf ${BAREBOX_IMAGE_OE} ${BAREBOX_IMAGE_SYMLINK}
|
|
|
|
}
|
|
|
|
|