Subject: Toaster from Scratch To: toaster@lists.yoctoproject.org From: "Mehran Memarnejad" X-Originating-Location: FR (79.137.55.82) X-Originating-Platform: Linux Firefox 73 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Sun, 01 Mar 2020 02:25:48 -0800 Message-ID: Content-Type: multipart/alternative; boundary="m7EI7NmoMEyA9keAOVeD" --m7EI7NmoMEyA9keAOVeD Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, All explanations about toaster I found on Internet are based on Poky, i.e.= they say "source oe-init-build-env" and then "source bitbake/bin/toaster s= tart", I could run this successfully, But now I want to do it in my own way= . What I want is that to do things from scratch. by scratch I mean: 1- Cloning bitbake which contains toaster as well ... (NOT cloning poky wh= ich also contains bitbake) 2- Put all my layers in layer directory 3- Run a script to initialize enviornment (here I use setenv ... put a few= lines ahead) 4- Source bitbake/bin/toaster start 5- Go to localhost:8000 and create a new project 6- Add all my required layers to project 7- And finally, building my target recipe *Here is the structure of directory I want to have:* . =E2=94=9C=E2=94=80=E2=94=80 bitbake =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 AUTHORS =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 bin =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 ChangeLog =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 classes =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 conf =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 contrib =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 doc =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 lib =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 LICENSE =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 LICENSE.GPL-2.0-only =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 LICENSE.MIT =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 MANIFEST.in =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 README =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 toaster-requirements.txt =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 TODO =E2=94=9C=E2=94=80=E2=94=80 layers =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 meta-mylayer =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 meta-arago =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 meta-aws =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 meta-browser =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 meta-linaro =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 meta-openembedded =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 meta-processor-sdk =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 meta-qt5 =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 meta-ros =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 meta-ti =E2=94=82=C2=A0=C2=A0 =E2=94=9C=E2=94=80=E2=94=80 meta-virtualization =E2=94=82=C2=A0=C2=A0 =E2=94=94=E2=94=80=E2=94=80 oe-core =E2=94=94=E2=94=80=E2=94=80 setenv *setenv file is from Arago project from TI that contains ... I modified it= alittle:* # Set OEBASE to where the build and source directories reside # NOTE: Do NOT place a trailing / on the end of OEBASE. export OEBASE=3D/home/mehran/Desktop/scratch # try to find out bitbake directory BITBAKEDIR=3D`find ${OEBASE} -name "*bitbake*"` for f in ${BITBAKEDIR} do if [ -d ${f}/bin ] then PATH=3D"${f}/bin:$PATH" fi done # check for any scripts directories in the top-level of the repos and add = those # to the PATH SCRIPTS=3D`find ${OEBASE}/layers -maxdepth 2 -name "scripts" -type d` for s in ${SCRIPTS} do PATH=3D"${s}:$PATH" done unset BITBAKEDIR unset SCRIPTS export PATH export BUILDDIR=3D${OEBASE}/build export BB_ENV_EXTRAWHITE=3D"MACHINE DISTRO TCMODE TCLIBC http_proxy ftp_pr= oxy https_proxy all_proxy ALL_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB= _SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS PARALLEL_MAKE GIT_PROXY_COMMAND= GIT_PROXY_IGNORE SOCKS5_PASSWD SOCKS5_USER OEBASE META_SDK_PATH TOOLCHAIN_= TYPE TOOLCHAIN_BRAND TOOLCHAIN_BASE TOOLCHAIN_PATH TOOLCHAIN_PATH_ARMV5 TOO= LCHAIN_PATH_ARMV7 TOOLCHAIN_PATH_ARMV8 EXTRA_TISDK_FILES TISDK_VERSION ARAG= O_BRAND ARAGO_RT_ENABLE ARAGO_SYSTEST_ENABLE ARAGO_KERNEL_SUFFIX TI_SECURE_= DEV_PKG_CAT TI_SECURE_DEV_PKG_AUTO TI_SECURE_DEV_PKG_K3 ARAGO_SYSVINIT SYSF= W_FILE" *Result:* When I "source bitbake/bin/toaster start", toaster runs on localhost:8000.= Then I can create a project and add my layers (toaster shows recipes in la= yers), but I can't build my recipe.. It gives me an error.. when it starts,= It says "0% cloning " and then throws an error with below descripti= on, even though all my layers are local NOT on git hosting servers: command: git fetch && git reset --hard "origin/N/A" b"fatal: ambiguous argument 'origin/N/A': unknown revision or path not in = the working tree.\nUse '--' to separate paths from revisions, like this:\n'= git [...] -- [...]'\n" Any help on how to use toaster individually is appreciated Thanks in advance --m7EI7NmoMEyA9keAOVeD Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi,

