wiki:CustomProg

Version 1 (modified by bouyer, 14 years ago) (diff)

--

These are the steps needed to cross-compile the mjpeg benchmark and add it to the NetBSD/tsarmips disk image.

  • create a subdirectory of benchs (in the src top-directory) holding your program sources (mjpeg_het in this example)
  • in this subdirectory, create a BSD-style Makefile which will build your sources. You can use [svn:src/benchs/mjpeg_het/Makefile] as a template.
    • PROG is the name of the binary created
    • SRCS is the list of sources for PROG
    • set LDADD and DPADD if you need extra libraries. More informations about BSD Makefiles can be found in [svn:src/share/mk/bsd.README]
  • add the name of your executable to distrib/sets/lists/base/mi (it will be created in /benchs)
  • run ./tsar-build.sh release (or ./tsar-build.sh -u -j8 release if you want to speed things up) to rebuild the world.