I've managed to workaround the missing private babydsp sources to
successfully build the radio firmware.

Copy /usr/lib/alsa-lib/libasound_module_pcm_babydsp.so from a radio to
your poky build system and rename it using scp.


Code:
--------------------
    $ scp -p root@radio:/usr/lib/alsa-lib/libasound_module_pcm_babydsp.so 
libasound_module_pcm_babydsp.so.0.0.0
  
  libasound_module_pcm_babydsp.so      100%   33KB  33.5KB/s   00:00
--------------------


Create a tar file which contains the renamed babydsp module in the
correct folder structure.  I included the firmware version of the radio
where the shared library came from in the filename.


Code:
--------------------
    $ tar -tzvf babydsp-7.7.3r16676.tar.gz
  
  drwxr-xr-x ralphy/ralphy     0 2020-02-05 16:31 squeezeos_dsp/
  drwxr-xr-x ralphy/ralphy     0 2020-02-05 16:10 squeezeos_dsp/.libs/
  -rw-r--r-- ralphy/ralphy 34271 1969-12-31 19:00 
squeezeos_dsp/.libs/libasound_module_pcm_babydsp.so.0.0.0
--------------------


Create an md5 checksum file


Code:
--------------------
    md5sum babydsp-7.7.3r16676.tar.gz > babydsp-7.7.3r16676.tar.gz.md5
--------------------


Put both files in the poky/sources folder

Update squeezeos-dsp-src_svn.bb.  We only want bitbake to perform the
install step.  File attached.

I used a url to a local apache server running on my build VM in the
SRC_URI to host the files, but bitbake won't try to download them as
long as the tar and md5 files are already in poky/sources.



Code:
--------------------
    DESCRIPTION = "SqueezeOS DSP - Private code"
  LICENSE = "Confidential"
  
  PV = "${DISTRO_VERSION}+svnr${SRCREV}"
  PR = "r3"
  
  PROVIDES = "squeezeos-dsp"
  
  DEPENDS += "alsa-lib"
  
  # no thumb here thanks!
  ARM_INSTRUCTION_SET = "arm"
  
  # SRC_URI="${SQUEEZEOS_PRIVATE_SVN};module=squeezeos_dsp"
  SRC_URI="http://poky/babydsp-7.7.3r16676.tar.gz;module=squeezeos_dsp";
  
  S = "${WORKDIR}/squeezeos_dsp"
  
  #inherit autotools
  
  #do_configure_prepend() {
  #     cd ${S}/openmax
  #     tar -xzf openmax-arm-98665.tgz
  #     cd ${S}
  #}
  
  do_install() {
        mkdir -p ${D}/${libdir}/alsa-lib
        pwd
        install -m 0644 .libs/libasound_module_pcm_babydsp.so.0.0.0 
${D}/${libdir}/alsa-lib/libasound_module_pcm_babydsp.so
  }
  
  PACKAGES = "squeezeos-dsp squeezeos-dsp-dbg"
  
  FILES_squeezeos-dsp = "${libdir}/alsa-lib"
  FILES_squeezeos-dsp-dbg = "${libdir}/alsa-lib/.debug"
--------------------



Set MACHINE ?= "baby" in poky/build/conf/local.conf

Setup your bitbake environment variables and run bitbake.


+-------------------------------------------------------------------+
|Filename: squeezeos-dsp-src_svn.bb.txt                             |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=29299|
+-------------------------------------------------------------------+


Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.
------------------------------------------------------------------------
ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=98835

_______________________________________________
jive mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive

Reply via email to