Update
This commit is contained in:
parent
816e367eda
commit
6ed981c260
@ -5,10 +5,16 @@ EAPI=8
|
|||||||
|
|
||||||
inherit toolchain-funcs
|
inherit toolchain-funcs
|
||||||
|
|
||||||
|
PKGREL="4"
|
||||||
|
FIRMWAREVERSION="2.6"
|
||||||
MY_P="u-boot-${PV/_/-}"
|
MY_P="u-boot-${PV/_/-}"
|
||||||
DESCRIPTION="utilities for working with Das U-Boot for the PinePhone Pro"
|
DESCRIPTION="utilities for working with Das U-Boot for the PinePhone Pro"
|
||||||
HOMEPAGE="https://www.denx.de/wiki/U-Boot/WebHome"
|
HOMEPAGE="https://www.denx.de/wiki/U-Boot/WebHome"
|
||||||
SRC_URI="https://ftp.denx.de/pub/u-boot/${MY_P}.tar.bz2"
|
SRC_URI="
|
||||||
|
https://ftp.denx.de/pub/u-boot/${MY_P}.tar.bz2
|
||||||
|
https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/snapshot/trusted-firmware-a-${FIRMWAREVERSION}.tar.gz
|
||||||
|
"
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
LICENSE="GPL-2"
|
||||||
@ -16,6 +22,7 @@ SLOT="0"
|
|||||||
KEYWORDS="~arm64"
|
KEYWORDS="~arm64"
|
||||||
IUSE="envtools"
|
IUSE="envtools"
|
||||||
|
|
||||||
|
|
||||||
RDEPEND="dev-libs/openssl:="
|
RDEPEND="dev-libs/openssl:="
|
||||||
DEPEND="${RDEPEND}"
|
DEPEND="${RDEPEND}"
|
||||||
BDEPEND="
|
BDEPEND="
|
||||||
@ -48,6 +55,13 @@ src_configure() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
|
cd ${WORKDIR}/trusted-firmware-a-${FIRMWAREVERSION}
|
||||||
|
unset CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
|
||||||
|
make PLAT=rk3399
|
||||||
|
cp build/rk3399/release/bl31/bl31.elf ${S}
|
||||||
|
|
||||||
|
cd ${S}
|
||||||
|
|
||||||
# Unset a few KBUILD variables. Bug #540476
|
# Unset a few KBUILD variables. Bug #540476
|
||||||
unset KBUILD_OUTPUT KBUILD_SRC
|
unset KBUILD_OUTPUT KBUILD_SRC
|
||||||
|
|
||||||
@ -62,22 +76,16 @@ src_compile() {
|
|||||||
|
|
||||||
emake "${myemakeargs[@]}" pinephone-pro-rk3399_defconfig
|
emake "${myemakeargs[@]}" pinephone-pro-rk3399_defconfig
|
||||||
|
|
||||||
echo 'CONFIG_IDENT_STRING=" Gentoo Linux"' >> .config
|
echo 'CONFIG_IDENT_STRING=" Gentoo"' >> .config
|
||||||
echo 'CONFIG_USB_EHCI_HCD=n' >> .config
|
|
||||||
echo 'CONFIG_USB_EHCI_GENERIC=n' >> .config
|
|
||||||
echo 'CONFIG_USB_XHCI_HCD=n' >> .config
|
|
||||||
echo 'CONFIG_USB_XHCI_DWC3=n' >> .config
|
|
||||||
echo 'CONFIG_USB_DWC3=n' >> .config
|
|
||||||
echo 'CONFIG_USB_DWC3_GENERIC=n' >> .config
|
|
||||||
|
|
||||||
emake "${myemakeargs[@]}"
|
emake "${myemakeargs[@]}" EXTRAVERSION=-${PKGREL}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_test() { :; }
|
src_test() { :; }
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
emake "${myemakeargs[@]}" install
|
cp idbloader.img u-boot.itb "/boot/"
|
||||||
|
|
||||||
dobin env/fw_printenv
|
dobin env/fw_printenv
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user