Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit d839a0f

Browse files
authored
Merge pull request #261 from pohly/merge-prs
Merge multiple PRs in one
2 parents 656e0c4 + e3bd76d commit d839a0f

25 files changed

Lines changed: 250 additions & 303 deletions

File tree

bitbake

Submodule bitbake updated from 6683338 to c0ddde7

doc/security.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@ To enable UEFI Secure Boot signing globally for all profiles, set:
232232

233233
in ``conf/local.conf``. To use a custom DB key, additionally set:
234234

235-
``REFKIT_DB_KEY``
236-
``REFKIT_DB_CERT``
235+
``SECURE_BOOT_SIGNING_KEY``
236+
``SECURE_BOOT_SIGNING_CERT``
237237

238-
The signing tool uses a 2048bit RSA private key (``REFKIT_DB_KEY``) and a
239-
PEM formatted X.509 signature (``REFKIT_DB_CERT``). When deploying the DB
238+
The signing tool uses a 2048bit RSA private key (``SECURE_BOOT_SIGNING_KEY``) and a
239+
PEM formatted X.509 signature (``SECURE_BOOT_SIGNING_CERT``). When deploying the DB
240240
keys on the device, use the DER formatted X.509. See ``meta-refkit/files/secureboot/gen-keys-helper.sh`` for more details on how the test keys can be created.
241241

242242
Firewall support

docker/build-project.sh

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,45 @@ fi
100100
# to run. This makes it possible to investigate signature changes in post-build.sh.
101101
bitbake -S none ${_bitbake_targets}
102102

103-
if [ ! -z ${JOB_NAME+x} ]; then
104-
# CI run: save output to log file
105-
bitbake ${_bitbake_targets} 2>&1 | tee -a $WORKSPACE/$CI_LOG
106-
else
107-
bitbake ${_bitbake_targets}
108-
fi
103+
bitbake_build () {
104+
local targets="$@"
105+
if [ ! -z ${JOB_NAME+x} ]; then
106+
# CI run: save output to log file
107+
bitbake $targets 2>&1 | tee -a $WORKSPACE/$CI_LOG
108+
else
109+
bitbake $targets
110+
fi
111+
}
112+
113+
# Main build.
114+
bitbake_build ${_bitbake_targets}
115+
116+
# Now that the main build phase is done, also build some variants.
117+
# We can do that in parallel, but we have to use different TMPDIRs,
118+
# because otherwise files that need to be different because of
119+
# the different distro features would overwrite each other.
120+
multiconfig_features="x11 wayland"
121+
for feature in $multiconfig_features; do
122+
mkdir -p conf/multiconfig
123+
cat >conf/multiconfig/$feature.conf <<EOF
124+
require conf/distro/include/refkit-core-$feature.inc
125+
TMPDIR .= "-$feature"
126+
# We cannot un-inherit buildhistory at this point?
127+
# Use a different directory because of https://bugzilla.yoctoproject.org/show_bug.cgi?id=11839
128+
BUILDHISTORY_DIR_append = "-$feature"
129+
BUILDHISTORY_COMMIT = "0"
130+
EOF
131+
done
132+
echo "BBMULTICONFIG = '$multiconfig_features'" >>conf/auto.conf
133+
134+
# For each of these images there has to be a recipe in
135+
# meta-refkit-core/recipes-selftest/images. We could also
136+
# export tests for DAFT here.
137+
multiconfig_targets="multiconfig:x11:refkit-image-common-x11 multiconfig:wayland:refkit-image-common-wayland"
138+
bitbake_build $multiconfig_targets
139+
140+
# TODO: publish-project.sh needs to be adapted. For example, it only
141+
# rsyncs detailed logs from tmp-glibc, but not tmp-glibc-11 or tmp-glibc-wayland.
109142

110143
if [ ! -z ${JOB_NAME+x} ]; then
111144
# in CI run only:

docker/post-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ bitbake -S none ${_images}
4848
# Check linux-intel specifically in addition to images, because it did
4949
# rebuild at some point and even though bitbake-diffsigs should
5050
# recurse to it, that's not guaranteed to work.
51-
for target in linux-intel ${_images}; do
51+
for target in intel-linux ${_images}; do
5252
if ! bitbake-diffsigs -t $target do_build; then
5353
echo "$target: nothing changed or bitbake-diffsigs failed"
5454
fi

