Complete Yocto mirror with license table for TQMa6UL (2038-compliance)

- 264 license table entries with exact download URLs (224/264 resolved)
- Complete sources/ directory with all BitBake recipes
- Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl)
- Full traceability for Softwarefreigabeantrag
- GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4
- License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
Siggi (OpenClaw Agent)
2026-03-01 20:58:18 +00:00
commit 16accb6b24
15086 changed files with 1292356 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
# This bbappend is used to alter the recipe using the test_recipe.inc file created by tests.
include test_recipe.inc

View File

@@ -0,0 +1,34 @@
# This recipe is a copy from the oe-core one.
# It has a lower and invalid version number in order not to be accidentally used by bitbake.
# It is used for tests that require overlayed recipe files.
SUMMARY = "GNU Aspell spell-checker"
SECTION = "console/utils"
HOMEPAGE = "https://ftp.gnu.org/gnu/aspell/"
LICENSE = "LGPL-2.0-only | LGPL-2.1-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34"
SRC_URI = "${GNU_MIRROR}/aspell/aspell-${PV}.tar.gz"
SRC_URI[md5sum] = "e66a9c9af6a60dc46134fdacf6ce97d7"
SRC_URI[sha256sum] = "f52583a83a63633701c5f71db3dc40aab87b7f76b29723aeb27941eff42df6e1"
EXCLUDE_FROM_WORLD = "1"
PACKAGECONFIG ??= ""
PACKAGECONFIG[curses] = "--enable-curses,--disable-curses,ncurses"
PACKAGES += "libaspell libpspell libpspell-dev aspell-utils"
FILES:${PN}-dbg += "${libdir}/aspell-0.60/.debu*"
FILES:libaspell = "${libdir}/libaspell.so.* ${libdir}/aspell*"
FILES:aspell-utils = "${bindir}/word-list-compress ${bindir}/aspell-import ${bindir}/run-with-aspell ${bindir}/pre*"
FILES:${PN} = "${bindir}/aspell"
FILES:libpspell = "${libdir}/libpspell.so.*"
FILES:libpspell-dev = "${libdir}/libpspell* ${bindir}/pspell-config ${includedir}/pspell"
ARM_INSTRUCTION_SET:armv4 = "arm"
ARM_INSTRUCTION_SET:armv5 = "arm"
ARM_INSTRUCTION_SET:armv6 = "arm"
inherit autotools gettext

View File

@@ -0,0 +1,2 @@
# This bbappend is used to alter the recipe using the test_recipe.inc file created by tests.
include test_recipe.inc

View File

@@ -0,0 +1,2 @@
# This bbappend is used to alter the recipe using the test_recipe.inc file created by tests.
include test_recipe.inc

View File

@@ -0,0 +1,8 @@
LICENSE = "MIT"
INHIBIT_DEFAULT_DEPS = "1"
do_install:append() {
install -d ${D}${bindir}
touch ${D}${bindir}/theapp
}

View File

@@ -0,0 +1,8 @@
IMAGE_INSTALL += "container-image-testpkg"
LICENSE = "MIT"
IMAGE_FSTYPES = "container"
IMAGE_LINGUAS = ""
inherit core-image

View File

@@ -0,0 +1 @@
build*

View File

@@ -0,0 +1,25 @@
#
# Copyright OpenEmbedded Contributors
#
# SPDX-License-Identifier: MIT
#
SUMMARY = "A C++ example compiled with cmake."
require cpp-example.inc
SRC_URI += "file://CMakeLists.txt"
inherit cmake-qemu
PACKAGECONFIG[failing_test] = "-DFAILING_TEST=ON"
FILES:${PN}-ptest += "${bindir}/test-cmake-example"
do_run_tests () {
bbnote ${DESTDIR:+DESTDIR=${DESTDIR} }${CMAKE_VERBOSE} cmake --build '${B}' --target test -- ${EXTRA_OECMAKE_BUILD}
eval ${DESTDIR:+DESTDIR=${DESTDIR} }${CMAKE_VERBOSE} cmake --build '${B}' --target test -- ${EXTRA_OECMAKE_BUILD}
}
do_run_tests[doc] = "Run cmake --target=test using qemu-user"
addtask do_run_tests after do_compile

View File

@@ -0,0 +1,10 @@
#!/bin/sh
#
# Copyright OpenEmbedded Contributors
#
# SPDX-License-Identifier: MIT
#
test-cmake-example
# Note: run-ptests exits with exit value from test-cmake-example

View File

@@ -0,0 +1,24 @@
#
# Copyright OpenEmbedded Contributors
#
# SPDX-License-Identifier: MIT
#
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
DEPENDS += "json-c"
PV = "1.0"
SRC_URI = "\
file://cpp-example.cpp \
file://cpp-example-lib.hpp \
file://cpp-example-lib.cpp \
file://test-cpp-example.cpp \
file://run-ptest \
"
S = "${WORKDIR}"
inherit ptest

View File

