X-Git-Url: https://git.karo-electronics.de/?p=meta-tx09.git;a=blobdiff_plain;f=setup-environment;h=4efec1c64a2373094eac37f2ee902d6fa87e13a6;hp=c8ab38901c1be59eab6c7ee9210378b938986787;hb=aa51ad3ea563c192243fb8cde291c4ac27b1189a;hpb=ecdd71eb7ab250770630fb47d79804f209323323 diff --git a/setup-environment b/setup-environment index c8ab389..4efec1c 100755 --- a/setup-environment +++ b/setup-environment @@ -27,14 +27,16 @@ PROGNAME="setup-environment" usage() { echo -e " +Usage: . $PROGNAME Usage: MACHINE= DISTRO= source $PROGNAME Usage: source $PROGNAME machine name - distro name + distribution name build directory The first usage is for creating a new build directory. In this case, the -script creates the build directory , configures it for the +script creates the build directory and confgures it according +to the supplied sdkdefaults.conf. Optionally it configures it for the specified and , and prepares the calling shell for running bitbake on the build directory. @@ -55,11 +57,13 @@ Available Poky's distros: `echo; ls yocto/poky/meta-poky/conf/distro/*.conf \ Examples: +- To use an existing Yocto build directory or create a new buil dir using + the supplied defaults. + $ . $PROGNAME build + - To create a new Yocto build directory: $ MACHINE=tx6q-xxxx DISTRO=poky . $PROGNAME build -- To use an existing Yocto build directory: - $ . $PROGNAME build " fi } @@ -157,7 +161,7 @@ if [ "$build_dir_setup_enabled" = "true" ]; then # Generate the local.conf based on the Yocto defaults TEMPLATES=$CWD/yocto/meta-kc-bsp/conf - grep -v '^#\|^$' conf/local.conf.sample > conf/local.conf + cat conf/local.conf.sample > conf/local.conf cat >> conf/local.conf <