2015-05-31 18:07:00 +00:00
|
|
|
SUMMARY = "Barebox - a bootloader that inherits the best of U-Boot and the Linux kernel"
|
|
|
|
HOMEPAGE = "http://www.barebox.org/"
|
|
|
|
SECTION = "bootloaders"
|
2015-06-13 12:38:39 +00:00
|
|
|
PROVIDES ?= "virtual/bootloader"
|
|
|
|
DEPENDS += "lzop-native"
|
2015-05-31 18:07:00 +00:00
|
|
|
|
|
|
|
LICENSE = "GPLv2"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=057bf9e50e1ca857d0eb97bfe4ba8e5d"
|
|
|
|
|
|
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
|
|
|
|
|
|
inherit kernel-arch deploy
|
|
|
|
|
|
|
|
EXTRA_OEMAKE = "ARCH=arm CROSS_COMPILE=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}"
|
|
|
|
|
|
|
|
do_configure_prepend() {
|
|
|
|
cp ${WORKDIR}/defconfig ${S}/.config
|
|
|
|
oe_runmake oldconfig
|
|
|
|
}
|
|
|
|
|
|
|
|
do_compile () {
|
|
|
|
unset LDFLAGS
|
|
|
|
unset CFLAGS
|
|
|
|
unset CPPFLAGS
|
2015-06-14 08:31:02 +00:00
|
|
|
oe_runmake CC="$CC"
|
2015-05-31 18:07:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_deploy () {
|
2015-06-13 12:38:39 +00:00
|
|
|
install -d ${DEPLOY_DIR_TOOLS}
|
|
|
|
if [ -f ${S}/scripts/mkimage ]; then
|
|
|
|
install -m 755 ${S}/scripts/mkimage ${DEPLOY_DIR_TOOLS}/mkimage-${PV}
|
|
|
|
ln -sf mkimage-${PV} ${DEPLOY_DIR_TOOLS}/mkimage
|
|
|
|
fi
|
|
|
|
if [ -f ${S}/scripts/bareboxenv ]; then
|
|
|
|
install -m 755 ${S}/scripts/bareboxenv ${DEPLOY_DIR_TOOLS}/bareboxenv-${PV}
|
|
|
|
ln -sf bareboxenv-${PV} ${DEPLOY_DIR_TOOLS}/bareboxenv
|
|
|
|
fi
|
2015-05-31 18:07:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
addtask deploy before do_build after do_compile
|