From e0f6eddce82399a5cb64d8a0055a1c620b5928e4 Mon Sep 17 00:00:00 2001 From: Eric Bénard Date: Thu, 8 Mar 2012 17:22:49 +0100 Subject: barebox: add recipe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit barebox is a modern bootloader, this recipe adds support for the imx53qsb and includes patches to support both DA9053 and MC34708 based QSB (named MCIMX53-START & MCIMX53-START-R). These patches are now mainlined in the next branch of barebox so they will disapear in the next update (ie barebox-2012.04.0) Signed-off-by: Eric Bénard --- recipes-bsp/barebox/barebox.inc | 53 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 recipes-bsp/barebox/barebox.inc (limited to 'recipes-bsp/barebox/barebox.inc') diff --git a/recipes-bsp/barebox/barebox.inc b/recipes-bsp/barebox/barebox.inc new file mode 100644 index 0000000..1272259 --- /dev/null +++ b/recipes-bsp/barebox/barebox.inc @@ -0,0 +1,53 @@ +DESCRIPTION = "Barebox - a bootloader that inherits the best of U-Boot and the Linux kernel" +HOMEPAGE = "http://www.barebox.org/" +SECTION = "bootloader" +PROVIDES = "virtual/bootloader" +PRIORITY = "optional" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=057bf9e50e1ca857d0eb97bfe4ba8e5d" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +inherit kernel-arch + +EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}" + +BAREBOX_BINARY ?= "barebox.bin" +BAREBOX_IMAGE ?= "barebox-${MACHINE}-${PV}-${PR}.bin" +BAREBOXENV_BIN ?= "bareboxenv-${MACHINE}-${PV}-${PR}.bin" +BAREBOX_SYMLINK ?= "barebox-${MACHINE}.bin" +BAREBOXENV_SYMLINK ?= "bareboxenv-${MACHINE}.bin" + +INSANE_SKIP_${PN} = "True" + +do_configure_prepend() { + cp ${WORKDIR}/defconfig ${S}/.config + oe_runmake oldconfig +} + +do_compile () { + unset LDFLAGS + unset CFLAGS + unset CPPFLAGS + oe_runmake all +} + +do_deploy () { + install -d ${DEPLOY_DIR_IMAGE} + install ${S}/${BAREBOX_BINARY} ${DEPLOY_DIR_IMAGE}/${BAREBOX_IMAGE} + install ${S}/barebox_default_env ${DEPLOY_DIR_IMAGE}/${BAREBOXENV_BIN} + + cd ${DEPLOY_DIR_IMAGE} + rm -f ${BAREBOX_SYMLINK} + rm -f ${BAREBOXENV_SYMLINK} + ln -sf ${BAREBOX_IMAGE} ${BAREBOX_SYMLINK} + ln -sf ${BAREBOXENV_BIN} ${BAREBOXENV_SYMLINK} + + install -d ${STAGING_BINDIR_NATIVE} + cd ${S} + install -m 755 scripts/mkimage ${STAGING_BINDIR_NATIVE}/ + install -m 755 scripts/bareboxenv ${STAGING_BINDIR_NATIVE}/ +} + +do_deploy[dirs] = "${S}" +addtask deploy before do_build after do_compile -- cgit v1.2.3-54-g00ecf