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
7
votes
2 answers

How to install recursively my directories and files in BitBake recipe

I would like to install/copy all my directories and files recursively from working directory to my target package rootfs on yocto build system. I tried the solution provided by Tobias Bystricky in How to install directory structure recursively in…
vijayaragavalu
  • 101
  • 1
  • 6
7
votes
6 answers

How do I escape a "$" in bitbake/yocto?

One of my recipes in Yocto need to create a file containing a very specific line, something like: ${libdir}/something To do this, I have the recipe task: do_install() { echo '${libdir}/something' >/path/to/my/file } Keeping in mind that I want…
paxdiablo
  • 854,327
  • 234
  • 1,573
  • 1,953
7
votes
3 answers

Yocto bitbake script not displaying echo statement

I currently have a bitbake .bb script that looks like this DESCRIPTION = "Hello World" SECTION = "TESTING" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" PR = "r0" SRC_URI = "file://fileA…
James Franco
  • 4,516
  • 10
  • 38
  • 80
7
votes
1 answer

How can I create machine specific recipes?

I want to know if there is an opportunity to create machine specific recipes just by file name in order that I have a similar layer structure like this: \-> recipes-example \-> example \-> example_1.0.bb_machine1 \->…
h0ch5tr4355
  • 2,092
  • 4
  • 28
  • 51
7
votes
1 answer

Git checkout in Chef recipe not working

I used the following chef stanza to try and checkout a github repository: git "/home/ubuntu" do repository "git://github.com/kmerenkov/brukva.git" revision "master" action :checkout user "ubuntu" end The chef run has no…
jhn gmsith
  • 73
  • 1
  • 4
7
votes
3 answers

How to link chef with capistrano for deployment

I have configured chef environment and i am able to deploy my application using capistrano . Now i want to my chef to handle capistrano to deploy my apps . How can it be done ?
mbdvg
  • 2,614
  • 3
  • 21
  • 39
7
votes
2 answers

chef logging of wget

I have a chef recipe that looks something like: Chef::Log.info('step1') # do stuff Chef::Log.info('step2') bash "do_wget" do code <<-EOF wget somefile EOF end Chef::Log.info('step3') # do stuff The wget takes a while but the logging ends up…
Jeff Storey
  • 56,312
  • 72
  • 233
  • 406
6
votes
1 answer

Multiply regex matches and replace them in string

I'm trying to multiply the amounts in a recipe using regex replace. Here is the example HTML code
  • 2 bananas, sliced
  • 1 cup frozen strawberries
  • 8 oz. low fat vanilla…
Riccardo Bartoli
  • 569
  • 1
  • 4
  • 17
6
votes
2 answers

Yocto recipe python whl package

I am writing a custom yocto recipe that should install a python package from a .whl file. I tried it using a recipe that contains: inherit pypi…
Mathias
  • 61
  • 1
  • 3
6
votes
1 answer

GNU make empty recipe vs. no recipe

Looking at the GNU make manual, what exactly is the difference between an empty recipe and no recipe (for example see one instance in Rules without Recipes or Prerequisites)? More importantly, when should one use/avoid each of these two recipes? In…
green diod
  • 1,399
  • 3
  • 14
  • 29
6
votes
2 answers

Yocto: bbappend file which remove System V init script

I'm currently installing dnsmasq with Yocto, but I would like to remove the automatic start. So I create a .bbappend file and I tried something like : pkg_postinst_${PN} () { update-rc.d dnsmasq -f remove } But it did not work, I don't know how…
PierreOlivier
  • 1,387
  • 9
  • 23
6
votes
2 answers

Chef - execute vs bash resource

I used both the execute resource or the bash resource. Both achieve the same result: bash 'Execute my script' do user 'root' cwd '/mydir' code <<-EOH ./myscript.sh EOH end execute 'Execute my script' do user 'root' cwd …
JahMyst
  • 1,616
  • 3
  • 20
  • 39
6
votes
3 answers

Documentation on writing buildout recipes

I am trying to find tutorials on how to write buildout recipes. I haven't found any, except the one on buildout site. But it is very rudimentary. Is there a good tutorial for writing buildout recipes?
roopesh
  • 1,636
  • 2
  • 13
  • 16
5
votes
1 answer

How can I set up a dependency to a Ruby library which doesn't exist at the time Chef loads recipes?

Scenario: Recipe1: downloads archives, extracts them. Makes available a CLI which also defines a Ruby library. Recipe2: leverages Ruby API from the aforementioned library. In recipe1/recipes/default.rb: .. do work node[:recipe1][:filePath] = ".."…
elred
  • 51
  • 2
5
votes
0 answers

why copy-from-recipe doesn't add any file to my base project?

I run a local flex server in my local pc (windows) from : https://github.com/moay/server-for-symfony-flex and I made a recipe with config/routes/api-form-bundle.yaml and my manifest : { "bundles": { "XXX\\ApiFormBundle\\XXXApiFormBundle":…
Mahsa.mnz
  • 69
  • 5
1
2
3
29 30