@@ -0,0 +1,61 @@
#
# Copyright OpenEmbedded Contributors
#
# SPDX-License-Identifier: MIT
#
cmake_minimum_required(VERSION 3.22)
project(cmake-example
VERSION 1.0.0
LANGUAGES CXX
)
option(BUILD_SHARED_LIBS "Build using shared libraries" ON)
option(FAILING_TEST "Compile a failing unit test to test the test infrastructure" OFF)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED On)
set(CMAKE_CXX_EXTENSIONS Off)
include(GNUInstallDirs)
# Linking a small library makes the example more useful for testing.
find_package(json-c)
# A simple library linking json-c library found by pkgconfig
add_library(cmake-example-lib cpp-example-lib.cpp cpp-example-lib.hpp)
set_target_properties(cmake-example-lib PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_VERSION_MAJOR}
)
target_link_libraries(cmake-example-lib PRIVATE json-c::json-c)
install(TARGETS cmake-example-lib
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
# A simple executable linking the library
add_executable(cmake-example cpp-example.cpp)
target_link_libraries(cmake-example PRIVATE cmake-example-lib)
install(TARGETS cmake-example
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
# A simple test executable for testing the library
add_executable(test-cmake-example test-cpp-example.cpp)
target_link_libraries(test-cmake-example PRIVATE cmake-example-lib)
if (FAILING_TEST)
target_compile_definitions(test-cmake-example PRIVATE FAIL_COMPARISON_STR="foo")
endif(FAILING_TEST)
install(TARGETS test-cmake-example
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
include(CTest)
add_test(NAME test-cmake-example COMMAND test-cmake-example)

View File

@@ -0,0 +1,33 @@
/*
* Copyright OpenEmbedded Contributors
*
* SPDX-License-Identifier: MIT
*/
#include <iostream>
#include <string>
#include <json-c/json.h>
#include "cpp-example-lib.hpp"
const std::string &CppExample::get_string()
{
return test_string;
}
const char *CppExample::get_json_c_version()
{
return json_c_version();
}
void CppExample::print_json()
{
struct json_object *jobj;
const int flag = JSON_C_TO_STRING_SPACED | JSON_C_TO_STRING_PRETTY;
jobj = json_object_new_object();
json_object_object_add(jobj, "test_string", json_object_new_string(test_string.c_str()));
std::cout << json_object_to_json_string_ext(jobj, flag) << std::endl;
json_object_put(jobj); // Delete the json object
}

View File

@@ -0,0 +1,21 @@
/*
* Copyright OpenEmbedded Contributors
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <string>
struct CppExample
{
inline static const std::string test_string = "cpp-example-lib Magic: 123456789";
/* Retrieve a constant string */
const std::string &get_string();
/* Retrieve a constant string from a library */
const char *get_json_c_version();
/* Call a more advanced function from a library */
void print_json();
};

View File

@@ -0,0 +1,18 @@
/*
* Copyright OpenEmbedded Contributors
*
* SPDX-License-Identifier: MIT
*/
#include "cpp-example-lib.hpp"
#include <iostream>
int main()
{
auto cpp_example = CppExample();
std::cout << "C++ example linking " << cpp_example.get_string() << std::endl;
std::cout << "Linking json-c version " << cpp_example.get_json_c_version() << std::endl;
cpp_example.print_json();
return 0;
}

View File

@@ -0,0 +1,38 @@
#
# Copyright OpenEmbedded Contributors
#
# SPDX-License-Identifier: MIT
#
project('meson-example', 'cpp',
version: '1.0.0',
default_options: ['cpp_std=c++17']
)
jsoncdep = dependency('json-c')
if get_option('FAILING_TEST').enabled()
add_project_arguments('-DFAIL_COMPARISON_STR=foo', language: 'cpp')
endif
mesonexlib = shared_library('mesonexlib',
'cpp-example-lib.cpp', 'cpp-example-lib.hpp',
version: meson.project_version(),
soversion: meson.project_version().split('.')[0],
dependencies : jsoncdep,
install : true
)
executable('mesonex',
'cpp-example.cpp',
link_with : mesonexlib,
install : true
)
test_mesonex = executable('test-mesonex',
'test-cpp-example.cpp',
link_with : mesonexlib,
install : true
)
test('meson example test', test_mesonex)

View File

@@ -0,0 +1,3 @@
option('FAILING_TEST', type : 'feature', value : 'disabled',
description : 'Compile a failing unit test to test the test infrastructure')

View File

@@ -0,0 +1,25 @@
/*
* Copyright OpenEmbedded Contributors
*
* SPDX-License-Identifier: MIT
*/
#include "cpp-example-lib.hpp"
#include <iostream>
/* This is for creating a failing test for testing the test infrastructure */
#ifndef FAIL_COMPARISON_STR
#define FAIL_COMPARISON_STR ""
#endif
int main() {
auto cpp_example = CppExample();
auto ret_string = cpp_example.get_string();
if(0 == ret_string.compare(CppExample::test_string + FAIL_COMPARISON_STR)) {
std::cout << "PASS: " << ret_string << " = " << CppExample::test_string << std::endl;
} else {
std::cout << "FAIL: " << ret_string << " != " << CppExample::test_string << std::endl;
return 1;
}
}

View File

@@ -0,0 +1,27 @@
#
# Copyright OpenEmbedded Contributors
#
# SPDX-License-Identifier: MIT
#
SUMMARY = "A C++ example compiled with meson."
require cpp-example.inc
SRC_URI += "\
file://meson.build \
file://meson.options \
"
inherit pkgconfig meson
PACKAGECONFIG[failing_test] = "-DFAILING_TEST=enabled"
FILES:${PN}-ptest += "${bindir}/test-mesonex"
do_run_tests () {
meson test -C "${B}" --no-rebuild
}
do_run_tests[doc] = "Run meson test using qemu-user"
addtask do_run_tests after do_compile

View File

@@ -0,0 +1,10 @@
#!/bin/sh
#
# Copyright OpenEmbedded Contributors
#
# SPDX-License-Identifier: MIT
#
test-mesonex
# Note: run-ptests exits with exit value from test-mesonex

View File

@@ -0,0 +1,12 @@
SUMMARY = "Recipe with a fixed delay task"
DESCRIPTION = "Contains a delay task to be used to for testing."
LICENSE = "MIT"
INHIBIT_DEFAULT_DEPS = "1"
EXCLUDE_FROM_WORLD = "1"
do_delay() {
sleep 5
}
do_delay[nostamp] = "1"
addtask delay

View File

@@ -0,0 +1,8 @@
SUMMARY = "devtool test for overrides and patches"
LICENSE = "CLOSED"
INHIBIT_DEFAULT_DEPS = "1"
EXCLUDE_FROM_WORLD = "1"
SRC_URI = "file://source;subdir=${BP}"
SRC_URI:append:qemuarm = " file://arm.patch;striplevel=0"
SRC_URI:append:qemux86 = " file://x86.patch;striplevel=0"

View File

@@ -0,0 +1,7 @@
Upstream-Status: Inappropriate [Test artefact]
--- source.orig 2020-10-06 13:26:10.792688630 +0100
+++ source 2020-10-06 13:26:18.853424694 +0100
@@ -1 +1 @@
-This is a test for something
+This is a test for qemuarm

View File

@@ -0,0 +1,7 @@
Upstream-Status: Inappropriate [Test artefact]
--- source.orig 2020-10-06 13:26:10.792688630 +0100
+++ source 2020-10-06 13:26:18.853424694 +0100
@@ -1 +1 @@
-This is a test for something
+This is a test for qemux86

View File

@@ -0,0 +1 @@
This is a test for something

View File

@@ -0,0 +1,9 @@
LICENSE = "CLOSED"
INHIBIT_DEFAULT_DEPS = "1"
SRC_URI = "file://${BPN}.tar.gz \
file://${BPN}.patch"
S = "${WORKDIR}/${BPN}"
EXCLUDE_FROM_WORLD = "1"

View File

@@ -0,0 +1,9 @@
Upstream-Status: Inappropriate [Test artefact]
diff --git a/ignored b/ignored
index a579759..e3d7b43 100644
--- a/ignored
+++ b/ignored
@@ -1 +1 @@
-I'm so ignored
+# I'm so ignored

View File

@@ -0,0 +1,17 @@
From 3a286343cc5cadd83f41d524ee3606ae51df9ee7 Mon Sep 17 00:00:00 2001
From: Martin Jansa <Martin.Jansa@gmail.com>
Date: Thu, 28 May 2020 01:32:31 +0200
Subject: [PATCH] meta-selftest: add test of .gitignore in tarball
Upstream-Status: Inappropriate [Test artefact]
---
ignored | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ignored b/ignored
index a579759..e3d7b43 100644
--- a/ignored
+++ b/ignored
@@ -1 +1 @@
-I'm so ignored
+# I'm so ignored

View File

@@ -0,0 +1 @@
The first file

View File

@@ -0,0 +1 @@
The second file

View File

@@ -0,0 +1 @@
The third file.

View File

@@ -0,0 +1,18 @@
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
INHIBIT_DEFAULT_DEPS = "1"
SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/syslinux-${PV}.tar.xz \
file://file1 \
file://file2"
SRC_URI:append:class-native = " file://file3"
SRC_URI[md5sum] = "92a253df9211e9c20172796ecf388f13"
SRC_URI[sha256sum] = "26d3986d2bea109d5dc0e4f8c4822a459276cf021125e8c9f23c3cca5d8c850e"
S = "${WORKDIR}/syslinux-${PV}"
EXCLUDE_FROM_WORLD = "1"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1,10 @@
LICENSE = "CLOSED"
INHIBIT_DEFAULT_DEPS = "1"
SRC_URI = "file://file1 \
file://file2"
SRC_URI:append:class-native = " file://file3"
EXCLUDE_FROM_WORLD = "1"
BBCLASSEXTEND = "native"

View File

@@ -0,0 +1 @@
The first file

View File

@@ -0,0 +1 @@
The second file

View File

@@ -0,0 +1 @@
The third file.

View File

@@ -0,0 +1,9 @@
LICENSE = "CLOSED"
INHIBIT_DEFAULT_DEPS = "1"
SRC_URI = "file://${BPN}.tar.gz \
file://0001-I-ll-patch-you-only-if-devtool-lets-me-to-do-it-corr.patch"
S = "${WORKDIR}/${BPN}"
EXCLUDE_FROM_WORLD = "1"

View File

@@ -0,0 +1,9 @@
Upstream-Status: Inappropriate [Test artefact]
diff --git a/patch-me b/patch-me
index a20b29a..5e35d1b 100644
--- a/patch-me
+++ b/patch-me
@@ -1 +1 @@
-please
+NO

View File

@@ -0,0 +1,17 @@
From 45ba3d107ea60777a6b6e134fd00fe5009749177 Mon Sep 17 00:00:00 2001
From: Martin Jansa <Martin.Jansa@gmail.com>
Date: Thu, 28 May 2020 02:03:39 +0200
Subject: [PATCH] meta-selftest: add test for .patch file with long filename
Upstream-Status: Inappropriate [Test artefact]
---
patch-me | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/patch-me b/patch-me
index a20b29a..5e35d1b 100644
--- a/patch-me
+++ b/patch-me
@@ -1 +1 @@
-please
+NO

View File

@@ -0,0 +1,18 @@
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
DEPENDS = "libxres libxext virtual/libx11 ncurses"
SRC_URI = "http://downloads.yoctoproject.org/releases/xrestop/xrestop-0.4.tar.gz \
file://readme.patch.gz \
"
UPSTREAM_VERSION_UNKNOWN = "1"
S = "${WORKDIR}/xrestop-0.4"
SRC_URI[md5sum] = "d8a54596cbaf037e62b80c4585a3ca9b"
SRC_URI[sha256sum] = "67c2fc94a7ecedbaae0d1837e82e93d1d98f4a6d759828860e552119af3ce257"
inherit autotools pkgconfig
EXCLUDE_FROM_WORLD = "1"

View File

@@ -0,0 +1,9 @@
LICENSE = "CLOSED"
INHIBIT_DEFAULT_DEPS = "1"
SRC_URI = "file://devtool-test-subdir.tar.gz \
file://testfile;subdir=${BPN}"
S = "${WORKDIR}/${BPN}"
EXCLUDE_FROM_WORLD = "1"

View File

@@ -0,0 +1 @@
Modified version

View File

@@ -0,0 +1,27 @@
From 1478846ebfac690684e9c48049d08e0065f97a36 Mon Sep 17 00:00:00 2001
From: Paul Eggleton <paul.eggleton@linux.intel.com>
Date: Wed, 24 Feb 2016 17:43:03 +1300
Subject: [PATCH] Add a note line to the quick reference
A test patch so we have a file to move around.
Upstream-Status: Inappropriate [Test artefact]
---
doc/quickref.1.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/doc/quickref.1.in b/doc/quickref.1.in
index 389008b..226615c 100644
--- a/doc/quickref.1.in
+++ b/doc/quickref.1.in
@@ -560,6 +560,7 @@ you want, at runtime, to change the parameters of.
.P
If you find any other problems, please report them.
+NOTE: this is an important note.
.SH REPORTING BUGS
Report bugs in
--
2.5.0

View File

@@ -0,0 +1,39 @@
commit ced2ec32b657a7f52604b2e16e5d5881041c517a
Author: OpenEmbedded <oe.patch@oe>
Date: Mon Nov 18 18:43:15 2019 +0100
Backport of the NEWS file from version 1.6.0
Upstream-Status: Inappropriate [Test artefact]
diff --git a/doc/NEWS b/doc/NEWS
index 69793fc..fd49b1c 100644
--- a/doc/NEWS
+++ b/doc/NEWS
@@ -1,3 +1,26 @@
+1.6.0 - 15 March 2015
+ - fix lstat64 support when unavailable - separate patches supplied by
+ Ganael Laplanche and Peter Korsgaard
+ - (#1506) new option "-D" / "--delay-start" to only show bar after N
+ seconds (Damon Harper)
+ - new option "--fineta" / "-I" to show ETA as time of day rather than time
+ remaining - patch supplied by Erkki Seppälä (r147)
+ - (#1509) change ETA (--eta / -e) so that days are given if the hours
+ remaining are 24 or more (Jacek Wielemborek)
+ - (#1499) repeat read and write attempts on partial buffer fill/empty to
+ work around post-signal transfer rate drop reported by Ralf Ramsauer
+ - (#1507) do not try to calculate total size in line mode, due to bug
+ reported by Jacek Wielemborek and Michiel Van Herwegen
+ - cleanup: removed defunct RATS comments and unnecessary copyright notices
+ - clean up displayed lines when using --watchfd PID, when PID exits
+ - output errors on a new line to avoid overwriting transfer bar
+
+1.5.7 - 26 August 2014
+ - show KiB instead of incorrect kiB (Debian bug #706175)
+ - (#1284) do not gzip man page, for non-Linux OSes (Bob Friesenhahn)
+ - work around "awk" bug in tests/016-numeric-timer in decimal "," locales
+ - fix "make rpm" and "make srpm", extend "make release" to sign releases
+
1.5.3 - 4 May 2014
- remove SPLICE_F_NONBLOCK to fix problem with slow splice() (Jan Seda)

View File

@@ -0,0 +1,22 @@
SUMMARY = "Pipe viewer test recipe for devtool upgrade test"
LICENSE = "Artistic-2.0"
LIC_FILES_CHKSUM = "file://doc/COPYING;md5=9c50db2589ee3ef10a9b7b2e50ce1d02"
SRC_URI = "http://www.ivarch.com/programs/sources/pv-${PV}.tar.gz \
file://0001-Add-a-note-line-to-the-quick-reference.patch \
file://backported.patch \
"
UPSTREAM_CHECK_URI = "http://www.ivarch.com/programs/pv.shtml"
RECIPE_NO_UPDATE_REASON = "This recipe is used to test devtool upgrade feature"
SRC_URI[md5sum] = "9365d86bd884222b4bf1039b5a9ed1bd"
SRC_URI[sha256sum] = "681bcca9784bf3cb2207e68236d1f68e2aa7b80f999b5750dc77dcd756e81fbc"
PR = "r5"
S = "${WORKDIR}/pv-${PV}"
EXCLUDE_FROM_WORLD = "1"
inherit autotools

View File

@@ -0,0 +1,19 @@
SUMMARY = "Pipe viewer test recipe for devtool upgrade test"
LICENSE = "Artistic-2.0"
LIC_FILES_CHKSUM = "file://doc/COPYING;md5=9c50db2589ee3ef10a9b7b2e50ce1d02"
SRC_URI = "http://www.ivarch.com/programs/sources/pv-${PV}.tar.gz \
file://0001-Add-a-note-line-to-the-quick-reference.patch \
file://backported.patch \
"
UPSTREAM_CHECK_URI = "http://www.ivarch.com/programs/pv.shtml"
RECIPE_NO_UPDATE_REASON = "This recipe is used to test devtool upgrade feature"
SRC_URI[sha256sum] = "9dd45391806b0ed215abee4c5ac1597d018c386fe9c1f5afd2f6bc3b07fd82c3"
S = "${WORKDIR}/pv-${PV}"
EXCLUDE_FROM_WORLD = "1"
inherit autotools

View File

@@ -0,0 +1,22 @@
SUMMARY = "A simple tool to wait for a specific signal over DBus"
HOMEPAGE = "http://git.yoctoproject.org/cgit/cgit.cgi/dbus-wait"
SECTION = "base"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
DEPENDS = "dbus"
# Note: this is intentionally not the latest version in the original .bb
SRCREV = "1a3e1343761b30750bed70e0fd688f6d3c7b3717"
PV = "0.1+git"
PR = "r2"
SRC_URI = "git://git.yoctoproject.org/dbus-wait;branch=master"
UPSTREAM_CHECK_COMMITS = "1"
RECIPE_NO_UPDATE_REASON = "This recipe is used to test devtool upgrade feature"
S = "${WORKDIR}/git"
EXCLUDE_FROM_WORLD = "1"
inherit autotools pkgconfig

View File

@@ -0,0 +1,21 @@
SUMMARY = "A simple tool to wait for a specific signal over DBus"
HOMEPAGE = "http://git.yoctoproject.org/cgit/cgit.cgi/dbus-wait"
SECTION = "base"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
DEPENDS = "dbus"
# Note: this is intentionally not the latest version in the original .bb
SRCREV = "6cc6077a36fe2648a5f993fe7c16c9632f946517"
PV = "0.1+git"
SRC_URI = "git://git.yoctoproject.org/dbus-wait;branch=master"
UPSTREAM_CHECK_COMMITS = "1"
RECIPE_NO_UPDATE_REASON = "This recipe is used to test devtool upgrade feature"
S = "${WORKDIR}/git"
EXCLUDE_FROM_WORLD = "1"
inherit autotools pkgconfig

View File

@@ -0,0 +1,16 @@
SUMMARY = "Pipe viewer test recipe for devtool upgrade test"
LICENSE = "Artistic-2.0"
LIC_FILES_CHKSUM = "file://doc/COPYING;md5=9c50db2589ee3ef10a9b7b2e50ce1d02"
SRC_URI = "http://www.ivarch.com/programs/sources/pv-${PV}.tar.gz"
UPSTREAM_CHECK_URI = "http://www.ivarch.com/programs/pv.shtml"
RECIPE_NO_UPDATE_REASON = "This recipe is used to test devtool upgrade feature"
SRC_URI[md5sum] = "9365d86bd884222b4bf1039b5a9ed1bd"
S = "${WORKDIR}/pv-${PV}"
EXCLUDE_FROM_WORLD = "1"
inherit autotools

View File

@@ -0,0 +1,15 @@
SUMMARY = "Pipe viewer test recipe for devtool upgrade test"
LICENSE = "Artistic-2.0"
LIC_FILES_CHKSUM = "file://doc/COPYING;md5=9c50db2589ee3ef10a9b7b2e50ce1d02"
SRC_URI[sha256sum] = "9dd45391806b0ed215abee4c5ac1597d018c386fe9c1f5afd2f6bc3b07fd82c3"
SRC_URI = "http://www.ivarch.com/programs/sources/pv-${PV}.tar.gz"
UPSTREAM_CHECK_URI = "http://www.ivarch.com/programs/pv.shtml"
RECIPE_NO_UPDATE_REASON = "This recipe is used to test devtool upgrade feature"
S = "${WORKDIR}/pv-${PV}"
EXCLUDE_FROM_WORLD = "1"
inherit autotools

View File

@@ -0,0 +1,22 @@
SUMMARY = "Pipe viewer test recipe for devtool upgrade test"
LICENSE = "Artistic-2.0"
LIC_FILES_CHKSUM = "file://doc/COPYING;md5=9c50db2589ee3ef10a9b7b2e50ce1d02"
SRC_URI = "http://www.ivarch.com/programs/sources/pv-${PV}.tar.gz"
UPSTREAM_CHECK_URI = "http://www.ivarch.com/programs/pv.shtml"
RECIPE_NO_UPDATE_REASON = "This recipe is used to test devtool upgrade feature"
SRC_URI[md5sum] = "9365d86bd884222b4bf1039b5a9ed1bd"
SRC_URI[sha1sum] = "63a0801350e812541c7f8e9ad74e0d6b629d0b39"
SRC_URI[sha256sum] = "681bcca9784bf3cb2207e68236d1f68e2aa7b80f999b5750dc77dcd756e81fbc"
SRC_URI[sha384sum] = "5fff6390465ff23dbf573fcf39dfad3aed2f92074a35e6c02abe58b7678858d90fa6572ff4cb56df8b3e217c739cdbe3"
SRC_URI[sha512sum] = "32efe7071a363f547afc74e96774f711795edda1d2702823a347d0f9953e859b7d8c45b3e63e18ffb9e0d5ed5910be652d7d727c8676e81b6cb3aed0b13aec00"
PR = "r5"
S = "${WORKDIR}/pv-${PV}"
EXCLUDE_FROM_WORLD = "1"
inherit autotools

View File

@@ -0,0 +1,19 @@
SUMMARY = "Pipe viewer test recipe for devtool upgrade test"
LICENSE = "Artistic-2.0"
LIC_FILES_CHKSUM = "file://doc/COPYING;md5=9c50db2589ee3ef10a9b7b2e50ce1d02"
SRC_URI = "http://www.ivarch.com/programs/sources/pv-${PV}.tar.gz"
UPSTREAM_CHECK_URI = "http://www.ivarch.com/programs/pv.shtml"
RECIPE_NO_UPDATE_REASON = "This recipe is used to test devtool upgrade feature"
SRC_URI[sha1sum] = "395ce62f4f3e035b86c77038f04b96c5aa233595"
SRC_URI[sha256sum] = "9dd45391806b0ed215abee4c5ac1597d018c386fe9c1f5afd2f6bc3b07fd82c3"
SRC_URI[sha384sum] = "218c8d2d097aeba5310be759bc20573f18ffa0b11701eac6dd2e7e14ddf13c6e0e094ca7ca026eaa05ef92a056402e36"
SRC_URI[sha512sum] = "1cf9d7376fceefcd594d0a8b591afc8e11ce89f7210d10ad74438974ecebe9cc5d9ec4db9cc79e0566bfd2b0278c0cc263c07547803e7536432cd1ffd32d8a45"
S = "${WORKDIR}/pv-${PV}"
EXCLUDE_FROM_WORLD = "1"
inherit autotools

View File

@@ -0,0 +1,7 @@
include test_recipe.inc
# Set LICENSE to something so that bitbake -p that is ran at the beginning
# is successful since test_recipe.inc has not yet been modified.
LICENSE = ""
EXCLUDE_FROM_WORLD = "1"

View File

@@ -0,0 +1,10 @@
SUMMARY = "Error Test case that fails on do_compile"
DESCRIPTION = "This generates a compile time error to be used to for testing."
LICENSE = "MIT"
INHIBIT_DEFAULT_DEPS = "1"
EXCLUDE_FROM_WORLD = "1"
do_compile() {
bbfatal "Failing as expected.";
}

View File

@@ -0,0 +1,5 @@
program helloworld
print * , "Hello World!"
end program helloworld

View File

@@ -0,0 +1,24 @@
SUMMARY = "Fortran Hello World"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
DEPENDS = "libgfortran"
SRC_URI = "file://hello.f95"
# These set flags that Fortran doesn't support
SECURITY_CFLAGS = ""
SECURITY_LDFLAGS = ""
do_compile() {
${FC} ${LDFLAGS} ${WORKDIR}/hello.f95 -o ${B}/fortran-hello
}
do_install() {
install -D ${B}/fortran-hello ${D}${bindir}/fortran-hello
}
python () {
if not d.getVar("FORTRAN"):
raise bb.parse.SkipRecipe("Fortran isn't enabled")
}

View File

@@ -0,0 +1,2 @@
# This bbappend is used to alter the recipe using the test_recipe.inc file created by tests.
include test_recipe.inc

View File

@@ -0,0 +1,26 @@
SUMMARY = "Test recipe for fetching git submodules"
HOMEPAGE = "http://git.yoctoproject.org/cgit/cgit.cgi/git-submodule-test/"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
INHIBIT_DEFAULT_DEPS = "1"
UPSTREAM_VERSION_UNKNOWN = "1"
SRC_URI = "gitsm://git.yoctoproject.org/git-submodule-test;branch=master"
SRCREV = "a2885dd7d25380d23627e7544b7bbb55014b16ee"
S = "${WORKDIR}/git"
do_test_git_as_user() {
cd ${S}
git status
}
addtask test_git_as_user after do_unpack
fakeroot do_test_git_as_root() {
cd ${S}
git status
}
do_test_git_as_root[depends] += "virtual/fakeroot-native:do_populate_sysroot"
addtask test_git_as_root after do_unpack

View File

@@ -0,0 +1,16 @@
SUMMARY = "Test recipe for git repo initialization"
HOMEPAGE = "https://git.yoctoproject.org/git/matchbox-panel-2"
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
INHIBIT_DEFAULT_DEPS = "1"
PATCHTOOL="git"
SRC_URI = "git://git.yoctoproject.org/git/matchbox-panel-2;branch=master;protocol=https \
file://0001-testpatch.patch \
"
SRCREV = "f82ca3f42510fb3ef10f598b393eb373a2c34ca7"
S = "${WORKDIR}/git"

View File

@@ -0,0 +1,11 @@
Upstream-Status: Inappropriate [Test artefact]
diff --git a/Makefile.am b/Makefile.am
index 432a9b4..bbf7c74 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,4 @@
+## This is useless comment to test if patch works
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = matchbox-panel applets data po

View File

@@ -0,0 +1,4 @@
require gitunpackoffline.inc
# Clear the base.bbclass magic srcrev call
fetcher_hashes_dummyfunc[vardepvalue] = ""

View File

@@ -0,0 +1,5 @@
require gitunpackoffline.inc
TAGVALUE = "2.11"
PV = "0.0+git"

View File

@@ -0,0 +1,16 @@
SUMMARY = "Test recipe for fetching git submodules"
HOMEPAGE = "https://git.yoctoproject.org/git/matchbox-panel-2"
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
INHIBIT_DEFAULT_DEPS = "1"
TAGVALUE = "2.10"
# Deliberately have a tag which has to be resolved but ensure do_unpack doesn't access the network again.
SRC_URI = "git://git.yoctoproject.org/git/matchbox-panel-2;branch=master;protocol=https"
SRC_URI:append:gitunpack-enable-recipe = ";tag=${TAGVALUE}"
SRCREV = "f82ca3f42510fb3ef10f598b393eb373a2c34ca7"
SRCREV:gitunpack-enable-recipe = ""
S = "${WORKDIR}/git"

View File

@@ -0,0 +1,8 @@
SUMMARY = "An image that includes the error recipe and will therefore fail"
DESCRIPTION = "This generates an error. Not currently used by oe-selftest"
IMAGE_INSTALL = "error"
IMAGE_LINGUAS = " "
inherit core-image

View File

@@ -0,0 +1,10 @@
SUMMARY = "An image used during oe-selftest tests"
# libudev is needed for deploy mdadm via devtool
IMAGE_INSTALL = "packagegroup-core-boot packagegroup-core-ssh-dropbear libudev"
IMAGE_FEATURES = "debug-tweaks"
IMAGE_LINGUAS = " "
inherit core-image

View File

@@ -0,0 +1,6 @@
SUMMARY = "An empty image."
IMAGE_INSTALL = ""
IMAGE_LINGUAS = ""
PACKAGE_INSTALL = ""
inherit image

View File

@@ -0,0 +1,18 @@
SUMMARY = "An example of partitioned image."
SRC_URI = "file://${FILE_DIRNAME}/${BPN}.wks"
IMAGE_INSTALL = "packagegroup-core-boot"
IMAGE_FSTYPES = "wic"
WKS_FILE_DEPENDS = "dosfstools-native mtools-native gptfdisk-native"
WKS_FILE_DEPENDS:append:x86 = " syslinux-native syslinux"
WKS_FILE_DEPENDS:append:x86-64 = " syslinux-native syslinux"
WKS_FILE_DEPENDS:append:x86-x32 = " syslinux-native syslinux"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
IMAGE_ROOTFS_EXTRA_SPACE = "2000"
inherit image

View File

@@ -0,0 +1,10 @@
# short-description: Example of partitioned image with complex layout
# long-description: This image contains boot partition and 3 rootfs partitions
# created from core-image-minimal and wic-image-minimal image recipes.
part /boot --source bootimg-pcbios --ondisk sda --label boot --active --align 1024
part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024 --use-uuid
part /media --source rootfs --rootfs-dir=wic-image-minimal --ondisk sda --fstype=ext4 --label uuid-test --align 1024 --use-uuid --fsuuid 2c71ef06-a81d-4735-9d3a-379b69c6bdba
part /mnt --source rootfs --rootfs-dir=wic-image-minimal --ondisk sda --fstype=ext4 --label core --align 1024
bootloader --ptable gpt --timeout=0 --append="rootwait console=tty0"

View File

@@ -0,0 +1,5 @@
SUMMARY = "Recipe with an alias of an SPDX license"
DESCRIPTION = "Is licensed with an alias of an SPDX license to be used for testing"
LICENSE = "GPLv3"
EXCLUDE_FROM_WORLD = "1"

View File

@@ -0,0 +1,5 @@
SUMMARY = "Recipe with an SPDX license"
DESCRIPTION = "Is licensed with an SPDX license to be used for testing"
LICENSE = "GPL-3.0-only"
EXCLUDE_FROM_WORLD = "1"

View File

@@ -0,0 +1,5 @@
SUMMARY = "Recipe with multiple SPDX licenses"
DESCRIPTION = "Is licensed with multiple SPDX licenses to be used for testing"
LICENSE = "GPL-2.0-only & GPL-3.0-only & LGPL-3.0-only"
EXCLUDE_FROM_WORLD = "1"

View File

@@ -0,0 +1,5 @@
SUMMARY = "Recipe with a non-SPDX license"
DESCRIPTION = "Is licensed with a non-SPDX license to be used for testing"
LICENSE = "FooLicense"
EXCLUDE_FROM_WORLD = "1"

View File

@@ -0,0 +1,34 @@
SUMMARY = "Destined to fail"
LICENSE = "CLOSED"
deltask do_patch
INHIBIT_DEFAULT_DEPS = "1"
do_shelltest() {
echo "This is shell stdout"
echo "This is shell stderr" >&2
exit 1
}
addtask do_shelltest
python do_pythontest_exec_func_shell() {
bb.build.exec_func('do_shelltest', d)
}
addtask do_pythontest_exec_func_shell
python do_pythontest_exit () {
print("This is python stdout")
sys.exit(1)
}
addtask do_pythontest_exit
python do_pythontest_exec_func_python() {
bb.build.exec_func('do_pythontest_exit', d)
}
addtask do_pythontest_exec_func_python
python do_pythontest_fatal () {
print("This is python fatal test stdout")
bb.fatal("This is a fatal error")
}
addtask do_pythontest_fatal

View File

@@ -0,0 +1,2 @@
# This bbappend is used to alter the recipe using the test_recipe.inc file created by tests.
include test_recipe.inc

View File

@@ -0,0 +1,24 @@
From efc8831f33106e6b48de8e612c2d816fe7d1ae68 Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <alex.kanavin@gmail.com>
Date: Fri, 9 Feb 2018 17:37:48 +0200
Subject: [PATCH] Test patch here!
This is an invalid patch used by oe-selftest
Upstream-Status: Inappropriate [Test artefact]
---
README | 1 +
1 file changed, 1 insertion(+)
diff --git a/README b/README
index 48fff57..26d1234 100644
--- a/README
+++ b/README
@@ -1,3 +1,4 @@
+This is a test patch for purposes of oe-selftest
THIS LINE MAKES THIS PATCH INVALID README for the man-db manual pager suite
========================================
--
2.15.1

View File

@@ -0,0 +1,2 @@
# This bbappend is used to alter the recipe using the test_recipe.inc file created by tests.
include test_recipe.inc

View File

@@ -0,0 +1,44 @@
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
MCMACHINE:virtclass-mcextend-musl = "qemux86-64"
MCMACHINE:virtclass-mcextend-tiny = "qemux86"
MCIMGTYPE:virtclass-mcextend-musl = "ext4"
MCIMGTYPE:virtclass-mcextend-tiny = "cpio.gz"
MC_DEPLOY_DIR_IMAGE = "${TOPDIR}/tmp-mc-${MCNAME}/deploy/images/${MCMACHINE}"
MC_DEPLOY_IMAGE_BASENAME = "core-image-minimal"
do_install[mcdepends] += "mc::${MCNAME}:core-image-minimal:do_image_complete mc::${MCNAME}:virtual/kernel:do_deploy"
do_install () {
install -d ${D}/var/lib/machines/${MCNAME}
install ${MC_DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME_CORE_IMAGE_MINIMAL}.${MCIMGTYPE} ${D}/var/lib/machines/${MCNAME}/${MC_DEPLOY_IMAGE_BASENAME}.${MCIMGTYPE}
install ${MC_DEPLOY_DIR_IMAGE}/bzImage ${D}/var/lib/machines/${MCNAME}
}
# for IMAGE_LINK_NAME, IMAGE_BASENAME
inherit image-artifact-names
python () {
mcname = d.getVar('MCNAME')
if not mcname:
raise bb.parse.SkipRecipe("Not a multiconfig target")
multiconfigs = d.getVar('BBMULTICONFIG') or ""
if mcname not in multiconfigs:
raise bb.parse.SkipRecipe("multiconfig target %s not enabled" % mcname)
# these will most likely start with my BPN multiconfig-image-packager, but I want them from core-image-minimal
# as there is no good way to query core-image-minimal's context lets assume that there are no overrides
# and that we can just replace IMAGE_BASENAME
image_link_name = d.getVar('IMAGE_LINK_NAME')
image_basename = d.getVar('IMAGE_BASENAME')
machine = d.getVar('MACHINE')
mcmachine = d.getVar('MCMACHINE')
image_to_deploy = d.getVar('MC_DEPLOY_IMAGE_BASENAME')
image_link_name_to_deploy = image_link_name.replace(image_basename, image_to_deploy).replace(machine, mcmachine)
bb.warn('%s: assuming that "%s" built for "%s" has IMAGE_LINK_NAME "%s"' % (d.getVar('PN'), mcmachine, image_to_deploy, image_link_name_to_deploy))
d.setVar('IMAGE_LINK_NAME_CORE_IMAGE_MINIMAL', image_link_name_to_deploy)
}
BBCLASSEXTEND = "mcextend:tiny mcextend:musl"

View File

@@ -0,0 +1,11 @@
SUMMARY = "Test Multiconfig Parsing"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
INHIBIT_DEFAULT_DEPS = "1"
do_showvar() {
bbplain "MCTESTVAR=${MCTESTVAR}"
}
addtask do_showvar

View File

@@ -0,0 +1,6 @@
SUMMARY = "Test recipe for nopackages bbclass"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
INHIBIT_DEFAULT_DEPS = "1"
inherit nopackages

View File

@@ -0,0 +1,22 @@
SUMMARY = "Overlayfs class unit test"
DESCRIPTION = "Contains an overlayfs configuration"
LICENSE = "MIT"
INHIBIT_DEFAULT_DEPS = "1"
EXCLUDE_FROM_WORLD = "1"
inherit_defer ${@bb.utils.contains("DISTRO_FEATURES", "overlayfs", "overlayfs", "", d)}
include test_recipe.inc
OVERLAYFS_WRITABLE_PATHS[mnt-overlay] += "/usr/share/my-application"
do_install() {
install -d ${D}/usr/share/my-application
install -d ${D}${sysconfdir}
echo "Original file in /etc" >> ${D}${sysconfdir}/lower-layer-test.txt
}
FILES:${PN} += "\
${exec_prefix} \
${sysconfdir} \
"

View File

@@ -0,0 +1,10 @@
SUMMARY = "Test case that tries to rename a package to an existing one and fails"
DESCRIPTION = "This generates a packaging error when a package is renamed to a pre-existing name"
LICENSE = "MIT"
# Add a new package ${PN}-renametest
PACKAGES += "${PN}-renametest"
# ... and try to rename the ${PN}-dev to the new ${PN}-renametest (conflict)
PKG:${PN}-dev = "${PN}-renametest"
EXCLUDE_FROM_WORLD = "1"

View File

@@ -0,0 +1,2 @@
# This bbappend is used to alter the recipe using the test_recipe.inc file created by tests.
include test_recipe.inc

View File

@@ -0,0 +1,20 @@
SUMMARY = "Sysroot poisoning test"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
LICENSE = "MIT"
inherit nopackages
# This test confirms that compiling code that searches /usr/include for headers
# will result in compiler errors. This recipe should will fail to build and
# oe-selftest has a test that verifies that.
do_compile() {
bbnote Testing preprocessor
echo "int main(int argc, char** argv) {}" | ${CPP} -I/usr/include -
bbnote Testing C compiler
echo "int main(int argc, char** argv) {}" | ${CC} -x c -I/usr/include -
bbnote Testing C++ compiler
echo "int main(int argc, char** argv) {}" | ${CC} -x c++ -I/usr/include -
}
EXCLUDE_FROM_WORLD = "1"

View File

@@ -0,0 +1,72 @@
SUMMARY = "Packages to exercise postinstall functions"
LICENSE = "MIT"
inherit allarch
PACKAGES = "${PN}-rootfs ${PN}-delayed-a ${PN}-delayed-b ${PN}-rootfs-failing"
ALLOW_EMPTY:${PN}-rootfs = "1"
ALLOW_EMPTY:${PN}-delayed-a = "1"
ALLOW_EMPTY:${PN}-delayed-b = "1"
ALLOW_EMPTY:${PN}-rootfs-failing = "1"
RDEPENDS:${PN}-delayed-a = "${PN}-rootfs"
RDEPENDS:${PN}-delayed-b = "${PN}-delayed-a"
TESTDIR = "${sysconfdir}/postinst-test"
# At rootfs time touch $TESTDIR/rootfs. Errors if the file already exists, or
# if the function runs on first boot.
pkg_postinst:${PN}-rootfs () {
set -e
if [ -z "$D" ]; then
echo "${PN}-rootfs should have finished at rootfs time"
exit 1
fi
if [ -e $D${TESTDIR}/rootfs ]; then
echo "$D${TESTDIR}/rootfs exists, but should not"
exit 1
fi
mkdir -p $D${TESTDIR}
touch $D${TESTDIR}/rootfs
}
# Depends on rootfs, delays until first boot, verifies that the rootfs file was
# written.
pkg_postinst_ontarget:${PN}-delayed-a () {
set -e
if [ ! -e ${TESTDIR}/rootfs ]; then
echo "${PN}-delayed-a: ${TESTDIR}/rootfs not found"
exit 1
fi
touch ${TESTDIR}/delayed-a
}
# Depends on delayed-a, delays until first boot, verifies that the delayed-a file was
# written. This verifies the ordering between delayed postinsts.
pkg_postinst_ontarget:${PN}-delayed-b () {
set -e
if [ ! -e ${TESTDIR}/delayed-a ]; then
echo "${PN}-delayed-b: ${TESTDIR}/delayed-a not found"
exit 1
fi
touch ${TESTDIR}/delayed-b
}
# This scriptlet intentionally includes a bogus command in the middle to test
# that we catch and report such errors properly.
pkg_postinst:${PN}-rootfs-failing () {
mkdir -p $D${TESTDIR}
touch $D${TESTDIR}/rootfs-before-failure
run_a_really_broken_command
# Scriptlet execution should stop here; the following commands are NOT supposed to run.
# (oe-selftest checks for it).
touch $D${TESTDIR}/rootfs-after-failure
}

View File

@@ -0,0 +1,15 @@
SUMMARY = "pseudo env test"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
INHIBIT_DEFAULT_DEPS = "1"
python do_compile() {
import pseudo_pyc_test1
print(pseudo_pyc_test1.STRING)
}
python do_install() {
import pseudo_pyc_test2
print(pseudo_pyc_test2.STRING)
}

View File

@@ -0,0 +1,10 @@
Upstream-Status: Inappropriate [Test artefact]
diff --git a/file2 b/file2
new file mode 100644
index 0000000..049b42e
--- /dev/null
+++ b/file2
@@ -0,0 +1,2 @@
+Test file 2
+456

View File

@@ -0,0 +1,2 @@
First test file
123

View File

@@ -0,0 +1,3 @@
#!/bin/sh
echo "Third file" > $1/selftest-replaceme-scripted

View File

@@ -0,0 +1 @@
A file installed by a function called by do_install

View File

@@ -0,0 +1 @@
A file matched by a glob in do_install

View File

@@ -0,0 +1 @@
A file matched by a glob in do_install to a directory

View File

@@ -0,0 +1 @@
Straight through with same nam

View File

@@ -0,0 +1 @@
File in SRC_URI installed just to directory path

View File

@@ -0,0 +1 @@
A file in a subdirectory

View File

@@ -0,0 +1,42 @@
SUMMARY = "Test recipe for recipetool appendfile"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
INHIBIT_DEFAULT_DEPS = "1"
SRC_URI = "file://installscript.sh \
file://selftest-replaceme-orig \
file://selftest-replaceme-todir \
file://file1 \
file://add-file.patch \
file://subdir \
file://selftest-replaceme-inst-globfile \
file://selftest-replaceme-inst-todir-globfile \
file://selftest-replaceme-inst-func"
EXCLUDE_FROM_WORLD = "1"
install_extrafunc() {
install -m 0644 ${WORKDIR}/selftest-replaceme-inst-func ${D}${datadir}/selftest-replaceme-inst-func
}
do_install() {
install -d ${D}${datadir}/
install -m 0644 ${WORKDIR}/selftest-replaceme-orig ${D}${datadir}/selftest-replaceme-orig
install -m 0644 ${WORKDIR}/selftest-replaceme-todir ${D}${datadir}
install -m 0644 ${WORKDIR}/file1 ${D}${datadir}/selftest-replaceme-renamed
install -m 0644 ${WORKDIR}/subdir/fileinsubdir ${D}${datadir}/selftest-replaceme-subdir
cp ${WORKDIR}/selftest-replaceme-inst-glob* ${D}${datadir}/selftest-replaceme-inst-globfile
cp ${WORKDIR}/selftest-replaceme-inst-todir-glob* ${D}${datadir}
install -d ${D}${sysconfdir}
install -m 0644 ${S}/file2 ${D}${sysconfdir}/selftest-replaceme-patched
sh ${WORKDIR}/installscript.sh ${D}${datadir}
install_extrafunc
}
pkg_postinst:${PN} () {
echo "Test file installed by postinst" > $D${datadir}/selftest-replaceme-postinst
}
FILES:${PN} += "${datadir}"

View File

@@ -0,0 +1,5 @@
SRC_URI = "http://xorg.freedesktop.org/releases/individual/lib/libxshmfence-${PV}.tar.bz2"
SRC_URI[md5sum] = "66662e76899112c0f99e22f2fc775a7e"
SRC_URI[sha256sum] = "d21b2d1fd78c1efbe1f2c16dae1cb23f8fd231dcf891465b8debe636a9054b0c"

Some files were not shown because too many files have changed in this diff Show More