Skip to content

Add a menu template command #136

@adri1mart1

Description

@adri1mart1

Hello there :)

I am starting a brand new project using cooker. Initial repo README suggest to start with cooker cook MENU or cooker init MENU.
I didn't found an easy way to get a menu template. I think at the moment, we need to pick up a random recipe in the sample dir and remove / add what we need ?

2 suggestions to ease starting:

  • A template file commited to the repository.
  • A command such as cooker menutemplate that output to stdout the template

The template I'm expected to get would be:

{
	"sources" : [
		{ "url": "git://git.yoctoproject.org/poky", "branch": "xxx", "rev": "xxx" },
                { "url": "git://git.openembedded.org/meta-openembedded", "branch": "xxx", "rev": "xxx" }
	],

	"layers" : [
		"poky/meta",
		"poky/meta-poky",
		"poky/meta-yocto-bsp",
		"meta-openembedded/meta-oe"
	],

	"builds" : {
		"xxx": {
			"target" : "xxxx",

			"layers" : [],

			"local.conf": [
				"MACHINE = 'xxx' "
			]
		}
	}
}

This template should have basically the minimum required for 90% of menus like the 3 json main nodes (sources / layers / builds), Some common basic layers (poky and openembedded), and a single build target named xxx.

What is your point of view ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions