odroid-c1-overlay/dev-embedded/u-boot-tools-odroidc1/u-boot-tools-odroidc1-2011.03.ebuild

48 lines
1.1 KiB
Bash
Raw Normal View History

# Copyright 1999-2017 Gentoo Foundation
2015-01-27 04:10:45 +00:00
# Distributed under the terms of the GNU General Public License v2
2016-03-20 15:04:53 +00:00
EAPI=6
2015-01-27 04:10:45 +00:00
inherit toolchain-funcs eutils git-r3 versionator
2015-02-17 02:16:25 +00:00
EGIT_REPO_URI=git://github.com/hardkernel/u-boot.git
EGIT_BRANCH="odroidc-v$(get_version_component_range 1-2)"
2015-01-27 04:10:45 +00:00
DESCRIPTION="Odroid C1 U-Boot"
HOMEPAGE="https://github.com/hardkernel/u-boot"
SLOT=0
LICENSE="GPL-2"
2015-02-17 02:16:25 +00:00
KEYWORDS="~arm"
PATCHES=(
"${FILESDIR}/0001-fix-missing-header.patch"
)
2015-02-17 02:16:25 +00:00
2015-01-27 04:10:45 +00:00
src_compile() {
# Unset a few KBUILD variables. Bug #540476
unset KBUILD_OUTPUT KBUILD_SRC
emake odroidc_config
2016-03-20 15:04:53 +00:00
emake \
HOSTSTRIP=: \
STRIP=: \
2016-03-20 15:04:53 +00:00
HOSTCC="$(tc-getCC)" \
HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)' \
HOSTLDFLAGS="${LDFLAGS}" \
CONFIG_ENV_OVERWRITE=y \
tools-all
2015-01-27 04:10:45 +00:00
}
src_install() {
cd build/tools || die
dobin bmp_logo gen_eth_addr img2srec inca-swap-bytes mkimage ncb ubsha1 uclpack
dobin easylogo/easylogo
dobin env/fw_printenv
dosym fw_printenv /usr/bin/fw_setenv
doman "${S}"/doc/mkimage.1
2016-03-20 15:04:53 +00:00
cd ../..
dodir /opt/hardkernel
cp -R sd_fuse "${D}/opt/hardkernel" || die "could not copy sd_fuse directory"
2015-01-27 04:10:45 +00:00
}