All explanations about toaster I found on Internet are based= on Poky, i.e. they say "source oe-init-build-env" and then "source bitbake= /bin/toaster start", I could run this successfully, But now I want to do it= in my own way.
What I want is that to do things from scratch. by scra= tch I mean:
1- Cloning bitbake which contains toaster as well ... (NOT= cloning poky which also contains bitbake)
2- Put all my layers in lay= er directory
3- Run a script to initialize enviornment (here I use set= env ... put a few lines ahead)
4- Source bitbake/bin/toaster start
5- Go to localhost:8000 and create a new project
6- Add all my requi= red layers to project
7- And finally, building my target recipe
<= br />Here is the structure of directory I want to have:.
=E2=94=9C=E2=94=80=E2=94=80 bitbake
=E2=94=82   = =E2=94=9C=E2=94=80=E2=94=80 AUTHORS
=E2=94=82   =E2=94=9C= =E2=94=80=E2=94=80 bin
=E2=94=82   =E2=94=9C=E2=94=80=E2=94= = =80 ChangeLog
=E2=94=82   =E2=94=9C=E2=94=80=E2=94=80 class= es
=E2=94=82   =E2=94=9C=E2=94=80=E2=94=80 conf
=E2=94= =82   =E2=94=9C=E2=94=80=E2=94=80 contrib
=E2=94=82 &n= bsp; =E2=94=9C=E2=94=80=E2=94=80 doc
=E2=94=82   =E2=94=9C= =E2=94=80=E2=94=80 lib
=E2=94=82   =E2=94=9C=E2=94=80=E2=94= = =80 LICENSE
=E2=94=82   =E2=94=9C=E2=94=80=E2=94=80 LICENSE= .GPL-2.0-only
=E2=94=82   =E2=94=9C=E2=94=80=E2=94=80 LICENS= E.MIT
=E2=94=82   =E2=94=9C=E2=94=80=E2=94=80 MANIFEST.in=E2=94=82   =E2=94=9C=E2=94=80=E2=94=80 README
=E2=94=82&= nbsp;  =E2=94=9C=E2=94=80=E2=94=80 toaster-requirements.txt
=E2= =94=82   =E2=94=94=E2=94=80=E2=94=80 TODO
=E2=94=9C=E2=94= =80=E2=94=80 layers
=E2=94=82   =E2=94=9C=E2=94=80=E2=94=80= meta-mylayer
=E2=94=82   =E2=94=9C=E2=94=80=E2=94=80 meta-a= rago
=E2=94=82   =E2=94=9C=E2=94=80=E2=94=80 meta-aws
= =E2=94=82   =E2=94=9C=E2=94=80=E2=94=80 meta-browser
=E2=94= = =82   =E2=94=9C=E2=94=80=E2=94=80 meta-linaro
=E2=94=82&nbs= p;  =E2=94=9C=E2=94=80=E2=94=80 meta-openembedded
=E2=94=82 =   =E2=94=9C=E2=94=80=E2=94=80 meta-processor-sdk
=E2=94=82 &= nbsp; =E2=94=9C=E2=94=80=E2=94=80 meta-qt5
=E2=94=82   =E2= =94=9C=E2=94=80=E2=94=80 meta-ros
=E2=94=82   =E2=94=9C=E2= =94=80=E2=94=80 meta-ti
=E2=94=82   =E2=94=9C=E2=94=80=E2= =94=80 meta-virtualization
=E2=94=82   =E2=94=94=E2=94=80= =E2=94=80 oe-core
=E2=94=94=E2=94=80=E2=94=80 setenv


setenv file is from Arago project from TI that contains ... I modi= fied it alittle:

# Set OEBASE to where the build and so= urce directories reside
# NOTE: Do NOT place a trailing / on the end o= f OEBASE.
export OEBASE=3D/home/mehran/Desktop/scratch

# tr= y to find out bitbake directory
BITBAKEDIR=3D`find ${OEBASE} -name "*b= itbake*"`
for f in ${BITBAKEDIR}
do
    if [ = -d ${f}/bin ]
    then
    &nb= sp;   PATH=3D"${f}/bin:$PATH"
    fi
don= e

# check for any scripts directories in the top-level of the re= pos and add those
# to the PATH
SCRIPTS=3D`find ${OEBASE}/layers = -maxdepth 2 -name "scripts" -type d`
for s in ${SCRIPTS}
do
=     PATH=3D"${s}:$PATH"
done

unset BITBAKEDI= R
unset SCRIPTS
export PATH
export BUILDDIR=3D${OEBASE}/buil= d
export BB_ENV_EXTRAWHITE=3D"MACHINE DISTRO TCMODE TCLIBC http_proxy = ftp_proxy https_proxy all_proxy ALL_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_S= OCK BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS PARALLEL_MAKE GIT_PROXY_C= OMMAND GIT_PROXY_IGNORE SOCKS5_PASSWD SOCKS5_USER OEBASE META_SDK_PATH TOOL= CHAIN_TYPE TOOLCHAIN_BRAND TOOLCHAIN_BASE TOOLCHAIN_PATH TOOLCHAIN_PATH_ARM= V5 TOOLCHAIN_PATH_ARMV7 TOOLCHAIN_PATH_ARMV8 EXTRA_TISDK_FILES TISDK_VERSIO= N ARAGO_BRAND ARAGO_RT_ENABLE ARAGO_SYSTEST_ENABLE ARAGO_KERNEL_SUFFIX TI_S= ECURE_DEV_PKG_CAT TI_SECURE_DEV_PKG_AUTO TI_SECURE_DEV_PKG_K3 ARAGO_SYSVINI= T SYSFW_FILE"

Result:
When I "source bitba= ke/bin/toaster start", toaster runs on localhost:8000. Then I can create a = project and add my layers (toaster shows recipes in layers), but I can't bu= ild my recipe.. It gives me an error.. when it starts, It says "0% cloning = <layer>" and then throws an error with below description, even though= all my layers are local NOT on git hosting servers:
   = ;            command= : git fetch && git reset --hard "origin/N/A"
  &nbs= p;            b"fata= l: ambiguous argument 'origin/N/A': unknown revision or path not in the wor= king tree.\nUse '--' to separate paths from revisions, like this:\n'git <= ;command> [<revision>...] -- [<file>...]'\n"

Any = help on how to use toaster individually is appreciated
Thanks in advan= ce
--m7EI7NmoMEyA9keAOVeD--