Questions tagged [recipe]

In general terms, a recipe is a set of instructions that describe how to prepare or make something, with respect to computing it's typically used to describe a set of rules used to manage building code.

The term "recipe" refers to a set of instruction, usually in a standalone text based file, which are interpreted by an application that will use them to execute a build.

Because a "recipe" is a very general term, it should be paired with another tag to help identify what system it is in reference to.

Examples of systems which use recipes:

GNU Makefiles use the term recipe with respect to writing rules for make to interpret.

Bitbake uses recipes files (typically with a .bb extension) which tell bitbake how to fetch code, build dependencies, make configurations, and do installations.

436 questions
70
votes
2 answers

Should I use include_recipe or add the recipe to run_list?

Trying to figure out the best approach for a large project. When is it appropriate to add recipes within a recipe by using include_recipe as opposed to adding the recipe to the run_list? Is there a good rule of thumb?
Micah
  • 111,873
  • 86
  • 233
  • 325
23
votes
4 answers

How do I write a yocto/bitbake recipe to copy a directory to the target root file system

I have a directory of 'binary' (i.e. not to be compiled) files and just want them to be installed onto my target root file system. I have looked at several articles, none of which seem to work for me. The desired functionality of this recipe…
Ben Turner
  • 725
  • 1
  • 6
  • 23
21
votes
2 answers

Using while in list comprehension or generator expressions

I can use if and for in list comprehensions/generator expressions as list(i for i in range(100) if i*i < 30) I know this is not the most efficient but bear with me as the condition could be much more complicated and this is just an example.…
highBandWidth
  • 16,751
  • 20
  • 84
  • 131
18
votes
4 answers

What are your best practices for backbone.js projects?

Although I'm following backbone.js for some months and worked through a plethora of tutorials, I'm still not confident enough in backbone (or my skills regarding it) to use it in a larger project. My experience is that the backbone.js tutorials vary…
fbuchinger
  • 4,494
  • 2
  • 30
  • 31
17
votes
1 answer

How to give options for "configure" using yocto recipes?

I want write a recipe in yocto to build my custom component. In that i would like to enable some flags according to machine. eg: if machine is x86 my configure command should be like : ./configure --enable-x86 if it is x64 ./configure…
A R
  • 2,697
  • 3
  • 21
  • 38
16
votes
1 answer

How to configure yocto to use the latest git commit?

I am a very lazy person. While working on a HW/SW project the software changes permanently. In this development stage, changing the commit/reversion-tags in the recipes is very nasty. I want Yocto to fetch the latest git commit. Is this possible/How…
Stefan Jaritz
  • 1,999
  • 7
  • 36
  • 60
16
votes
1 answer

How to get a linux command output to chef attribute

I want to get a command output into a chef attribute. Can some one help me how to set that in execute resource or bash resource. ruby_block "something" do block do #tricky way to load this Chef::Mixin::ShellOut utilities …
SASI
  • 475
  • 2
  • 7
  • 16
12
votes
1 answer

How can I use my sql knowledge with Cloudant/CouchDB?

Some developers who have a good knowledge of querying SQL databases struggle to implement the equivalent query patterns in Cloudant/CouchDB. How can these developers translate their SQL knowledge to Cloudant/CouchDB?
Chris Snow
  • 23,813
  • 35
  • 144
  • 309
11
votes
3 answers

How to use a for loop in make recipe

I would like to use a loop to find some files and rename them: for i in `find $@ -name *_cu.*`;do mv $i "$(echo $i|sed s/_cu//)" done This works in the shell. But how can I do this in a makefile recipe?
Steve Wang
  • 335
  • 1
  • 3
  • 11
10
votes
3 answers

Microformat's hRecipe vs. Schema's Recipe

I would like to know what are the main differences between Microformat's hRecipe and Schema.org's Recipe and how search engines treat each one. Besides the differences in code and the fact that the former is open while the latter is propietary, how…
Naoise Golden
  • 8,793
  • 4
  • 49
  • 65
10
votes
1 answer

Recipe to deploy the .ipk for other developers

I have a recipe (lets say my_package_1.0.bb) that builds libraries and populates sysroot with libraries and headers I need for development. I also see that .ipk for my package is created under build/tmp/deploy/ipk/. My requirement is, I want to…
sob
  • 982
  • 11
  • 31
9
votes
2 answers

puppet recipe installing tarball

I would like to install apache maven by using puppet recipe, but I can not find anywhere an example on how to do this. Can someone help with this? Apache maven is packed as tar.gz file. I am using a stand-alone setup for puppet.
aki
  • 1,731
  • 2
  • 19
  • 24
8
votes
3 answers

Importing Mysql database using Ruby/Chef Recipe for Vagrant

I am writing a chef script to automate setting dev environments. I can get a database created and grant privileges but I am trying to find out a way to import a mysql dump file into the database that has just been created. My code for granting the…
Craig Ward
  • 2,425
  • 5
  • 33
  • 51
8
votes
4 answers

Bitbake: How to list all recipe and append files used in an image?

I'm using OpenEmbedded-Core and have created a custom layer with priority 6. Months of development have gone by, and now I want to increase my layer's priority to 8 because an append file from another layer with priority 7 is interfering with an…
user5071535
  • 1,312
  • 8
  • 25
  • 42
7
votes
2 answers

How to enable/disable a particular bbappend for a specific MACHINE in Yocto

I'm trying to understand the mechanism Yocto provides to enable/disable a particular bbappend for a specific MACHINE. I read this link (Modifying Variables to Support a Different…
aicastell
  • 2,182
  • 2
  • 21
  • 33
1
2 3
29 30