I’m trying to follow the yocto build scripts for the kernel and filing system for the Arria 10 SOC reference board and get the following error
| /home/drm/yocto/angstrom-socfpga/build/tmp-angstrom_v2014_12-glibc/work/arria10-angstrom-linux-gnueabi/altera-gsrd-pio-interrupt/0.1-r0/git/pio-interrupt/gpio_interrupt.c:61:40: error: ‘IRQF_DISABLED’ undeclared (first use in this function)
| r = request_irq(irq_number, gpio_isr, IRQF_DISABLED, 0, 0);
| ^
| /home/drm/yocto/angstrom-socfpga/build/tmp-angstrom_v2014_12-glibc/work/arria10-angstrom-linux-gnueabi/altera-gsrd-pio-interrupt/0.1-r0/git/pio-interrupt/gpio_interrupt.c:61:40: note: each undeclared identifier is reported only once for each function it appears in
The symbol IRQF_DISABLED is not defined. It appears this symbol was deprecated in 2013.
I have used a number of different systems available to me with the latest being Ubunto 14.04 LTS.
I ran into the same thing too. I added the following line to conf/local.conf
PACKAGE_EXCLUDE += "altera-gsrd-pio-interrupt "
I didn’t test this, but probably the better way would be to use
IMAGE_INSTALL_remove = " altera-gsrd-pio-interrupt"
Certainly not an ideal fix, but a temporary work around. I wonder if the right way to do this is adding a bitbake append or similar to grab the the patch.
John,
forgive my ignorance but can you elaborate on your instructions? Do you mean to edit bblayers.conf to include the info above or does “updating the BB” mean something else? Thanks in advance
But this resulted in the same error that David found. I then suggested that he completely remove the recipe by adding the following to the file conf/local.conf
IMAGE_INSTALL_remove = " altera-gsrd-pio-interrupt"
If you are trying to just make it work, then this might be all you need.
Until the patch is accepted, a better solution is to create a bitbake append of package including a patch of the commit in your own layer or even inside the meta-altera-refdes layer.