diff options
-rw-r--r-- | HOWTO.md | 20 | ||||
-rwxr-xr-x | scripts/meta-zephyr-sdk-build.sh | 4 |
2 files changed, 24 insertions, 0 deletions
diff --git a/HOWTO.md b/HOWTO.md new file mode 100644 index 00000000000..f9c6e607149 --- /dev/null +++ b/HOWTO.md @@ -0,0 +1,20 @@ +# meta-zephyr-sdk + +## How to build from scratch +``` +mkdir zephyr-sandbox +cd zephyr-sandbox +wget "https://gerrit.zephyrproject.org/r/gitweb?p=meta-zephyr-sdk.git;a=blob_plain;f=scripts/meta-zephyr-sdk-clone-0.7.5.sh;hb=HEAD" -O meta-zephyr-sdk-clone-0.7.5.sh +./meta-zephyr-sdk-clone-0.7.5.sh +./poky/meta-zephyr-sdk/scripts/meta-zephyr-sdk-build.sh +``` + +In this branch, there is an optional ```SSTATE_MIRROR_URI``` env var that can be passed to the command line: +``` +SSTATE_MIRROR_URI=http://my.example.com/ ./poky/meta-zephyr-sdk/scripts/meta-zephyr-sdk-build.sh +``` + +The ```SSTATE_MIRROR_URI``` env var is just the URI for an sstate mirror (the rest of the ```SSTATE_MIRRORS``` bitbake variable syntax is done by the script). This will set--not append to--the ```SSTATE_MIRRORS``` variable, since the existing build script does not provide the functionality to append, only set. This goal of this branch is to be as minimally invasive as possible. + +### Fedora +To get to build on Fedora (23) needed to install ```perl-bignum```, ```readline-devel```, ```makeself```, and ```p7zip``` and create a symbolic link ```ln -s /usr/bin/7za /usr/bin/7z``` diff --git a/scripts/meta-zephyr-sdk-build.sh b/scripts/meta-zephyr-sdk-build.sh index e301942db51..eb957ad7cfa 100755 --- a/scripts/meta-zephyr-sdk-build.sh +++ b/scripts/meta-zephyr-sdk-build.sh @@ -67,6 +67,7 @@ newbuild() echo " $curdir/poky/meta \\" >> $bblayers echo " $curdir/poky/meta-yocto \\" >> $bblayers echo " $curdir/poky/meta-yocto-bsp \\" >> $bblayers + echo " $curdir/poky/meta-crops \\" >> $bblayers echo " $curdir/poky/meta-zephyr-sdk \\" >> $bblayers echo " \" " >> $bblayers echo "BBLAYERS_NON_REMOVABLE ?= \" \\" >> $bblayers @@ -79,6 +80,9 @@ newbuild() setconf_var "DL_DIR" "$curdir/downloads" $localconf setconf_var "SDKMACHINE" "i686" $localconf setconf_var "DISTRO" "zephyr-sdk" $localconf + if [ -z ${SSTATE_MIRROR_URI+x} ]; then + setconf_var "SSTATE_MIRRORS" "file://.* $SSTATE_MIRROR_URI/PATH" $localconf + fi } ############################################################################## |