From af6a4f1d6143ad7103fb11bad7f4eda2de104b11 Mon Sep 17 00:00:00 2001 From: Gerben Jan Dijkman Date: Sat, 11 Dec 2021 19:02:27 +0100 Subject: [PATCH] fixes --- ...oot-tools-pinephone-pro-2021.01_rc3.ebuild | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/dev-embedded/u-boot-tools-pinephone-pro/u-boot-tools-pinephone-pro-2021.01_rc3.ebuild b/dev-embedded/u-boot-tools-pinephone-pro/u-boot-tools-pinephone-pro-2021.01_rc3.ebuild index be5c349..3a01497 100644 --- a/dev-embedded/u-boot-tools-pinephone-pro/u-boot-tools-pinephone-pro-2021.01_rc3.ebuild +++ b/dev-embedded/u-boot-tools-pinephone-pro/u-boot-tools-pinephone-pro-2021.01_rc3.ebuild @@ -78,6 +78,13 @@ src_compile() { emake "${myemakeargs[@]}" pinephone-pro-rk3399_defconfig 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[@]}" EXTRAVERSION=-${PKGREL} @@ -86,7 +93,17 @@ src_compile() { src_test() { :; } src_install() { - cp ${S}/idbloader.img ${S}/u-boot.itb "/boot/" + insinto /boot/ + doins ${S}/u-boot.itb + + insinto /boot/ + doins ${S}/idbloader.img + + cd tools || die + + if ! use envtools; then + dobin bmp_logo dumpimage fdtgrep gen_eth_addr img2srec mkenvimage mkimage + fi dobin env/fw_printenv @@ -100,6 +117,5 @@ src_install() { pkg_postinst() { einfo "This U-Boot is only to be used for the PinePhone Pro." - einfo "In /usr/src/linux use make pinephone_pro_defconfig to create a PinePhone Pro config" einfo "After compiling a new Gentoo kernel, copy the resulting Image from /usr/src/linux/arch/arm64/boot/zImage to the boot partition (replacing the existing Image)." }