mirror of
git://git.yoctoproject.org/meta-raspberrypi
synced 2026-04-02 02:49:12 +00:00
The init configuration is usually taken care of by setting INIT_MANAGER and systemd is the default since: https://git.openembedded.org/openembedded-core/commit/?id=0b4061c5d50261f826d0edb4b478d2d305274b7c so none of this should be needed, hopefully it will fix CI runs which currently fail with: https://github.com/agherzan/meta-raspberrypi/actions/runs/23234236947/job/67698405693 ERROR: Nothing PROVIDES 'systemd' (but /tmp/tmp.aSbUL7oQb7/openembedded-core/meta/recipes-core/psplash/psplash_git.bb DEPENDS on or otherwise requires it) systemd was skipped: conflicting distro feature 'sysvinit' (in DISTRO_FEATURES) NOTE: Runtime target 'psplash' is unbuildable, removing... Missing or unbuildable dependency chain was: ['psplash', 'systemd'] ERROR: Required build target 'rpi-test-image' has no buildable providers. Missing or unbuildable dependency chain was: ['rpi-test-image', 'psplash', 'systemd'] Summary: There was 1 WARNING message. Summary: There were 2 ERROR messages, returning a non-zero exit code. But I don't see where sysvinit would be getting into DISTRO_FEATURES here. Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
63 lines
1.7 KiB
Bash
Executable File
63 lines
1.7 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# SPDX-FileCopyrightText: Andrei Gherzan <andrei.gherzan@huawei.com>
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
set -ex
|
|
|
|
# shellcheck disable=SC1091
|
|
. /utils.sh
|
|
|
|
META_RASPBERRYPI_PATH="/work"
|
|
|
|
[ -n "$BASE_REF" ] ||
|
|
error "Target branch is needed. Make sure that is set in BASE_REF."
|
|
[ -d "$META_RASPBERRYPI_PATH/.git" ] ||
|
|
error "Can't find a git checkout under $META_RASPBERRYPI_PATH ."
|
|
[ -n "$MACHINE" ] ||
|
|
error "Machine to be used for build not provided."
|
|
[ -n "$IMAGE" ] ||
|
|
error "Image to build not provided."
|
|
|
|
TEMP_DIR="$(mktemp -d)"
|
|
cd "$TEMP_DIR"
|
|
|
|
REPOS=" \
|
|
git://git.openembedded.org/openembedded-core \
|
|
git://git.openembedded.org/bitbake \
|
|
git://git.yoctoproject.org/meta-yocto \
|
|
"
|
|
for repo in $REPOS; do
|
|
log "Cloning $repo on branch $BASE_REF..."
|
|
git clone --depth 1 --branch "$BASE_REF" "$repo"
|
|
done
|
|
|
|
# shellcheck disable=SC1091,SC2240
|
|
. ./openembedded-core/oe-init-build-env build
|
|
|
|
# Build configuration
|
|
printf "\n# ------ ci ------\n" >> conf/local.conf
|
|
[ -z "$SSTATE_DIR" ] || echo SSTATE_DIR = \""$SSTATE_DIR"\" >> conf/local.conf
|
|
[ -z "$DL_DIR" ] || echo DL_DIR = \""$DL_DIR"\" >> conf/local.conf
|
|
[ -z "$DISTRO" ] || echo DISTRO = \""$DISTRO"\" >> conf/local.conf
|
|
cat <<EOCONF >>conf/local.conf
|
|
BB_NUMBER_THREADS = "6"
|
|
PARALLEL_MAKE = "-j 6"
|
|
LICENSE_FLAGS_ACCEPTED = "synaptics-killswitch"
|
|
EOCONF
|
|
|
|
# Add the BSP layer
|
|
bitbake-layers add-layer "../meta-yocto/meta-poky"
|
|
bitbake-layers add-layer "../meta-yocto/meta-yocto-bsp"
|
|
bitbake-layers add-layer "$META_RASPBERRYPI_PATH"
|
|
|
|
# Log configs for debugging purposes
|
|
for f in 'conf/local.conf' 'conf/bblayers.conf'; do
|
|
printf "\n------ %s ------\n" "$f"
|
|
cat "$f"
|
|
done
|
|
|
|
# Fire!
|
|
MACHINE="$MACHINE" bitbake "$IMAGE"
|