12

I want to know about the oe_runmake in yocto.

Sebastián Palma
  • 32,692
  • 6
  • 40
  • 59
yoctotutor.com
  • 5,145
  • 4
  • 26
  • 36
  • oe_runmake() is a simple function that calls `make` for the recipe in question. If you want a better answer, you probably need to ask a more specific question. – Jussi Kukkonen Jun 14 '17 at 07:07

1 Answers1

18

oe_runmake function is used to run make.

oe_runmake

  • passes EXTRA_OEMAKE settings to make
  • displays the make command
  • checks for errors generated via the call.

In OE environment you should not call make directly rather use oe_runmake when you need to run make.

oe_runmake is one of many helper functions defined by the base class. For a list of helper functions you can refer OEManual

sob
  • 982
  • 11
  • 31
  • can i pass any extra variable to that oe_run make – yoctotutor.com Jun 16 '17 at 04:45
  • @VadalasettiSivanageswararao, yes you can. You can do `EXTRA_OEMAKE_append = " ''"`. E.g., please see this [iproute2](http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-connectivity/iproute2/iproute2_4.7.0.bb?h=morty#n13) recipe in yocto meta layer. – sob Jun 16 '17 at 05:40
  • Thanks now I undestood something on EXTRA_OEMAKE. – yoctotutor.com Jun 29 '17 at 04:49
  • Does that mean that by calling oe_runmake we can pass some other global flags other than those are defined in the work/package folder? – Vishnu N K Feb 27 '18 at 10:41
  • 2
    @VishnuNK Yes. For example, refer poky/meta/recipes-extended/lsof/lsof_4.89.bb oe_runmake 'CC=${CC}' 'CFGL=${LDFLAGS} -L./lib -llsof' 'DEBUG=' 'INCL=${CFLAGS}' – sob Mar 06 '18 at 16:16