X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=recipes%2Fti%2Fti-dspbios.inc;h=bd7bcc48ef958fb8f491b26b9fad68b762e548fc;hb=HEAD;hp=9e7921655467745e029e65f30497014aa178b5bb;hpb=43653cf44fc541bd55cb094392444a7faa7bb3be;p=openembedded.git diff --git a/recipes/ti/ti-dspbios.inc b/recipes/ti/ti-dspbios.inc index 9e79216554..bd7bcc48ef 100644 --- a/recipes/ti/ti-dspbios.inc +++ b/recipes/ti/ti-dspbios.inc @@ -1,40 +1,23 @@ -DESCRIPTION = "TI DSP/BIOS for Davinci and OMAP processor" +DESCRIPTION = "TI DSP/BIOS v5 Kernel" +HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/dspbios" +SECTION = "devel" +LICENSE = "TI" -# This file defines function used for extracting .bin file +require ti-paths.inc +require ti-staging.inc +require ti-eula-unpack.inc -python do_unpack () { - bb.build.exec_func('base_do_unpack', d) - bb.build.exec_func('ti_bin_do_unpack', d) -} - -python ti_bin_do_unpack() { - - import os - - localdata = bb.data.createCopy(d) - bb.data.update_data(localdata) - - binfile = bb.data.getVar('BINFILE', localdata) +PR = "r1" - # Change to the working directory - save_cwd = os.getcwd() - workdir = bb.data.getVar('WORKDIR', localdata) - workdir = bb.data.expand(workdir, localdata) - os.chdir(workdir) +S = "${WORKDIR}/bios_${PV}" - # Make the InstallJammer binary executable so we can run it - os.chmod(binfile, 0755) +SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/dspbios/${PV}/exports/bios_setuplinux_${PV}.bin;name=biosbin" - # Run the InstallJammer binary and accept the EULA - filename = "HOME=%s ./%s" % (workdir, binfile) - f = os.popen(filename,'w') - print >>f, "Y\n" - print >>f, " qY\n" - print >>f, "%s\n" % workdir - print >>f, "Y\n" - f.close() +BINFILE="bios_setuplinux_${PV}.bin" +TI_BIN_UNPK_CMDS="Y: qY:workdir:Y" - # Return to the previous directory - os.chdir(save_cwd) +do_install() { + install -d ${D}${BIOS_INSTALL_DIR_RECIPE} + cp -pPrf ${S}/* ${D}${BIOS_INSTALL_DIR_RECIPE} }