Created attachment 390550 [details] sunxi-tools 0.1 ebuild Hi! Please find attached sunxi-tools-0.1.ebuild. Sunxi tools help hacking Allwinner A10 devices, contains following binaries: fexc: `.fex` file (de)compiler Usage: ./fexc [-vq] [-I <infmt>] [-O <outfmt>] [<input> [<output>]] infmt: fex, bin (default:fex) outfmt: fex, bin (default:bin) bin2fex: compatibility shortcut to call `fexc` to decompile an script.bin blob back into `.fex` format used by allwinner's SDK to configure the boards. fex2bin: compatiblity shortcut to call `fexc` to compile a `.fex` file into the binary form used by the sun4i kernel. fel: script interface for talking to the FEL USB handler built in to th CPU. You activate FEL mode by pushing the usboot/recovery button at poweron. bootinfo: Dump information from Allwinner boot files (boot0/boot1) --type=sd include SD boot info --type=nand include NAND boot info (not implemented) phoenix_info: gives information about a phoenix image created by the phoenixcard utility and optionally extracts the embedded boot code & firmware file from their hidden partitions. pio: Manipulate PIO register dumps I will maintain this ebuild. Regards, Alexey
Why not version 1.2?
Comment on attachment 390550 [details] sunxi-tools 0.1 ebuild [Missing header] >EAPI=5 > >inherit toolchain-funcs > >SLOT="0" >SRC_URI="http://openautomotive.semlanik.org/misc/sunxi-tools-0.1.tar.bz2" That doesn't look like what you get from the HOMEPAGE at all. Also, don't hard-code the package name and version: sunxi-tools-0.1 => ${P} (short for ${PN}-${PV}) >KEYWORDS="~amd64 ~x86" > >IUSE="debug" > >DEPEND="dev-libs/libusb" >RDEPEND="${RDEPEND}" > >RESTRICT="test strip" >DESCRIPTION="Tools to help hacking Allwinner AX devices" >HOMEPAGE="https://github.com/linux-sunxi/sunxi-tools" >LICENCE="GPL-2+" > >check_debug(){ > if use debug; then > echo "DEBUG=1" > fi $(usex debug 'DEBUG=1' '') (see below) >src_configure(){ > #Do nothing > return What changes if you run the default src_configure()? If nothing, then why define src_configure() at all? >src_compile(){ > emake tools CHOST="" CC="$(tc-getCC)" CFLAGS="${CFLAGS}" $(check_debug) || die $(check_debug) => $(usex debug 'DEBUG=1' '') emake does die() on its own. >} > >src_install(){ > emake tools-install PREFIX=${D}/usr || die emake does die() on its own. >pkg_postinst(){ > einfo "Installed applications: > fexc: > '.fex' file compiler/decompiler > Usage: ./fexc [-vq] [-I <infmt>] [-O <outfmt>] [<input> [<output>]] > infmt: fex, bin (default:fex) > outfmt: fex, bin (default:bin) > bin2fex: > compatibility shortcut to call 'fexc' to decompile an script.bin > blob back into '.fex' format used by allwinner's SDK to configure > the boards. > fex2bin: > compatiblity shortcut to call 'fexc' to compile a '.fex' file into > the binary form used by the sun4i kernel. > fel: > script interface for talking to the FEL USB handler built in to > th CPU. You activate FEL mode by pushing the usboot/recovery > button at poweron. > nand-part: > Tool for manipulating Allwinner NAND partition tables > pio: > Manipulate PIO register dumps > bootinfo: > Dump information from Allwinner boot files (boot0/boot1) > --type=sd include SD boot info > --type=nand include NAND boot info (not implemented) > phoenix_info: > gives information about a phoenix image created by the > phoenixcard utility and optionally extracts the embedded boot > code & firmware file from their hidden partitions. That looks like it should go into a README.
(In reply to Jeroen Roovers from comment #1) > Why not version 1.2? Hope it was sarcasm J. Anyway, there is no versioning for sunxi-tools at all. Probably it's better to use 9999 and git source instead. Anyway I would like to make it 0.1 if you don't mind. Regards, Alexey.
(In reply to Alexey Edelev from comment #3) > (In reply to Jeroen Roovers from comment #1) > > Why not version 1.2? > > Hope it was sarcasm J. Anyway, there is no versioning for sunxi-tools at > all. Probably it's better to use 9999 and git source instead. Anyway I would > like to make it 0.1 if you don't mind. > > Regards, > Alexey. OOPS, I found, that maintainers have versioning. Sorry will rework with all comments. Thank you! Regards, Alexey.