meta-intel

Submodule meta-intel updated from e76947d to 009d044

meta-iotqa/lib/oeqa/runtime/multimedia/opencv/files/cv_capture_video.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
'''
2+
This test case tests that OpenCV python interface
3+
can capture image from the camera using the
4+
funtions from the OpenCV HighGUI component.
5+
'''
16
import cv2 as cv
27
import sys
38

meta-iotqa/lib/oeqa/runtime/multimedia/opencv/files/cv_detect_shape.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
'''
2+
This test case tests that OpenCV python interface
3+
can detect triangle shape from an image using the
4+
funtions from the OpenCV CV component.
5+
'''
16
import os
27
import cv2 as cv
38
import numpy as np

meta-iotqa/lib/oeqa/runtime/multimedia/opencv/files/cv_process_image.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
'''
2+
This test case tests that OpenCV python interface
3+
can perform image processing on an image using the
4+
funtions from the OpenCV CV component.
5+
'''
16
import os
27
import cv2 as cv
38

meta-iotqa/lib/oeqa/runtime/multimedia/opencv/files/cv_read_image.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
'''
2+
This test case tests that OpenCV python interface
3+
can read image from file system using the
4+
funtions from the OpenCV HighGUI component.
5+
'''
16
import os
27
import cv2 as cv
38

meta-iotqa/lib/oeqa/runtime/multimedia/opencv/opencv_cv2.py

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,18 @@
22
from oeqa.oetest import oeRuntimeTest
33

44
class OpenCVTest(oeRuntimeTest):
5-
5+
'''
6+
This test suite tests the 3 main OpenCV components
7+
(CV, HighGUI, CXCore). Tests for Machine Learning
8+
component is not included at the moment.
9+
10+
CV component that contains image processing.
11+
HighGUI component that contains I/O routines that
12+
interact with operating system, the file system,
13+
and hardware such as cameras.
14+
CXCore that contains basic data structure.
15+
'''
16+
617
cv_read_image = 'cv_read_image.py'
718
cv_capture_video = 'cv_capture_video.py'
819
cv_process_image = 'cv_process_image.py'
@@ -21,9 +32,6 @@ class OpenCVTest(oeRuntimeTest):
2132
def setUp(self):
2233
'''
2334
Copy all necessary files for test to the target device.
24-
@fn setUp
25-
@param self
26-
@return
2735
'''
2836
self.target.copy_to(
2937
os.path.join(
@@ -56,28 +64,29 @@ def setUp(self):
5664
OpenCVTest.cv_image_src),
5765
OpenCVTest.cv_image_src_target)
5866

67+
# Test that OpenCV can read image file from file system
5968
def test_cv_read_image(self):
6069
(status, output) = self.target.run('python %s' % OpenCVTest.cv_read_image_target)
6170
self.assertEqual(status, 0, msg="Error messages: %s" % output)
6271

72+
# Test that OpenCV can capture image from camera
6373
def test_cv_capture_video(self):
6474
(status, output) = self.target.run('python %s 0' % OpenCVTest.cv_capture_video_target)
6575
self.assertEqual(status, 0, msg="Error messages: %s" % output)
6676

77+
# Test that OpenCV can perform image processing to an existing image
6778
def test_cv_process_image(self):
6879
(status, output) = self.target.run('python %s' % OpenCVTest.cv_process_image_target)
6980
self.assertEqual(status, 0, msg="Error messages: %s" % output)
7081

82+
# Test that OpenCV can detect triangle shape inside an existing image
7183
def test_cv_detect_shape(self):
7284
(status, output) = self.target.run('python %s' % OpenCVTest.cv_detect_shape_target)
7385
self.assertEqual(status, 0, msg="Error messages: %s" % output)
7486

7587
def tearDown(self):
7688
'''
7789
Clean work: remove all the files copied to the target device.
78-
@fn tearDown
79-
@param self
80-
@return
8190
'''
8291
self.target.run(
8392
'rm -f %s %s %s %s %s' %

0 commit comments

Comments
 (0)