Announcement

Collapse
No announcement yet.

Setting up Host machine

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting up Host machine

    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

  • #2
    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 "\t%"`
    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 "\t%"`
    Available Poky's distros: `echo; ls sources/poky/meta-poky/conf/distro/*.conf \
    | sed s/\.conf//g | sed -r 's/^.+\///' | xargs -I% echo -e "\t%"`
    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
    }

    Comment


    • #3
      Thanks Robert! by the way I love your videos keep it up!

      Comment


      • #4
        Thank you bdina77

        Comment

        Working...
        X