commit a38ffd09f4006fdb60134a3c0537958db1d9d024 Author: Bo Lorentsen Date: Fri Nov 15 22:22:19 2024 +0100 a simple beginning diff --git a/.config.yaml b/.config.yaml new file mode 100644 index 0000000..ec1fc8a --- /dev/null +++ b/.config.yaml @@ -0,0 +1,41 @@ +header: + version: 14 + +# The machine as it is written into the `local.conf` of bitbake. +machine: raspberrypi4-64 + +# The distro name as it is written into the `local.conf` of bitbake. +distro: poky + +# The main target +target: rpilinux-image + +repos: + meta-raspberrypi: + url: http://git.yoctoproject.org/git/meta-raspberrypi + path: extern/ + tag: scarthgap + poky: + url: http://git.yoctoproject.org/git/poky + tag: scarthgap + path: extern/ + layers: + meta: + meta-poky: + meta-yocto-bsp: + meta-openembedded: + url: git://git.openembedded.org/meta-openembedded + tag: scarthgap + path: extern/ + layers: + meta-oe: + meta-multimedia: + meta-networking: + meta-python: + local: + path: meta-rpilinux + +local_conf_header: + ipk: | + PACKAGE_CLASSES ?= "package_ipk" + PATCHRESOLVE = "noop" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7411065 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +build +extern + + diff --git a/README.md b/README.md new file mode 100644 index 0000000..da932a8 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# Yocto build + +Simply install kas using `pip install kas`, and run + +```sh +kas build +``` \ No newline at end of file diff --git a/meta-rpilinux/conf/layer.conf b/meta-rpilinux/conf/layer.conf new file mode 100644 index 0000000..8e063ea --- /dev/null +++ b/meta-rpilinux/conf/layer.conf @@ -0,0 +1,12 @@ +# We have a conf and classes directory, add to BBPATH +BBPATH .= ":${LAYERDIR}" + +# We have recipes-* directories, add to BBFILES +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend" + +BBFILE_COLLECTIONS += "rpilinux" +BBFILE_PATTERN_rpilinux = "^${LAYERDIR}/" +BBFILE_PRIORITY_rpilinux = "6" + +LAYERSERIES_COMPAT_rpilinux="scarthgap" diff --git a/meta-rpilinux/recipes-rpilinux/images/rpilinux-image.bb b/meta-rpilinux/recipes-rpilinux/images/rpilinux-image.bb new file mode 100644 index 0000000..229bf5d --- /dev/null +++ b/meta-rpilinux/recipes-rpilinux/images/rpilinux-image.bb @@ -0,0 +1,4 @@ +require recipes-core/images/core-image-minimal.bb + +IMAGE_INSTALL += "libstdc++ mtd-utils opkg" +IMAGE_INSTALL += "openssh openssl openssh-sftp-server"