Initial commit for meta-sectorise layer

main
gitea_user 2024-12-02 12:07:24 +01:00
commit 99880e72eb
6 changed files with 107 additions and 0 deletions

17
COPYING.MIT Normal file
View File

@ -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.

41
README Normal file
View File

@ -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: <first dependency>
branch: <branch name>
URI: <second dependency>
branch: <branch name>
.
.
.
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 <xxx.yyyyyy@zzzzz.com>
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 ---

13
conf/layer.conf Normal file
View File

@ -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"

View File

@ -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

View File

@ -0,0 +1,4 @@
fn main() {
println!("Hello, World from Rust!");
}

View File

@ -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}/
}