1# Copyright (C) 2019, Fuzhou Rockchip Electronics Co., Ltd 2# Released under the MIT license (see COPYING.MIT for the terms) 3 4inherit local-git deploy native 5 6DESCRIPTION = "Rockchip binary tools" 7 8LICENSE = "LICENSE.rockchip" 9LIC_FILES_CHKSUM = "file://${RKBASE}/licenses/LICENSE.rockchip;md5=d63890e209bf038f44e708bbb13e4ed9" 10SRC_URI = " \ 11 git://github.com/JeffyCN/mirrors.git;protocol=https;nobranch=1;branch=rkbin-2021_10_13;name=rkbin \ 12 git://github.com/JeffyCN/mirrors.git;protocol=https;branch=tools;name=tools;destsuffix=git/extra \ 13" 14 15SRCREV_rkbin = "3712dbc00e806ec1ed240b4a1a04df210dd3b550" 16SRCREV_tools = "1a32bc776af52494144fcef6641a73850cee628a" 17SRCREV_FORMAT ?= "rkbin_tools" 18 19S = "${WORKDIR}/git" 20 21INSANE_SKIP:${PN} = "already-stripped" 22STRIP = "echo" 23 24# The pre-built tools have different link loader, don't change them. 25UNINATIVE_LOADER := "" 26 27do_install () { 28 install -d ${D}/${bindir} 29 30 cd ${S}/tools 31 32 install -m 0755 boot_merger ${D}/${bindir} 33 install -m 0755 trust_merger ${D}/${bindir} 34 install -m 0755 firmwareMerger ${D}/${bindir} 35 36 install -m 0755 kernelimage ${D}/${bindir} 37 install -m 0755 loaderimage ${D}/${bindir} 38 39 install -m 0755 mkkrnlimg ${D}/${bindir} 40 install -m 0755 resource_tool ${D}/${bindir} 41 42 install -m 0755 upgrade_tool ${D}/${bindir} 43 44 cd ${S}/extra/linux/Linux_Pack_Firmware/rockdev 45 46 install -m 0755 afptool ${D}/${bindir} 47 install -m 0755 rkImageMaker ${D}/${bindir} 48} 49