From 55a99a5f1212d95939a97df491ee878fff960361 Mon Sep 17 00:00:00 2001 From: Gerben Jan Dijkman Date: Sat, 11 Dec 2021 13:50:10 +0100 Subject: [PATCH] Try to get everything --- ...oot-tools-pinephone-pro-2021.01_rc3.ebuild | 19 +++++++++++++++++-- 1 file changed, 17 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 1c3581c..d84154e 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 @@ -6,7 +6,7 @@ EAPI=8 inherit toolchain-funcs MY_P="u-boot-${PV/_/-}" -DESCRIPTION="utilities for working with Das U-Boot" +DESCRIPTION="utilities for working with Das U-Boot for the PinePhone Pro" HOMEPAGE="https://www.denx.de/wiki/U-Boot/WebHome" SRC_URI="https://ftp.denx.de/pub/u-boot/${MY_P}.tar.bz2" S="${WORKDIR}/${MY_P}" @@ -31,6 +31,7 @@ src_prepare() { scripts/kconfig/Makefile \ tools/Makefile || die + #Apply PinePhone Pro patches eapply "${FILESDIR}"/0001-PPP.patch eapply "${FILESDIR}"/0002-Add-ppp-dt.patch eapply "${FILESDIR}"/0003-Config-changes.patch @@ -59,7 +60,15 @@ src_compile() { HOSTLDFLAGS="${LDFLAGS}" ) - emake "${myemakeargs[@]}" tools-only_defconfig + 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[@]}" \ NO_SDL=1 \ @@ -87,3 +96,9 @@ src_install() { doman ../doc/mkimage.1 } + +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)." +}