commit 8e0e9b842c900178be5fd3cbfebfe913aef8374f Author: Matthieu Jolimaitre Date: Wed Sep 11 14:33:17 2024 +0200 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7f9a8c2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/layers +/builds +/downloads +/sstate-cache +/.cookerconfig \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..36756ca --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,10 @@ +{ + "json.schemas": [ + { + "fileMatch": [ + "/menu.json" + ], + "url": "https://raw.githubusercontent.com/cpb-/yocto-cooker/master/cooker/cooker-menu-schema.json" + } + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..d8fb308 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# yocto scarthgap base project + +This is an empty YOCTO 5.0 scarthgap project targeting generic hardware. diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..5717ab8 --- /dev/null +++ b/build.sh @@ -0,0 +1,9 @@ +#!/bin/bash +set -e +cd "$(dirname "$(realpath "$0")")" + + +cooker init --force menu.json +cooker generate +cooker update +cooker build --keepgoing diff --git a/menu.json b/menu.json new file mode 100644 index 0000000..ebd4751 --- /dev/null +++ b/menu.json @@ -0,0 +1,38 @@ +{ + "sources" : [ + { "url": "git://git.yoctoproject.org/poky", "branch": "scarthgap", "rev": "703740d19f" }, + { "url": "git://git.openembedded.org/meta-openembedded", "branch": "scarthgap", "rev": "1235dd4ed" } + ], + + "layers" : [ + "poky/meta", + "poky/meta-poky", + "poky/meta-yocto-bsp", + "meta-openembedded/meta-oe" + ], + + "builds" : { + "qemu": { + "target" : "core-image-base", + "local.conf": [ + "# distro", + "DISTRO = 'poky' ", + "PACKAGE_CLASSES = 'package_deb' ", + + "# softwares", + "IMAGE_FEATURES += ' empty-root-password' ", + "EXTRA_IMAGE_FEATURES = ' debug-tweaks splash package-management' ", + "IMAGE_INSTALL += ' nano' ", + + "# hardware", + "MACHINE = 'qemux86-64' ", + "ENABLE_UART = '1' ", + + "# optimizations", + "CMDLINE += ' quiet' ", + "INHERIT += ' rm_work'", + "INHERIT += ' ccache'" + ] + } + } +}