| FORUM

FEDEVEL
Platform forum

USE DISCOUNT CODE
EXPERT30
TO SAVE $30 USD

Setting up Host machine

bdina77 , 02-28-2018, 06:43 PM
Hello,
I am trying to follow the step by step guide for setting up the host machine at: http://www.imx6rex.com/open-rex/soft...with-software/ how ever when I get to the part where we Build images and I run MACHINE=imx6q-openrex source setup-environment build-openrex It wont build and I get an error that states this:

ERROR: You must set DISTRO when creating a new build directory.

What should I do?
Thank you,
Bdina77
robertferanec , 03-01-2018, 08:53 AM
Honestly, I do not know. It looks like something is not set or you are using some special option. Have a look inside the setup-environment:

usage()
{
echo -e "
Usage: MACHINE=<machine> DISTRO=<distro> source $PROGNAME <build-dir>
Usage: source $PROGNAME <build-dir>
<machine> machine name
<distro> distro name
<build-dir> build directory
The first usage is for creating a new build directory. In this case, the
script creates the build directory <build-dir>, configures it for the
specified <machine> and <distro>, and prepares the calling shell for running
bitbake on the build directory.
The second usage is for using an existing build directory. In this case,
the script prepares the calling shell for running bitbake on the build
directory <build-dir>. The build directory configuration is unchanged.
"

ls sources/*/conf/machine/*.conf > /dev/null 2>&1
ls sources/meta-freescale-distro/conf/distro/fslc-*.conf > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo -e "
Supported machines: `echo; ls sources/*/conf/machine/*.conf \
| sed s/\.conf//g | sed -r 's/^.+\///' | xargs -I% echo -e "\%"`
Supported Freescale's distros: `echo; ls sources/meta-freescale-distro/conf/distro/fslc-*.conf \
| sed s/\.conf//g | sed -r 's/^.+\///' | xargs -I% echo -e "\%"`
Available Poky's distros: `echo; ls sources/poky/meta-poky/conf/distro/*.conf \
| sed s/\.conf//g | sed -r 's/^.+\///' | xargs -I% echo -e "\%"`
Examples:
- To create a new Yocto build directory:
$ MACHINE=imx6qdlsabresd DISTRO=fslc-framebuffer source $PROGNAME build
- To use an existing Yocto build directory:
$ source $PROGNAME build
"
fi
}
bdina77 , 03-01-2018, 10:16 AM
Thanks Robert! by the way I love your videos keep it up!
robertferanec , 03-01-2018, 12:01 PM
Thank you @bdina77
Use our interactive Discord forum to reply or ask new questions.
Discord invite
Discord forum link (after invitation)

Didn't find what you were looking for?