Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12453 Discussions

Add arrow's opencl data in rootfs

Altera_Forum
Honored Contributor II
841 Views

Hi, Sir<br> 

I want to add arrow's opencl data in rootfs and build image.<br> 

(arrpw's opencl data is arrow-1.0.tar.gz.)<br> 

But it's still fail.<br> 

Here is my .bb file. Please teach me how to do it.<br> 

------------------------------------------<br> 

SUMMARY = "Arrow example"<br> 

DESCRIPTION = "Arrow example"<br> 

SECTION = "example"<br> 

LICENSE = "GPLv2"<br> 

LIC_FILES_CHKSUM = "file://init_opencl.sh;md5=d2516439455d80030289a8c11bf79c5a"<br> 

<br> 

PR = "r0"<br> 

<br> 

INHIBIT_PACKAGE_STRIP = "1"<br> 

<br> 

def compress_pkg(d):<br> 

if "compress_doc" in (d.getVar("INHERIT", True) or "").split():<br> 

compress = d.getVar("DOC_COMPRESS", True)<br> 

if compress == "gz":<br> 

return "gzip"<br> 

elif compress == "bz2":<br> 

return "bzip2"<br> 

elif compress == "xz":<br> 

return "xz"<br> 

return ""<br> 

<br> 

RDEPENDS_${PN} += "${@compress_pkg(d)}"<br> 

<br> 

SRC_URI = "file://${BP}.tar.gz"<br> 

<br> 

SRC_URI[md5sum] = "025e00e90a92ecb86349ca8f4fd39551"<br> 

<br> 

do_install_append(){<br> 

&nbsp;&nbsp;&nbsp;&nbsp;mkdir -p ${D}/home/root<br> 

&nbsp;&nbsp;&nbsp;&nbsp;cp ${WORKDIR}/${BP}/init_opencl.sh ${D}/home/root<br> 

&nbsp;&nbsp;&nbsp;&nbsp;mkdir -p ${D}/home/root/arrow_aocl<br> 

&nbsp;&nbsp;&nbsp;&nbsp;cp -r ${WORKDIR}/${BP}/arrow_aocl/* ${D}/home/root/arrow_aocl<br> 

&nbsp;&nbsp;&nbsp;&nbsp;mkdir -p ${D}/home/root/opencl_arm32_rte<br> 

&nbsp;&nbsp;&nbsp;&nbsp;cp -r ${WORKDIR}/${BP}/opencl_arm32_rte/* ${D}/home/root/opencl_arm32_rte<br> 

}<br> 

<br> 

FILES_${PN} += "${D}/home/root/init_opencl.sh ${D}/home/root/arrow_aocl ${D}/home/root/opencl_arm32_rte"<br> 

--------------------------------------------------<br> 

Thank you.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
117 Views

You really need some better information here before we can help 

 

1) What errors do you get? does the error occur on build, or another time? 

2) You show a LIC_FIL of the init script, and also have your SRC_URI near the middle of the recipe. That's a bit odd. You should use a different LICENSE type (COMMERCIAL, for example) 

3) Do you get errors?
Reply