aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-06-11 20:00:52 +1200
committerArslaan Pathan <[email protected]>2026-06-11 20:00:52 +1200
commit76c0053d4db24a32733f2cef8ce37bba8e8e2da6 (patch)
tree2b571043072d2ee246190fa6c04dab59d72ac949
parent673f2563e48a4e1e37af6985d4d18f56bff741ea (diff)
downloadyerbalinux-76c0053d4db24a32733f2cef8ce37bba8e8e2da6.tar.xz
yerbalinux-76c0053d4db24a32733f2cef8ce37bba8e8e2da6.zip
Yocto stuff
-rw-r--r--.gitignore5
-rwxr-xr-xinit-yocto-directories.sh13
-rw-r--r--kas.yml23
-rw-r--r--meta-yerba/conf/layer.conf12
4 files changed, 50 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 6f3692f..1b0a2b7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,3 @@
-external
build
-result
-result-man
+meta-yerba/conf/site.conf
+sources
diff --git a/init-yocto-directories.sh b/init-yocto-directories.sh
new file mode 100755
index 0000000..92dd6b2
--- /dev/null
+++ b/init-yocto-directories.sh
@@ -0,0 +1,13 @@
+# Info: this is just a random SH script to create /opt/yocto directories if they don't exist
+# This is to make cache directories for yocto builds
+# This is not needed for the kas build system, but it is highly recommended to have these directories created for yocto builds
+
+#!/bin/sh
+YOCTO_DIR=/opt/yocto
+
+for dir in sstate-cache downloads builds tmp; do
+ mkdir -p "$YOCTO_DIR/$dir"
+ chown -R "$USER:$USER" "$YOCTO_DIR/$dir"
+ chmod -R u+rwx "$YOCTO_DIR/$dir"
+done
+echo "Yocto directories created in $YOCTO_DIR"
diff --git a/kas.yml b/kas.yml
new file mode 100644
index 0000000..7bff4b5
--- /dev/null
+++ b/kas.yml
@@ -0,0 +1,23 @@
+header:
+ version: 11
+
+machine: qemux86-64
+distro: yerba
+
+repos:
+ bitbake:
+ url: https://git.openembedded.org/bitbake
+ branch: "2.12"
+ path: sources/bitbake
+ layers:
+ .: "disabled"
+
+ openembedded-core:
+ url: https://git.openembedded.org/openembedded-core
+ branch: scarthgap
+ path: sources/openembedded-core
+ layers:
+ meta:
+
+ meta-yerba:
+ path: .
diff --git a/meta-yerba/conf/layer.conf b/meta-yerba/conf/layer.conf
new file mode 100644
index 0000000..a2abd17
--- /dev/null
+++ b/meta-yerba/conf/layer.conf
@@ -0,0 +1,12 @@
+BBPATH .= ":${LAYERDIR}"
+
+BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
+ ${LAYERDIR}/recipes-*/*/*.bbappend"
+
+BBFILE_COLLECTIONS += "meta-yerba"
+BBFILE_PATTERN_meta-yerba = "^${LAYERDIR}/"
+BBFILE_PRIORITY_meta-yerba = "27"
+
+LAYERDEPENDS_meta-yerba = "core"
+LAYERSERIES_COMPAT_meta-yerba = "scarthgap"
+