sys-apps/rkflashtool - 9999 (mva)

Search

Install

Install this version:

emerge -a =sys-apps/rkflashtool-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sys-apps/rkflashtool-9999

Or alternatively:

emerge --autounmask-write -a =sys-apps/rkflashtool-9999

Package Information

Description:
Tool for flashing Rockchip devices
Homepage:
https://sourceforge.net/projects/rkflashtool/
License:
BSD-2

Ebuild Details

Version EAPI Keywords Slot
9999 8 ~amd64 0
View Raw Ebuild
# Copyright 2026 mva
# Distributed under the terms of the Public Domain or CC0 License

EAPI=8

inherit toolchain-funcs

DESCRIPTION="Tool for flashing Rockchip devices"
HOMEPAGE="https://sourceforge.net/projects/rkflashtool/"

LICENSE="BSD-2"
SLOT="0"

if [[ "${PV}" == 9999* ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://git.code.sf.net/p/${PN}/Git"
else
	KEYWORDS="~amd64"
	SRC_URI="https://downloads.sourceforge.net/project/${PN}/${P}/${P}-src.tar.xz"
	S="${WORKDIR}/${P}-src"
fi

RDEPEND="virtual/libusb:1"
DEPEND="${RDEPEND}"

DOCS=( README )

src_prepare() {
	sed -r -i \
		-e '1,8s@(^CC[\t\ ]*)=@\1?=@' \
		-e '1,8s@(^LD[\t\ ]*)=@\1?=@' \
		-e '1,8s@(^CFLAGS[\t\ ]*)=@\1?=@' \
		-e '1,8s@(^LDFLAGS[\t\ ]*)=@\1?=@' \
		-e '1,8s@(^PREFIX[\t\ ]*)\?=.*$@\1= usr@' \
		Makefile || die
	tc-export CC
	tc-export LD
	default
}

Inherited Eclasses

Dependencies

DEPEND

virtual/libusb:1

RDEPEND

virtual/libusb:1