Working u-boot-tools
This commit is contained in:
parent
11cfc5dcd0
commit
f236677b84
3 changed files with 36 additions and 27 deletions
|
|
@ -1,49 +1,46 @@
|
|||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
EAPI=5
|
||||
|
||||
inherit eutils toolchain-funcs git-2 versionator
|
||||
ETYPE=sources
|
||||
|
||||
MY_P="u-boot-${PV/_/-}"
|
||||
EGIT_REPO_URI=https://github.com/hardkernel/u-boot
|
||||
EGIT_PROJECT="u-boot.git"
|
||||
EGIT_BRANCH="odroidc-v2011.03"
|
||||
inherit eutils git-r3 versionator
|
||||
|
||||
EGIT_REPO_URI=git://github.com/hardkernel/u-boot.git
|
||||
EGIT_BRANCH="odroidc-v$(get_version_component_range 1-2)"
|
||||
EGIT_CHECKOUT_DIR="$S"
|
||||
|
||||
DESCRIPTION="Odroid C1 U-Boot"
|
||||
HOMEPAGE="https://github.com/hardkernel/u-boot"
|
||||
SLOT=0
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="amd64 arm x86"
|
||||
IUSE=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
KEYWORDS="~arm"
|
||||
|
||||
src_unpack() {
|
||||
git-2_src_unpack
|
||||
git-r3_src_unpack
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/000_change_abi.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export ARCH=arm
|
||||
emake \
|
||||
HOSTSTRIP=: \
|
||||
HOSTCC="$(tc-getCC)" \
|
||||
HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)' \
|
||||
odroidc_config
|
||||
HOSTSTRIP=: \
|
||||
HOSTCC="$(tc-getCC)" \
|
||||
HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)' \
|
||||
odroidc_config
|
||||
emake
|
||||
emake tools-all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd tools
|
||||
dobin bmp_logo gen_eth_addr img2srec mkimage
|
||||
dobin easylogo/easylogo
|
||||
dobin env/fw_printenv
|
||||
dosym fw_printenv /usr/bin/fw_setenv
|
||||
insinto /etc
|
||||
doins env/fw_env.config
|
||||
cd ..
|
||||
cd build/tools
|
||||
dobin bmp_logo easylogo/easylogo env/fw_printenv gen_eth_addr img2srec inca-swap-bytes mkimage ncb ubsha1 uclpack
|
||||
cd ../..
|
||||
insinto /opt/hardkernel
|
||||
dodir sd_fuse
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue