commit 99880e72ebc9bf03ba766b5bc1cbaed0d3f83e21 Author: gitea_user Date: Mon Dec 2 12:07:24 2024 +0100 Initial commit for meta-sectorise layer diff --git a/COPYING.MIT b/COPYING.MIT new file mode 100644 index 0000000..fb950dc --- /dev/null +++ b/COPYING.MIT @@ -0,0 +1,17 @@ +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README b/README new file mode 100644 index 0000000..0b0495d --- /dev/null +++ b/README @@ -0,0 +1,41 @@ +This README file contains information on the contents of the meta-sectorise layer. + +Please see the corresponding sections below for details. + +Dependencies +============ + + URI: + branch: + + URI: + branch: + + . + . + . + +Patches +======= + +Please submit any patches against the meta-sectorise layer to the xxxx mailing list (xxxx@zzzz.org) +and cc: the maintainer: + +Maintainer: XXX YYYYYY + +Table of Contents +================= + + I. Adding the meta-sectorise layer to your build + II. Misc + + +I. Adding the meta-sectorise layer to your build +================================================= + +Run 'bitbake-layers add-layer meta-sectorise' + +II. Misc +======== + +--- replace with specific information about the meta-sectorise layer --- diff --git a/conf/layer.conf b/conf/layer.conf new file mode 100644 index 0000000..dc08ecc --- /dev/null +++ b/conf/layer.conf @@ -0,0 +1,13 @@ +# 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 += "meta-sectorise" +BBFILE_PATTERN_meta-sectorise = "^${LAYERDIR}/" +BBFILE_PRIORITY_meta-sectorise = "6" + +LAYERDEPENDS_meta-sectorise = "core" +LAYERSERIES_COMPAT_meta-sectorise = "scarthgap" diff --git a/recipes-example/example/example_0.1.bb b/recipes-example/example/example_0.1.bb new file mode 100644 index 0000000..facaae3 --- /dev/null +++ b/recipes-example/example/example_0.1.bb @@ -0,0 +1,13 @@ +SUMMARY = "bitbake-layers recipe" +DESCRIPTION = "Recipe created by bitbake-layers" +LICENSE = "MIT" + +python do_display_banner() { + bb.plain("***********************************************"); + bb.plain("* *"); + bb.plain("* Example recipe created by bitbake-layers *"); + bb.plain("* *"); + bb.plain("***********************************************"); +} + +addtask display_banner before do_build diff --git a/recipes-rust/hello-rust/files/main.rs b/recipes-rust/hello-rust/files/main.rs new file mode 100644 index 0000000..1312a67 --- /dev/null +++ b/recipes-rust/hello-rust/files/main.rs @@ -0,0 +1,4 @@ +fn main() { + println!("Hello, World from Rust!"); +} + diff --git a/recipes-rust/hello-rust/hello-rust.bb b/recipes-rust/hello-rust/hello-rust.bb new file mode 100644 index 0000000..b8426e8 --- /dev/null +++ b/recipes-rust/hello-rust/hello-rust.bb @@ -0,0 +1,19 @@ +SUMMARY = "Hello World in Rust" +DESCRIPTION = "A simple Hello World application written in Rust" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +SRC_URI = "file://main.rs" +S = "${WORKDIR}" + +inherit cargo + +do_compile() { + cargo build --release --manifest-path=${S}/Cargo.toml +} + +do_install() { + install -d ${D}${bindir} + install -m 0755 ${S}/target/release/hello-rust ${D}${bindir}/ +} +