mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
![]() This script can be used directly from poky or oe-core, or can be copied directly into alayer or any other repository - it is self-suffucient and requires only python3 and git on the host where it will run. It is also copied by the bitbake-layers layers-setup plugin together with the json, unless requested otherwise. 1. How to restore the layers from the saved configuration: a) Clone the bootstrap layer or some other repository to obtain the json config and the setup script that can use it. (use 'bitbake-layers create-layer-setup' from the previous commit to create them) b) Running with default options: (note: this will work to update an existing checkout as well) alex@Zen2:/srv/work/alex/my-build$ meta-alex/setup-layers Note: not checking out source meta-alex, use --force-bootstraplayer-checkout to override. Setting up source meta-intel, revision 15.0-hardknott-3.3-310-g0a96edae, branch master Running 'git init -q /srv/work/alex/my-build/meta-intel' Running 'git remote remove origin > /dev/null 2>&1; git remote add origin git://git.yoctoproject.org/meta-intel' in /srv/work/alex/my-build/meta-intel Running 'git fetch -q origin || true' in /srv/work/alex/my-build/meta-intel Running 'git checkout -q 0a96edae609a3f48befac36af82cf1eed6786b4a' in /srv/work/alex/my-build/meta-intel Setting up source poky, revision 4.1_M1-372-g55483d28f2, branch akanavin/setup-layers Running 'git init -q /srv/work/alex/my-build/poky' Running 'git remote remove origin > /dev/null 2>&1; git remote add origin git://git.yoctoproject.org/poky' in /srv/work/alex/my-build/poky Running 'git fetch -q origin || true' in /srv/work/alex/my-build/poky Running 'git remote remove poky-contrib > /dev/null 2>&1; git remote add poky-contrib ssh://git@push.yoctoproject.org/poky-contrib' in /srv/work/alex/my-build/poky Running 'git fetch -q poky-contrib || true' in /srv/work/alex/my-build/poky Running 'git checkout -q 11db0390b02acac1324e0f827beb0e2e3d0d1d63' in /srv/work/alex/my-build/poky 2. Command line options: alex@Zen2:/srv/work/alex/my-build$ meta-alex/setup-layers -h usage: setup-layers [-h] [--force-bootstraplayer-checkout] [--destdir DESTDIR] [--jsondata JSONDATA] A self contained python script that fetches all the needed layers and sets them to correct revisions optional arguments: -h, --help show this help message and exit --force-bootstraplayer-checkout Force the checkout of the layer containing this file (by default it is presumed that as this script is in it, the layer is already in place). --destdir DESTDIR Where to check out the layers (default is /srv/work/alex/my-build). --jsondata JSONDATA File containing the layer data in json format (default is /srv/work/alex/my-build/meta-alex/setup-layers.json). (From OE-Core rev: 58f94471675aef9ac6d15637ac5d8e69cc304c7a) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> |
||
---|---|---|
.. | ||
contrib | ||
cross-intercept | ||
lib | ||
native-intercept | ||
nativesdk-intercept | ||
postinst-intercepts | ||
pybootchartgui | ||
tiny | ||
autobuilder-worker-prereq-tests | ||
bitbake-prserv-tool | ||
bitbake-whatchanged | ||
buildall-qemu | ||
buildhistory-collect-srcrevs | ||
buildhistory-diff | ||
buildstats-diff | ||
combo-layer | ||
combo-layer-hook-default.sh | ||
combo-layer.conf.example | ||
cp-noerror | ||
create-pull-request | ||
crosstap | ||
devtool | ||
gen-lockedsig-cache | ||
gen-site-config | ||
git | ||
install-buildtools | ||
multilib_header_wrapper.h | ||
oe-build-perf-report | ||
oe-build-perf-test | ||
oe-buildenv-internal | ||
oe-check-sstate | ||
oe-debuginfod | ||
oe-depends-dot | ||
oe-find-native-sysroot | ||
oe-git-archive | ||
oe-git-proxy | ||
oe-gnome-terminal-phonehome | ||
oe-pkgdata-browser | ||
oe-pkgdata-browser.glade | ||
oe-pkgdata-util | ||
oe-publish-sdk | ||
oe-pylint | ||
oe-run-native | ||
oe-selftest | ||
oe-setup-builddir | ||
oe-setup-layers | ||
oe-test | ||
oe-time-dd-test.sh | ||
oe-trim-schemas | ||
oepydevshell-internal.py | ||
opkg-query-helper.py | ||
pythondeps | ||
README | ||
recipetool | ||
relocate_sdk.py | ||
resulttool | ||
rootfs_rpm-extract-postinst.awk | ||
rpm2cpio.sh | ||
runqemu | ||
runqemu-addptable2image | ||
runqemu-export-rootfs | ||
runqemu-extract-sdk | ||
runqemu-gen-tapdevs | ||
runqemu-ifdown | ||
runqemu-ifup | ||
runqemu.README | ||
send-error-report | ||
send-pull-request | ||
sstate-cache-management.sh | ||
sstate-diff-machines.sh | ||
sstate-sysroot-cruft.sh | ||
sysroot-relativelinks.py | ||
task-time | ||
test-reexec | ||
test-remote-image | ||
verify-bashisms | ||
wic | ||
yocto-check-layer | ||
yocto-check-layer-wrapper |
This directory contains Various useful scripts for working with OE builds