Forum Discussion
Altera_Forum
Honored Contributor
10 years agoAdd arrow's opencl data in rootfs
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> mkdir -p ${D}/home/root<br> cp ${WORKDIR}/${BP}/init_opencl.sh ${D}/home/root<br> mkdir -p ${D}/home/root/arrow_aocl<br> cp -r ${WORKDIR}/${BP}/arrow_aocl/* ${D}/home/root/arrow_aocl<br> mkdir -p ${D}/home/root/opencl_arm32_rte<br> 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.1 Reply
- Altera_Forum
Honored Contributor
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?