Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12622 Discussions

Add python-numpy to Yocto build

Honored Contributor II

I am using an Altera Cyclone V SoC dev board playing with OpenCL for the FPGA. I running my Yocto builds with CentOS 6.3 inside VirtualBox. 


I have followed the instructions on rocketboards ( and succesfully build an image that boots and runs on the board no problem; but now I want to modify the build. I would like to have python-numpy and OpenCL on the board but I am having trouble figuring out the correct packages and recipes and where to put the files.  


Any help getting numpy and OpenCL on my board is greatly appreciated :) 


p.s. I also noted that the serial console from prebuilt SD card image ran at 115200 baud and the image I built ran at 57600... not sure where to put the SERIAL_CONSOLES variable to change that either.
0 Kudos
1 Reply
Honored Contributor II



I have numpy running on my Cyclone V board, I followed this tutorial ( uses a newer version of Yocto. Just add the following to your conf/local.conf file (NOTE: the leading space is necessary, add a space as a delimiter between additional packages). IMAGE_INSTALL_append = " python-numpy" Also note that the python modules are not split up the same way as the standard python libraries, if you are looking for specific modules check your tmp/work/<arch>/python/<version>/packages-split/ directory which shows how everything is split up. Simply include the module package you want the same way as I did with numpy above.  


Still working on getting OpenCL also running on the board.
0 Kudos