From aaee3caa0529abb2d2a97cf7e29d1eb78f870930 Mon Sep 17 00:00:00 2001 From: Baikal Electronics Date: Mon, 6 Feb 2023 18:08:17 +0300 Subject: [PATCH] baikal-oe-init: add init script --- baikal-oe-init | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 baikal-oe-init diff --git a/baikal-oe-init b/baikal-oe-init new file mode 100755 index 0000000..30780f2 --- /dev/null +++ b/baikal-oe-init @@ -0,0 +1,47 @@ +#!/bin/bash + +# Preferred way of using this script is 'source baikal-oe-init' +# Rather than just running it in terminal. + +# Download OpenEmbedded Core project. + +rm -rf tmp +git clone git://git.openembedded.org/openembedded-core tmp + + +cd tmp +git checkout bed837c23ead +cd .. + + +rm -rf meta +rm -rf meta-s* +rm -rf cont* +rm L* +rm R* +rm M* +rm -rf scripts + + +mv tmp/* -t . +mv tmp/.templateconf -t . + +# Openembedded project is developed separately. + +# Open Embedded build tool. +# Separate project that is developed separately as well. +git clone git://git.openembedded.org/bitbake bitbake + +cd bitbake +git checkout 209f7ba352b +cd ../ + +# Certain variables must be seen by Bitbake +# and BB_ENV_PASSTHROUGH just does not work +export BB_PRESERVE_ENV=1 + +# Prepare build directory and setup all required configs in place. +# You may need to run this command again manualy if this script was run +# rather than sourced. +BITBAKEDIR=bitbake TEMPLATECONF=meta-baikal/conf/templates/default source oe-init-build-env + -- 2.39.5