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:
3
sources/poky/meta-selftest/README
Normal file
3
sources/poky/meta-selftest/README
Normal file
@@ -0,0 +1,3 @@
|
||||
This layer is intended as test layer, used by scripts/oe-selftest
|
||||
and it's probably a mistake to include it in your builds (unless you
|
||||
want to run the script).
|
||||
@@ -0,0 +1,3 @@
|
||||
base_do_configure:append () {
|
||||
echo "this changes base_do_configure() definiton "
|
||||
}
|
||||
27
sources/poky/meta-selftest/classes/localpkgfeed.bbclass
Normal file
27
sources/poky/meta-selftest/classes/localpkgfeed.bbclass
Normal file
@@ -0,0 +1,27 @@
|
||||
# Create a subset of the package feed that just contain the
|
||||
# packages depended on by this recipe.
|
||||
|
||||
LOCALPKGFEED_DIR = "${WORKDIR}/localpkgfeed"
|
||||
|
||||
addtask localpkgfeed after do_build
|
||||
do_localpkgfeed[cleandirs] = "${LOCALPKGFEED_DIR}"
|
||||
do_localpkgfeed[nostamp] = "1"
|
||||
|
||||
def get_packaging_class(d):
|
||||
package_class = d.getVar("PACKAGE_CLASSES").split()[0]
|
||||
return package_class.replace("package_", "")
|
||||
|
||||
python () {
|
||||
packaging = get_packaging_class(d)
|
||||
d.setVarFlag("do_localpkgfeed", "rdeptask", "do_package_write_" + packaging)
|
||||
}
|
||||
|
||||
python do_localpkgfeed() {
|
||||
import oe.package_manager
|
||||
|
||||
packaging = get_packaging_class(d)
|
||||
deploydir = d.getVar("DEPLOY_DIR_" + packaging.upper())
|
||||
task = "package_write_" + packaging
|
||||
|
||||
oe.package_manager.create_packages_dir(d, d.getVar("LOCALPKGFEED_DIR"), deploydir, task, True, True)
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
# Class to test UBOOT_MKIMAGE and UBOOT_MKIMAGE_SIGN
|
||||
# (in conjunction with kernel-fitimage.bbclass)
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
UBOOT_MKIMAGE = "test_mkimage_wrapper"
|
||||
UBOOT_MKIMAGE_SIGN = "test_mkimage_signing_wrapper"
|
||||
|
||||
test_mkimage_wrapper() {
|
||||
echo "### uboot-mkimage wrapper message"
|
||||
uboot-mkimage "$@"
|
||||
}
|
||||
|
||||
test_mkimage_signing_wrapper() {
|
||||
echo "### uboot-mkimage signing wrapper message"
|
||||
uboot-mkimage "$@"
|
||||
}
|
||||
|
||||
16
sources/poky/meta-selftest/classes/test_events.bbclass
Normal file
16
sources/poky/meta-selftest/classes/test_events.bbclass
Normal file
@@ -0,0 +1,16 @@
|
||||
python test1_eventhandler() {
|
||||
bb.note("Test for bb.event.BuildStarted")
|
||||
}
|
||||
python test2_eventhandler() {
|
||||
bb.note("Test for bb.event.BuildCompleted")
|
||||
}
|
||||
python test3_eventhandler() {
|
||||
bb.note("Test for bb.event.InvalidEvent")
|
||||
}
|
||||
|
||||
addhandler test1_eventhandler
|
||||
test1_eventhandler[eventmask] = "bb.event.BuildStarted"
|
||||
addhandler test2_eventhandler
|
||||
test2_eventhandler[eventmask] = "bb.event.BuildCompleted"
|
||||
addhandler test3_eventhandler
|
||||
test3_eventhandler[eventmask] = "bb.event.InvalidEvent"
|
||||
14
sources/poky/meta-selftest/conf/layer.conf
Normal file
14
sources/poky/meta-selftest/conf/layer.conf
Normal file
@@ -0,0 +1,14 @@
|
||||
# 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 += "selftest"
|
||||
BBFILE_PATTERN_selftest = "^${LAYERDIR}/"
|
||||
BBFILE_PRIORITY_selftest = "5"
|
||||
|
||||
addpylib ${LAYERDIR}/lib oeqa
|
||||
|
||||
LAYERSERIES_COMPAT_selftest = "scarthgap"
|
||||
3
sources/poky/meta-selftest/conf/machine/qemux86copy.conf
Normal file
3
sources/poky/meta-selftest/conf/machine/qemux86copy.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
require conf/machine/qemux86.conf
|
||||
|
||||
MACHINEOVERRIDES .= ":qemux86"
|
||||
2
sources/poky/meta-selftest/conf/multiconfig/muslmc.conf
Normal file
2
sources/poky/meta-selftest/conf/multiconfig/muslmc.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
TCLIBC = "musl"
|
||||
TMPDIR = "${TOPDIR}/tmp-mc-musl"
|
||||
1
sources/poky/meta-selftest/files/signing/key.passphrase
Normal file
1
sources/poky/meta-selftest/files/signing/key.passphrase
Normal file
@@ -0,0 +1 @@
|
||||
test123
|
||||
30
sources/poky/meta-selftest/files/signing/key.pub
Normal file
30
sources/poky/meta-selftest/files/signing/key.pub
Normal file
@@ -0,0 +1,30 @@
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
Version: GnuPG v1
|
||||
|
||||
mQENBFYeMycBCADISkEj+u+3SkGbmC4b09StA3Fk4J8bKZrTTpQqUhOH4QFIQpso
|
||||
q96Q907h/ABAgB+IV0SGIeN866E7BqToqoXZ74X6EoyXWdndaMaFZSj+oNqqg6Gi
|
||||
hVsuGNpvRyyXSCYW8w9H2lFx09UufFrUxoSeP2iVdJJaUAmb8e00PCwkYrS2BZEa
|
||||
tO2VgllbaqczldmlUGnkIZt8YUSQSI/xZBDYUvbcZYBaOnDH1SDQl26f+bgyeIyS
|
||||
TW5TZb96o4tMfiifgPoqAapAxQLahG0WtjF/n1yNV5wUNQYsEQf6/h6W2rHGsCP5
|
||||
6FVFnr/ZPVam9iHUxL4lvJSI8dEH37s9GmarABEBAAG0LXRlc3R1c2VyIChub2Nv
|
||||
bW1lbnQpIDx0ZXN0dXNlckB0ZXN0ZW1haWwuY29tPokBOAQTAQIAIgUCVh4zJwIb
|
||||
AwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQezExa11krVLM2wf/fW1C8DPx
|
||||
tZEyl6iPXFjNotslo+t2TL6jPefC22KmbokJCtCnxcopBjQRuhUSNDTkXkUdVagy
|
||||
TaaYILV8XGajTmcVGQTaKeh+j6TM6CBGApQB5KhHvZCyvNBrGcNyuiex0Sm/rIhS
|
||||
fZre6ptZM/026W2kLwwJESXzHJEqCoFmU6aSOUCVyiDgMfcNw6c4NmEoqZtLdnxU
|
||||
B7Nac98o933AIvaaQMGtKIOcyOM7P/dyv8eMc38z2ew5bEB8E9aSdg5koXb3zIt5
|
||||
IKea631k4INAsFFyLMQNSmmKV7RK0miF5b4hGyekrYZRtiic5+dq5aWnVka4hBfi
|
||||
x31euxwQE87gQLkBDQRWHjMnAQgAt7C9QCFPWzLGQuQ/YaQub+8s2lYNQnmfwDHm
|
||||
5PuON+Wj/f5GyQhHKsbdUAPZ7GsjFIQnva7xNYYF/IvpC+0saB5NLMkBzjfIsg92
|
||||
6MkadAKlOR2o9gKlF59mulsJmJqNFTXiRcVXvpUnU8WB9ECmm321XfYHhk+4EMay
|
||||
H3OUZ0k6dEmvrWBTKNTR7M0z6j/jW+8J3vP3L9k1H+OV0EZwAKXfbh1lN4H467jY
|
||||
3gA7FU1WDmA06HphoSaFUEGTuXGtrRP0eksCUj3BtVygXnyQb379dISDOWcs/9Ke
|
||||
v3KMrZWgDnA4pH1eQpjycBhwKOCHYyhSSVOwCS3DGkaaklmQZwARAQABiQEfBBgB
|
||||
AgAJBQJWHjMnAhsMAAoJEHsxMWtdZK1SoPsIAKadG/tvS5COCyF8FuriL89Ysfov
|
||||
kMRKeb9hsMDbKX2lm3UtoS5ErmpkEUO/SbazQYm6/vYc8noQquqhkIdCljIvpWDv
|
||||
17tXEFfTGA493dlTTEWFt5bvzbQN6OhBu3904lAE4JGtlOOa9OKDeguwXbneLOyl
|
||||
dnlj2f7rw05cB9t/RDu7T11dTI39BMTUUm1lpWxYJk41o59b9g+fpJZkiIAJwnN3
|
||||
MwM1u9/AWfTqjNRgMAO5dIYceceTwGogujG+xz93flt+NjQhILG0T9jd0DFBgIAX
|
||||
Zq4PzX5aFDKjGoFaOOZ6r+kppBLH/HN6okMGIcfqaPPdnJI1MXFQvFzUNpo=
|
||||
=2cSJ
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
59
sources/poky/meta-selftest/files/signing/key.secret
Normal file
59
sources/poky/meta-selftest/files/signing/key.secret
Normal file
@@ -0,0 +1,59 @@
|
||||
-----BEGIN PGP PRIVATE KEY BLOCK-----
|
||||
Version: GnuPG v1
|
||||
|
||||
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
|
||||
=b+vR
|
||||
-----END PGP PRIVATE KEY BLOCK-----
|
||||
29
sources/poky/meta-selftest/files/static-group
Normal file
29
sources/poky/meta-selftest/files/static-group
Normal file
@@ -0,0 +1,29 @@
|
||||
messagebus:x:500:
|
||||
systemd-bus-proxy:x:501:
|
||||
systemd-network:x:502:
|
||||
systemd-resolve:x:503:
|
||||
systemd-timesync:x:504:
|
||||
polkitd:x:505:
|
||||
lock:x:506:
|
||||
systemd-journal:x:507:
|
||||
netdev:x:508:
|
||||
avahi:x:509:
|
||||
avahi-autoipd:x:510:
|
||||
rpc:x:511:
|
||||
rpcuser:x:513:
|
||||
dhcpcd:x:514:
|
||||
sshd:x:516:
|
||||
lpadmin:x:517:
|
||||
crontab:x:518:
|
||||
tracing:x:519:
|
||||
pulse:x:520:
|
||||
bind:x:521:
|
||||
builder:x:522:
|
||||
_apt:x:523:
|
||||
weston-launch:x:524:
|
||||
weston:x:525:
|
||||
wayland:x:526:
|
||||
render:x:527:
|
||||
sgx:x:528:
|
||||
ptest:x:529:
|
||||
xuser:x:530:
|
||||
21
sources/poky/meta-selftest/files/static-passwd
Normal file
21
sources/poky/meta-selftest/files/static-passwd
Normal file
@@ -0,0 +1,21 @@
|
||||
messagebus:x:500:500::/var/lib/dbus:/bin/false
|
||||
systemd-bus-proxy:x:501:501::/:/bin/nologin
|
||||
systemd-network:x:502:502::/:/bin/nologin
|
||||
systemd-resolve:x:503:503::/:/bin/nologin
|
||||
systemd-timesync:x:504:504::/:/bin/nologin
|
||||
polkitd:x:505:505::/:/bin/nologin
|
||||
avahi:x:509:509::/:/bin/nologin
|
||||
avahi-autoipd:x:510:510::/:/bin/nologin
|
||||
rpc:x:511:511::/:/bin/nologin
|
||||
distcc:x:512:nogroup::/:/bin/nologin
|
||||
rpcuser:x:513:513::/var/lib/nfs:/bin/nologin
|
||||
dhcpcd:x:514:514::/:/bin/nologin
|
||||
tester:x:515:515::/:/bin/nologin
|
||||
sshd:x:516:516::/:/bin/nologin
|
||||
pulse:x:520:520::/:/bin/nologin
|
||||
bind:x:521:521::/:/bin/nologin
|
||||
builder:x:522:522::/:/bin/nologin
|
||||
_apt:x:523:523::/:/bin/nologin
|
||||
weston:x:525:525::/:/bin/nologin
|
||||
ptest:x:529:529::/:/bin/nologin
|
||||
xuser:x:530:530::/:/bin/nologin
|
||||
0
sources/poky/meta-selftest/lib/devtool/__init__.py
Normal file
0
sources/poky/meta-selftest/lib/devtool/__init__.py
Normal file
44
sources/poky/meta-selftest/lib/devtool/bbpath.py
Normal file
44
sources/poky/meta-selftest/lib/devtool/bbpath.py
Normal file
@@ -0,0 +1,44 @@
|
||||
import argparse
|
||||
|
||||
already_loaded = False
|
||||
kept_context = None
|
||||
|
||||
def plugin_name(filename):
|
||||
return os.path.splitext(os.path.basename(filename))[0]
|
||||
|
||||
def plugin_init(plugins):
|
||||
global already_loaded
|
||||
already_loaded = plugin_name(__file__) in (plugin_name(p.__name__) for p in plugins)
|
||||
|
||||
def print_name(args, config, basepath, workspace):
|
||||
print (__file__)
|
||||
|
||||
def print_bbdir(args, config, basepath, workspace):
|
||||
print (__file__.replace('/lib/devtool/bbpath.py',''))
|
||||
|
||||
def print_registered(args, config, basepath, workspace):
|
||||
global kept_context
|
||||
print(kept_context.loaded)
|
||||
|
||||
def multiloaded(args, config, basepath, workspace):
|
||||
global already_loaded
|
||||
print("yes" if already_loaded else "no")
|
||||
|
||||
def register_commands(subparsers, context):
|
||||
global kept_context
|
||||
kept_context = context
|
||||
if 'loaded' in context.__dict__:
|
||||
context.loaded += 1
|
||||
else:
|
||||
context.loaded = 1
|
||||
|
||||
def addparser(name, helptxt, func):
|
||||
parser = subparsers.add_parser(name, help=helptxt,
|
||||
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
|
||||
parser.set_defaults(func=func)
|
||||
return parser
|
||||
|
||||
addparser('pluginfile', 'Print the filename of this plugin', print_name)
|
||||
addparser('bbdir', 'Print the BBPATH directory of this plugin', print_bbdir)
|
||||
addparser('count', 'How many times have this plugin been registered.', print_registered)
|
||||
addparser('multiloaded', 'How many times have this plugin been initialized', multiloaded)
|
||||
11
sources/poky/meta-selftest/lib/devtool/test.py
Normal file
11
sources/poky/meta-selftest/lib/devtool/test.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import argparse
|
||||
|
||||
def selftest_reverse(args, config, basepath, workspace):
|
||||
"""Reverse the value passed to verify the plugin is executing."""
|
||||
print(args.value[::-1])
|
||||
|
||||
def register_commands(subparsers, context):
|
||||
parser_build = subparsers.add_parser('selftest-reverse', help='Reverse value (for selftest)',
|
||||
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
|
||||
parser_build.add_argument('value', help='Value to reverse')
|
||||
parser_build.set_defaults(func=selftest_reverse)
|
||||
@@ -0,0 +1,51 @@
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.runtime.cases.dnf import DnfTest
|
||||
from oeqa.utils.httpserver import HTTPService
|
||||
from oeqa.core.decorator.data import skipIfDataVar
|
||||
|
||||
class DnfSelftest(DnfTest):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
import tempfile
|
||||
cls.temp_dir = tempfile.TemporaryDirectory(prefix="oeqa-remotefeeds-")
|
||||
cls.repo_server = HTTPService(os.path.join(cls.tc.td['WORKDIR'], 'oe-rootfs-repo'),
|
||||
'0.0.0.0', port=cls.tc.target.server_port,
|
||||
logger=cls.tc.logger)
|
||||
cls.repo_server.start()
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
cls.repo_server.stop()
|
||||
cls.temp_dir.cleanup()
|
||||
|
||||
@OETestDepends(['dnf.DnfBasicTest.test_dnf_help'])
|
||||
@skipIfDataVar('PACKAGE_FEED_URIS', None,
|
||||
'Not suitable as PACKAGE_FEED_URIS is not set')
|
||||
def test_verify_package_feeds(self):
|
||||
"""
|
||||
Summary: Check correct setting of PACKAGE_FEED_URIS var
|
||||
Expected: 1. Feeds were correctly set for dnf
|
||||
2. Update recovers packages from host's repo
|
||||
Author: Humberto Ibarra <humberto.ibarra.lopez@intel.com>
|
||||
Author: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||
"""
|
||||
# When we created an image, we had to supply fake ip and port
|
||||
# for the feeds. Now we can patch the real ones into the config file.
|
||||
temp_file = os.path.join(self.temp_dir.name, 'tmp.repo')
|
||||
self.tc.target.copyFrom("/etc/yum.repos.d/oe-remote-repo.repo", temp_file)
|
||||
fixed_config = open(temp_file, "r").read().replace("bogus_ip", self.tc.target.server_ip).replace("bogus_port", str(self.repo_server.port))
|
||||
with open(temp_file, "w") as f:
|
||||
f.write(fixed_config)
|
||||
self.tc.target.copyTo(temp_file, "/etc/yum.repos.d/oe-remote-repo.repo")
|
||||
|
||||
import re
|
||||
# Use '-y' for non-interactive mode: automatically import the feed signing key
|
||||
output_makecache = self.dnf('-vy makecache')
|
||||
self.assertTrue(re.match(r".*Failed to synchronize cache", output_makecache, re.DOTALL) is None, msg = "dnf makecache failed to synchronize repo: %s" %(output_makecache))
|
||||
self.assertTrue(re.match(r".*Metadata cache created", output_makecache, re.DOTALL) is not None, msg = "dnf makecache failed: %s" %(output_makecache))
|
||||
|
||||
output_repoinfo = self.dnf('-v repoinfo')
|
||||
matchobj = re.match(r".*Repo-pkgs\s*:\s*(?P<n_pkgs>[0-9]+)", output_repoinfo, re.DOTALL)
|
||||
self.assertTrue(matchobj is not None, msg = "Could not find the amount of packages in dnf repoinfo output: %s" %(output_repoinfo))
|
||||
self.assertTrue(int(matchobj.group('n_pkgs')) > 0, msg = "Amount of remote packages is not more than zero: %s\n" %(output_repoinfo))
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"test_install_package": {
|
||||
"pkg": "socat",
|
||||
"rm": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
|
||||
class Selftest(OERuntimeTestCase):
|
||||
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
def test_install_package(self):
|
||||
"""
|
||||
Summary: Check basic package installation functionality.
|
||||
Expected: 1. Before the test socat must be installed using scp.
|
||||
2. After the test socat must be uninstalled using ssh.
|
||||
This can't be checked in this test.
|
||||
Product: oe-core
|
||||
Author: Mariano Lopez <mariano.lopez@intel.com>
|
||||
"""
|
||||
|
||||
(status, output) = self.target.run("socat -V")
|
||||
self.assertEqual(status, 0, msg="socat is not installed")
|
||||
|
||||
@OETestDepends(['selftest.Selftest.test_install_package'])
|
||||
def test_verify_uninstall(self):
|
||||
"""
|
||||
Summary: Check basic package installation functionality.
|
||||
Expected: 1. test_install_package must uninstall socat.
|
||||
This test is just to verify that.
|
||||
Product: oe-core
|
||||
Author: Mariano Lopez <mariano.lopez@intel.com>
|
||||
"""
|
||||
|
||||
(status, output) = self.target.run("socat -V")
|
||||
self.assertNotEqual(status, 0, msg="socat is still installed")
|
||||
18
sources/poky/meta-selftest/lib/oeqa/runtime/cases/virgl.py
Normal file
18
sources/poky/meta-selftest/lib/oeqa/runtime/cases/virgl.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
import subprocess
|
||||
import oe.lsb
|
||||
|
||||
class VirglTest(OERuntimeTestCase):
|
||||
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
def test_kernel_driver(self):
|
||||
status, output = self.target.run('dmesg|grep virgl')
|
||||
self.assertEqual(status, 0, "Checking for virgl driver in dmesg returned non-zero: %d\n%s" % (status, output))
|
||||
self.assertIn("features: +virgl", output, "virgl acceleration seems to be disabled:\n%s" %(output))
|
||||
|
||||
@OETestDepends(['virgl.VirglTest.test_kernel_driver'])
|
||||
def test_kmscube(self):
|
||||
status, output = self.target.run('kmscube')
|
||||
self.assertEqual(status, 0, "kmscube exited with non-zero status %d and output:\n%s" %(status, output))
|
||||
self.assertIn('renderer: "virgl', output, "kmscube does not seem to use virgl:\n%s" %(output))
|
||||
@@ -0,0 +1,16 @@
|
||||
#from oeqa.selftest.base import oeSelfTest
|
||||
from oeqa.selftest.case import OESelftestTestCase
|
||||
#from oeqa.utils.decorators import testcase
|
||||
|
||||
|
||||
class ImportedTests(OESelftestTestCase):
|
||||
|
||||
def test_unconditional_pass(self):
|
||||
"""
|
||||
Summary: Doesn't check anything, used to check import test from other layers.
|
||||
Expected: 1. Pass unconditionally
|
||||
Product: oe-core
|
||||
Author: Mariano Lopez <mariano.lopez@intel.com
|
||||
"""
|
||||
|
||||
self.assertEqual(True, True, msg = "Impossible to fail this test")
|
||||
1
sources/poky/meta-selftest/lib/pseudo_pyc_test1.py
Normal file
1
sources/poky/meta-selftest/lib/pseudo_pyc_test1.py
Normal file
@@ -0,0 +1 @@
|
||||
STRING = "pseudo_pyc_test1"
|
||||
1
sources/poky/meta-selftest/lib/pseudo_pyc_test2.py
Normal file
1
sources/poky/meta-selftest/lib/pseudo_pyc_test2.py
Normal file
@@ -0,0 +1 @@
|
||||
STRING = "pseudo_pyc_test2"
|
||||
41
sources/poky/meta-selftest/lib/recipetool/bbpath.py
Normal file
41
sources/poky/meta-selftest/lib/recipetool/bbpath.py
Normal file
@@ -0,0 +1,41 @@
|
||||
import argparse
|
||||
|
||||
already_loaded = False
|
||||
register_count = 0
|
||||
|
||||
def plugin_name(filename):
|
||||
return os.path.splitext(os.path.basename(filename))[0]
|
||||
|
||||
def plugin_init(plugins):
|
||||
global already_loaded
|
||||
already_loaded = plugin_name(__file__) in (plugin_name(p.__name__) for p in plugins)
|
||||
|
||||
def print_name(opts):
|
||||
print (__file__)
|
||||
|
||||
def print_bbdir(opts):
|
||||
print (__file__.replace('/lib/recipetool/bbpath.py',''))
|
||||
|
||||
def print_registered(opts):
|
||||
#global kept_context
|
||||
#print(kept_context.loaded)
|
||||
print ("1")
|
||||
|
||||
def multiloaded(opts):
|
||||
global already_loaded
|
||||
print("yes" if already_loaded else "no")
|
||||
|
||||
def register_commands(subparsers):
|
||||
global register_count
|
||||
register_count += 1
|
||||
|
||||
def addparser(name, helptxt, func):
|
||||
parser = subparsers.add_parser(name, help=helptxt,
|
||||
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
|
||||
parser.set_defaults(func=func)
|
||||
return parser
|
||||
|
||||
addparser('pluginfile', 'Print the filename of this plugin', print_name)
|
||||
addparser('bbdir', 'Print the BBPATH directory of this plugin', print_bbdir)
|
||||
addparser('count', 'How many times have this plugin been registered.', print_registered)
|
||||
addparser('multiloaded', 'How many times have this plugin been initialized', multiloaded)
|
||||
@@ -0,0 +1,31 @@
|
||||
From 6fb10bd18488ed84776675bc1b2982800a51d839 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sat, 6 Aug 2022 20:14:38 -0700
|
||||
Subject: [mtd-utils][PATCH] tests: Remove unused linux/fs.h header from includes
|
||||
|
||||
This header is not needed, moreover it includes linux/mount.h which is
|
||||
now in conflict[1] with glibc provided sys/mount.h from glibc 2.36 onwards
|
||||
|
||||
[1] https://sourceware.org/glibc/wiki/Release/2.36
|
||||
|
||||
Upstream-Status: Submitted [https://lists.infradead.org/pipermail/linux-mtd/2022-August/094667.html]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
tests/fs-tests/lib/tests.c | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/tests/fs-tests/lib/tests.c b/tests/fs-tests/lib/tests.c
|
||||
index d1a2e0c..3db0426 100644
|
||||
--- a/tests/fs-tests/lib/tests.c
|
||||
+++ b/tests/fs-tests/lib/tests.c
|
||||
@@ -35,7 +35,6 @@
|
||||
#include <sys/vfs.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/statvfs.h>
|
||||
-#include <linux/fs.h>
|
||||
#include <linux/jffs2.h>
|
||||
|
||||
#include "tests.h"
|
||||
--
|
||||
2.37.1
|
||||
|
||||
@@ -0,0 +1,77 @@
|
||||
SUMMARY = "Tools for managing memory technology devices"
|
||||
HOMEPAGE = "http://www.linux-mtd.infradead.org/"
|
||||
DESCRIPTION = "mtd-utils tool is a generic Linux subsystem for memory devices, especially Flash devices."
|
||||
SECTION = "base"
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \
|
||||
file://include/common.h;beginline=1;endline=17;md5=ba05b07912a44ea2bf81ce409380049c"
|
||||
|
||||
inherit autotools pkgconfig update-alternatives
|
||||
|
||||
DEPENDS = "zlib e2fsprogs util-linux"
|
||||
RDEPENDS:mtd-utils-tests += "bash"
|
||||
|
||||
PV = "2.1.4"
|
||||
|
||||
SRCREV = "c7f1bfa44a84d02061787e2f6093df5cc40b9f5c"
|
||||
SRC_URI = "git://git.infradead.org/mtd-utils.git;branch=master \
|
||||
file://0001-tests-Remove-unused-linux-fs.h-header-from-includes.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
# xattr support creates an additional compile-time dependency on acl because
|
||||
# the sys/acl.h header is needed. libacl is not needed and thus enabling xattr
|
||||
# regardless whether acl is enabled or disabled in the distro should be okay.
|
||||
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'xattr', d)} lzo jffs ubifs"
|
||||
PACKAGECONFIG[lzo] = "--with-lzo,--without-lzo,lzo"
|
||||
PACKAGECONFIG[xattr] = "--with-xattr,--without-xattr,acl"
|
||||
PACKAGECONFIG[crypto] = "--with-crypto,--without-crypto,openssl"
|
||||
PACKAGECONFIG[jffs] = "--with-jffs,--without-jffs"
|
||||
PACKAGECONFIG[ubifs] = "--with-ubifs,--without-ubifs"
|
||||
PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd"
|
||||
|
||||
CPPFLAGS:append:riscv64 = " -pthread -D_REENTRANT"
|
||||
|
||||
EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} ${@bb.utils.contains('PACKAGECONFIG', 'xattr', '', '-DWITHOUT_XATTR', d)} -I${S}/include' 'BUILDDIR=${S}'"
|
||||
|
||||
# Use higher priority than corresponding BusyBox-provided applets
|
||||
ALTERNATIVE_PRIORITY = "100"
|
||||
|
||||
ALTERNATIVE:${PN} = "flashcp flash_eraseall flash_lock flash_unlock nanddump nandwrite"
|
||||
ALTERNATIVE:${PN}-ubifs = "ubiattach ubidetach ubimkvol ubirename ubirmvol ubirsvol ubiupdatevol"
|
||||
|
||||
ALTERNATIVE_LINK_NAME[nandwrite] = "${sbindir}/nandwrite"
|
||||
ALTERNATIVE_LINK_NAME[nanddump] = "${sbindir}/nanddump"
|
||||
ALTERNATIVE_LINK_NAME[ubiattach] = "${sbindir}/ubiattach"
|
||||
ALTERNATIVE_LINK_NAME[ubidetach] = "${sbindir}/ubidetach"
|
||||
ALTERNATIVE_LINK_NAME[ubimkvol] = "${sbindir}/ubimkvol"
|
||||
ALTERNATIVE_LINK_NAME[ubirename] = "${sbindir}/ubirename"
|
||||
ALTERNATIVE_LINK_NAME[ubirmvol] = "${sbindir}/ubirmvol"
|
||||
ALTERNATIVE_LINK_NAME[ubirsvol] = "${sbindir}/ubirsvol"
|
||||
ALTERNATIVE_LINK_NAME[ubiupdatevol] = "${sbindir}/ubiupdatevol"
|
||||
ALTERNATIVE_LINK_NAME[flash_eraseall] = "${sbindir}/flash_eraseall"
|
||||
ALTERNATIVE_LINK_NAME[flash_lock] = "${sbindir}/flash_lock"
|
||||
ALTERNATIVE_LINK_NAME[flash_unlock] = "${sbindir}/flash_unlock"
|
||||
ALTERNATIVE_LINK_NAME[flashcp] = "${sbindir}/flashcp"
|
||||
|
||||
do_install () {
|
||||
oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir}
|
||||
}
|
||||
|
||||
PACKAGES =+ "mtd-utils-misc mtd-utils-tests"
|
||||
PACKAGES =+ "${@bb.utils.contains("PACKAGECONFIG", "jffs", "mtd-utils-jffs2", "", d)}"
|
||||
PACKAGES =+ "${@bb.utils.contains("PACKAGECONFIG", "ubifs", "mtd-utils-ubifs", "", d)}"
|
||||
|
||||
FILES:mtd-utils-jffs2 = "${sbindir}/mkfs.jffs2 ${sbindir}/jffs2dump ${sbindir}/jffs2reader ${sbindir}/sumtool"
|
||||
FILES:mtd-utils-ubifs = "${sbindir}/mkfs.ubifs ${sbindir}/ubi*"
|
||||
FILES:mtd-utils-misc = "${sbindir}/nftl* ${sbindir}/ftl* ${sbindir}/rfd* ${sbindir}/doc* ${sbindir}/serve_image ${sbindir}/recv_image"
|
||||
FILES:mtd-utils-tests = "${libexecdir}/mtd-utils/*"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
# git/.compr.c.dep:46: warning: NUL character seen; rest of line ignored
|
||||
# git/.compr.c.dep:47: *** missing separator. Stop.
|
||||
PARALLEL_MAKE = ""
|
||||
|
||||
EXCLUDE_FROM_WORLD = "1"
|
||||
@@ -0,0 +1,16 @@
|
||||
SUMMARY = "Python framework to process interdependent tasks in a pool of workers"
|
||||
HOMEPAGE = "http://github.com/gitpython-developers/async"
|
||||
SECTION = "devel/python"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=88df8e78b9edfd744953862179f2d14e"
|
||||
|
||||
inherit pypi
|
||||
|
||||
PYPI_PACKAGE = "async"
|
||||
|
||||
SRC_URI[md5sum] = "9b06b5997de2154f3bc0273f80bcef6b"
|
||||
SRC_URI[sha256sum] = "ac6894d876e45878faae493b0cf61d0e28ec417334448ac0a6ea2229d8343051"
|
||||
|
||||
RDEPENDS:${PN} += "python3-threading"
|
||||
|
||||
BBCLASSEXTEND = "nativesdk"
|
||||
@@ -0,0 +1,2 @@
|
||||
inherit setuptools3
|
||||
require python-async-test.inc
|
||||
@@ -0,0 +1,16 @@
|
||||
DESCRIPTION = "A simple example for C wrapper around a rust library"
|
||||
HOMEPAGE = "https://gitlab.com/fmartinsonsHome/rust-c-lib-example"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=cb9c441273ed8a029701a086befbfc63"
|
||||
|
||||
SRC_URI = " \
|
||||
git://gitlab.com/fmartinsonsHome/rust-c-lib-example.git;branch=main;protocol=https \
|
||||
"
|
||||
|
||||
SRCREV = "fc53c457f69aa5221ec1f8619a007e8150db5e60"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
DEPENDS = "rust-c-lib-example"
|
||||
|
||||
inherit meson pkgconfig
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
SRC_URI += " \
|
||||
crate://crates.io/android-tzdata/0.1.1 \
|
||||
crate://crates.io/android_system_properties/0.1.5 \
|
||||
crate://crates.io/autocfg/1.1.0 \
|
||||
crate://crates.io/bumpalo/3.13.0 \
|
||||
crate://crates.io/cc/1.0.82 \
|
||||
crate://crates.io/cfg-if/1.0.0 \
|
||||
crate://crates.io/chrono/0.4.26 \
|
||||
crate://crates.io/core-foundation-sys/0.8.4 \
|
||||
crate://crates.io/iana-time-zone/0.1.57 \
|
||||
crate://crates.io/iana-time-zone-haiku/0.1.2 \
|
||||
crate://crates.io/js-sys/0.3.64 \
|
||||
crate://crates.io/libc/0.2.147 \
|
||||
crate://crates.io/log/0.4.19 \
|
||||
crate://crates.io/num-traits/0.2.16 \
|
||||
crate://crates.io/once_cell/1.18.0 \
|
||||
crate://crates.io/proc-macro2/1.0.66 \
|
||||
crate://crates.io/quote/1.0.32 \
|
||||
crate://crates.io/syn/2.0.28 \
|
||||
crate://crates.io/time/0.1.45 \
|
||||
crate://crates.io/unicode-ident/1.0.11 \
|
||||
crate://crates.io/wasi/0.10.0+wasi-snapshot-preview1 \
|
||||
crate://crates.io/wasm-bindgen/0.2.87 \
|
||||
crate://crates.io/wasm-bindgen-backend/0.2.87 \
|
||||
crate://crates.io/wasm-bindgen-macro/0.2.87 \
|
||||
crate://crates.io/wasm-bindgen-macro-support/0.2.87 \
|
||||
crate://crates.io/wasm-bindgen-shared/0.2.87 \
|
||||
crate://crates.io/winapi/0.3.9 \
|
||||
crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \
|
||||
crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \
|
||||
crate://crates.io/windows/0.48.0 \
|
||||
crate://crates.io/windows-targets/0.48.1 \
|
||||
crate://crates.io/windows_aarch64_gnullvm/0.48.0 \
|
||||
crate://crates.io/windows_aarch64_msvc/0.48.0 \
|
||||
crate://crates.io/windows_i686_gnu/0.48.0 \
|
||||
crate://crates.io/windows_i686_msvc/0.48.0 \
|
||||
crate://crates.io/windows_x86_64_gnu/0.48.0 \
|
||||
crate://crates.io/windows_x86_64_gnullvm/0.48.0 \
|
||||
crate://crates.io/windows_x86_64_msvc/0.48.0 \
|
||||
"
|
||||
|
||||
SRC_URI[android-tzdata-0.1.1.sha256sum] = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"
|
||||
SRC_URI[android_system_properties-0.1.5.sha256sum] = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
|
||||
SRC_URI[autocfg-1.1.0.sha256sum] = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
|
||||
SRC_URI[bumpalo-3.13.0.sha256sum] = "a3e2c3daef883ecc1b5d58c15adae93470a91d425f3532ba1695849656af3fc1"
|
||||
SRC_URI[cc-1.0.82.sha256sum] = "305fe645edc1442a0fa8b6726ba61d422798d37a52e12eaecf4b022ebbb88f01"
|
||||
SRC_URI[cfg-if-1.0.0.sha256sum] = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
||||
SRC_URI[chrono-0.4.26.sha256sum] = "ec837a71355b28f6556dbd569b37b3f363091c0bd4b2e735674521b4c5fd9bc5"
|
||||
SRC_URI[core-foundation-sys-0.8.4.sha256sum] = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa"
|
||||
SRC_URI[iana-time-zone-0.1.57.sha256sum] = "2fad5b825842d2b38bd206f3e81d6957625fd7f0a361e345c30e01a0ae2dd613"
|
||||
SRC_URI[iana-time-zone-haiku-0.1.2.sha256sum] = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
|
||||
SRC_URI[js-sys-0.3.64.sha256sum] = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a"
|
||||
SRC_URI[libc-0.2.147.sha256sum] = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3"
|
||||
SRC_URI[log-0.4.19.sha256sum] = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4"
|
||||
SRC_URI[num-traits-0.2.16.sha256sum] = "f30b0abd723be7e2ffca1272140fac1a2f084c77ec3e123c192b66af1ee9e6c2"
|
||||
SRC_URI[once_cell-1.18.0.sha256sum] = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
|
||||
SRC_URI[proc-macro2-1.0.66.sha256sum] = "18fb31db3f9bddb2ea821cde30a9f70117e3f119938b5ee630b7403aa6e2ead9"
|
||||
SRC_URI[quote-1.0.32.sha256sum] = "50f3b39ccfb720540debaa0164757101c08ecb8d326b15358ce76a62c7e85965"
|
||||
SRC_URI[syn-2.0.28.sha256sum] = "04361975b3f5e348b2189d8dc55bc942f278b2d482a6a0365de5bdd62d351567"
|
||||
SRC_URI[time-0.1.45.sha256sum] = "1b797afad3f312d1c66a56d11d0316f916356d11bd158fbc6ca6389ff6bf805a"
|
||||
SRC_URI[unicode-ident-1.0.11.sha256sum] = "301abaae475aa91687eb82514b328ab47a211a533026cb25fc3e519b86adfc3c"
|
||||
SRC_URI[wasi-0.10.0+wasi-snapshot-preview1.sha256sum] = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f"
|
||||
SRC_URI[wasm-bindgen-0.2.87.sha256sum] = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342"
|
||||
SRC_URI[wasm-bindgen-backend-0.2.87.sha256sum] = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd"
|
||||
SRC_URI[wasm-bindgen-macro-0.2.87.sha256sum] = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d"
|
||||
SRC_URI[wasm-bindgen-macro-support-0.2.87.sha256sum] = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b"
|
||||
SRC_URI[wasm-bindgen-shared-0.2.87.sha256sum] = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1"
|
||||
SRC_URI[winapi-0.3.9.sha256sum] = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
||||
SRC_URI[winapi-i686-pc-windows-gnu-0.4.0.sha256sum] = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
||||
SRC_URI[winapi-x86_64-pc-windows-gnu-0.4.0.sha256sum] = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
||||
SRC_URI[windows-0.48.0.sha256sum] = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f"
|
||||
SRC_URI[windows-targets-0.48.1.sha256sum] = "05d4b17490f70499f20b9e791dcf6a299785ce8af4d709018206dc5b4953e95f"
|
||||
SRC_URI[windows_aarch64_gnullvm-0.48.0.sha256sum] = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc"
|
||||
SRC_URI[windows_aarch64_msvc-0.48.0.sha256sum] = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3"
|
||||
SRC_URI[windows_i686_gnu-0.48.0.sha256sum] = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241"
|
||||
SRC_URI[windows_i686_msvc-0.48.0.sha256sum] = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00"
|
||||
SRC_URI[windows_x86_64_gnu-0.48.0.sha256sum] = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1"
|
||||
SRC_URI[windows_x86_64_gnullvm-0.48.0.sha256sum] = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953"
|
||||
SRC_URI[windows_x86_64_msvc-0.48.0.sha256sum] = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a"
|
||||
@@ -0,0 +1,15 @@
|
||||
DESCRIPTION = "A simple example for rust C library"
|
||||
HOMEPAGE = "https://gitlab.com/fmartinsonsHome/rust-c-lib-example"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=cb9c441273ed8a029701a086befbfc63"
|
||||
|
||||
SRC_URI = " \
|
||||
git://gitlab.com/fmartinsonsHome/rust-c-lib-example.git;branch=main;protocol=https \
|
||||
"
|
||||
|
||||
SRCREV = "fc53c457f69aa5221ec1f8619a007e8150db5e60"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit cargo_c
|
||||
|
||||
require ${BPN}-crates.inc
|
||||
@@ -0,0 +1,8 @@
|
||||
# Autogenerated with 'bitbake -c update_crates hello-rs'
|
||||
|
||||
# from Cargo.lock
|
||||
SRC_URI += " \
|
||||
crate://crates.io/figlet-rs/0.1.5 \
|
||||
"
|
||||
|
||||
SRC_URI[figlet-rs-0.1.5.sha256sum] = "4742a071cd9694fc86f9fa1a08fa3e53d40cc899d7ee532295da2d085639fbc5"
|
||||
@@ -0,0 +1,24 @@
|
||||
From 3aea1ece0ca6ac0bf0ffe42736827af22966f767 Mon Sep 17 00:00:00 2001
|
||||
From: Alex Kiernan <alexk@zuma.ai>
|
||||
Date: Wed, 27 Dec 2023 09:55:48 +0000
|
||||
Subject: [PATCH] Greet "OE-Core"
|
||||
|
||||
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
|
||||
Upstream-Status: Inappropriate [Test artefact]
|
||||
---
|
||||
src/main.rs | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/main.rs b/src/main.rs
|
||||
index f4a310758b19..224eca65c38d 100644
|
||||
--- a/src/main.rs
|
||||
+++ b/src/main.rs
|
||||
@@ -3,7 +3,7 @@ use hello_lib::greet;
|
||||
|
||||
fn main() {
|
||||
let standard_font = FIGfont::standard().unwrap();
|
||||
- let greeting = greet(None);
|
||||
+ let greeting = greet(Some("OE-Core"));
|
||||
let figure = standard_font.convert(&greeting);
|
||||
println!("{}", figure.unwrap());
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
SUMMARY = "Simple hello world example"
|
||||
HOMEPAGE = "https://github.com/akiernan/hello-bin"
|
||||
LICENSE = "Unlicense"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=7246f848faa4e9c9fc0ea91122d6e680"
|
||||
|
||||
SRC_URI = "git://github.com/akiernan/hello-bin.git;protocol=https;branch=main;subpath=rust \
|
||||
file://0001-Greet-OE-Core.patch \
|
||||
git://github.com/akiernan/hello-lib.git;protocol=https;branch=main;name=hello-lib;destsuffix=hello-lib;type=git-dependency \
|
||||
"
|
||||
SRCREV = "d3d096eda182644868f8e7458dcfa538ff637db3"
|
||||
|
||||
SRCREV_FORMAT .= "_hello-lib"
|
||||
SRCREV_hello-lib = "59c84574e844617043cf337bc8fa537cf87ad8ae"
|
||||
|
||||
S = "${WORKDIR}/rust"
|
||||
|
||||
inherit cargo cargo-update-recipe-crates ptest-cargo
|
||||
|
||||
# Remove this when the recipe is reproducible
|
||||
EXCLUDE_FROM_WORLD = "1"
|
||||
|
||||
require ${BPN}-crates.inc
|
||||
@@ -0,0 +1,38 @@
|
||||
From 3d076ea588eb3c7f334133b4c31172a14beadf5b Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 2 Feb 2023 20:18:27 -0800
|
||||
Subject: [PATCH] Add <cstdint> for uintXX_t types
|
||||
|
||||
gcc 13 moved some includes around and as a result <cstdint> is no
|
||||
longer transitively included [1]. Explicitly include it
|
||||
for uintXX_t.
|
||||
|
||||
[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/falcosecurity/libs/pull/862]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
userspace/libsinsp/filter/parser.h | 1 +
|
||||
userspace/libsinsp/filter_value.h | 1 +
|
||||
2 files changed, 2 insertions(+)
|
||||
|
||||
--- a/userspace/libsinsp/filter/parser.h
|
||||
+++ b/userspace/libsinsp/filter/parser.h
|
||||
@@ -18,6 +18,7 @@ limitations under the License.
|
||||
#pragma once
|
||||
|
||||
#include "ast.h"
|
||||
+#include <cstdint>
|
||||
|
||||
//
|
||||
// Context-free Grammar for Sinsp Filters
|
||||
--- a/userspace/libsinsp/filter_value.h
|
||||
+++ b/userspace/libsinsp/filter_value.h
|
||||
@@ -18,6 +18,7 @@ limitations under the License.
|
||||
#pragma once
|
||||
|
||||
#include <string.h>
|
||||
+#include <cstdint>
|
||||
#include <utility>
|
||||
|
||||
// Used for CO_IN/CO_PMATCH filterchecks using PT_CHARBUFs to allow
|
||||
@@ -0,0 +1,29 @@
|
||||
From ed8969a233adb6bf701de96d0fd0570e5ddcc787 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 21 Mar 2022 19:35:48 -0700
|
||||
Subject: [PATCH] cmake: Pass PROBE_NAME via CFLAGS
|
||||
|
||||
This helps compliation of driver code where its calling modprobe on the
|
||||
given kernel module via system() API
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
CMakeLists.txt | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 7dceb7ae..e156c36f 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -149,6 +149,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
if(NOT DEFINED PROBE_NAME)
|
||||
set(PROBE_NAME "scap")
|
||||
endif()
|
||||
+ add_definitions(-DPROBE_NAME="${PROBE_NAME}")
|
||||
|
||||
set(DRIVERS_REPO "https://download.sysdig.com/scap-drivers")
|
||||
|
||||
--
|
||||
2.35.1
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
SUMMARY = "A New System Troubleshooting Tool Built for the Way You Work"
|
||||
DESCRIPTION = "Sysdig is open source, system-level exploration: capture \
|
||||
system state and activity from a running Linux instance, then save, \
|
||||
filter and analyze."
|
||||
HOMEPAGE = "http://www.sysdig.org/"
|
||||
LICENSE = "Apache-2.0 & (MIT | GPL-2.0-only)"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=f8fee3d59797546cffab04f3b88b2d44"
|
||||
|
||||
inherit cmake pkgconfig
|
||||
|
||||
#OECMAKE_GENERATOR = "Unix Makefiles"
|
||||
JIT ?= "jit"
|
||||
JIT:mipsarchn32 = ""
|
||||
JIT:mipsarchn64 = ""
|
||||
JIT:riscv64 = ""
|
||||
JIT:riscv32 = ""
|
||||
JIT:powerpc = ""
|
||||
JIT:powerpc64le = ""
|
||||
JIT:powerpc64 = ""
|
||||
|
||||
#DEPENDS += "libb64 lua${JIT} zlib c-ares grpc-native grpc curl ncurses jsoncpp \
|
||||
# tbb jq openssl elfutils protobuf protobuf-native jq-native valijson"
|
||||
RDEPENDS:${PN} = "bash"
|
||||
|
||||
SRC_URI = "git://github.com/draios/sysdig.git;branch=dev;protocol=https;name=sysdig \
|
||||
git://github.com/falcosecurity/libs;protocol=https;branch=master;name=falco;subdir=git/falcosecurity-libs \
|
||||
file://0055-Add-cstdint-for-uintXX_t-types.patch;patchdir=./falcosecurity-libs \
|
||||
file://0099-cmake-Pass-PROBE_NAME-via-CFLAGS.patch \
|
||||
"
|
||||
SRCREV_sysdig = "4fb6288275f567f63515df0ff0a6518043ecfa9b"
|
||||
SRCREV_falco= "caa0e4d0044fdaaebab086592a97f0c7f32aeaa9"
|
||||
|
||||
SRCREV_FORMAT = "sysdig_falco"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
EXTRA_OECMAKE = "\
|
||||
-DBUILD_DRIVER=OFF \
|
||||
-DMINIMAL_BUILD=ON \
|
||||
-DUSE_BUNDLED_DEPS=OFF \
|
||||
-DCREATE_TEST_TARGETS=OFF \
|
||||
-DDIR_ETC=${sysconfdir} \
|
||||
-DLUA_INCLUDE_DIR=${STAGING_INCDIR}/luajit-2.1 \
|
||||
-DFALCOSECURITY_LIBS_SOURCE_DIR=${S}/falcosecurity-libs \
|
||||
-DVALIJSON_INCLUDE=${STAGING_INCDIR}/valijson \
|
||||
"
|
||||
|
||||
#CMAKE_VERBOSE = "VERBOSE=1"
|
||||
|
||||
FILES:${PN} += " \
|
||||
${DIR_ETC}/* \
|
||||
${datadir}/zsh/* \
|
||||
${prefix}/src/* \
|
||||
"
|
||||
# Use getaddrinfo_a is a GNU extension in libsinsp
|
||||
# It should be fixed in sysdig, until then disable
|
||||
# on musl
|
||||
# Something like this https://code.videolan.org/ePirat/vlc/-/commit/01fd9fe4c7f6c5558f7345f38abf0152e17853ab is needed to fix it
|
||||
COMPATIBLE_HOST:libc-musl = "null"
|
||||
COMPATIBLE_HOST:mips = "null"
|
||||
COMPATIBLE_HOST:riscv64 = "null"
|
||||
COMPATIBLE_HOST:riscv32 = "null"
|
||||
COMPATIBLE_HOST:powerpc = "null"
|
||||
COMPATIBLE_HOST:powerpc64le = "null"
|
||||
|
||||
EXCLUDE_FROM_WORLD = "1"
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -0,0 +1,8 @@
|
||||
LICENSE = "MIT"
|
||||
|
||||
INHIBIT_DEFAULT_DEPS = "1"
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}${bindir}
|
||||
touch ${D}${bindir}/theapp
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
IMAGE_INSTALL += "container-image-testpkg"
|
||||
|
||||
LICENSE = "MIT"
|
||||
|
||||
IMAGE_FSTYPES = "container"
|
||||
IMAGE_LINGUAS = ""
|
||||
|
||||
inherit core-image
|
||||
1
sources/poky/meta-selftest/recipes-test/cpp/.gitignore
vendored
Normal file
1
sources/poky/meta-selftest/recipes-test/cpp/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
build*
|
||||
25
sources/poky/meta-selftest/recipes-test/cpp/cmake-example.bb
Normal file
25
sources/poky/meta-selftest/recipes-test/cpp/cmake-example.bb
Normal 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
|
||||
@@ -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
|
||||
24
sources/poky/meta-selftest/recipes-test/cpp/cpp-example.inc
Normal file
24
sources/poky/meta-selftest/recipes-test/cpp/cpp-example.inc
Normal 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
|
||||
@@ -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)
|
||||
@@ -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
|
||||
}
|
||||
@@ -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();
|
||||
};
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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)
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
option('FAILING_TEST', type : 'feature', value : 'disabled',
|
||||
description : 'Compile a failing unit test to test the test infrastructure')
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
27
sources/poky/meta-selftest/recipes-test/cpp/meson-example.bb
Normal file
27
sources/poky/meta-selftest/recipes-test/cpp/meson-example.bb
Normal 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
|
||||
@@ -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
|
||||
12
sources/poky/meta-selftest/recipes-test/delay/delay.bb
Normal file
12
sources/poky/meta-selftest/recipes-test/delay/delay.bb
Normal 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
|
||||
@@ -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"
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
This is a test for something
|
||||
@@ -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"
|
||||
@@ -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
|
||||
@@ -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
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
The first file
|
||||
@@ -0,0 +1 @@
|
||||
The second file
|
||||
@@ -0,0 +1 @@
|
||||
The third 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"
|
||||
@@ -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"
|
||||
@@ -0,0 +1 @@
|
||||
The first file
|
||||
@@ -0,0 +1 @@
|
||||
The second file
|
||||
@@ -0,0 +1 @@
|
||||
The third 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"
|
||||
@@ -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
|
||||
@@ -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
|
||||
Binary file not shown.
@@ -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"
|
||||
Binary file not shown.
@@ -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"
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
Modified version
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
10
sources/poky/meta-selftest/recipes-test/error/error.bb
Normal file
10
sources/poky/meta-selftest/recipes-test/error/error.bb
Normal 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.";
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
program helloworld
|
||||
|
||||
print * , "Hello World!"
|
||||
|
||||
end program helloworld
|
||||
@@ -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")
|
||||
}
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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"
|
||||
@@ -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
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user