[ELDK] eldk-switch.sh has no effect
Maik Ritter
ritter at aerodata.de
Thu Sep 5 10:47:23 CEST 2013
Hi Wolfgang,
the "somthing" is the following:
root at ad-rts-devel:~# eldk-switch -r 5.4 armv7a-hf
Setup for armv7a-hf (using ELDK 5.4)
export PATH=/opt/eldk-5.4/armv7a-hf/sysroots/i686-eldk-linux/usr/bin:
/opt/eldk-5.4/armv7a-hf/sysroots/i686-eldk-linux/usr/bin
/armv7ahf-vfp-neon-linux-gnueabi:
/opt/eldk-5.4/armv7a-hf/sysroots/i686-eldk-linux/usr/sbin:
/opt/eldk-5.4/armv7a-hf/sysroots/i686-eldk-linux/usr/sbin/
armv7ahf-vfp-neon-linux-gnueabi:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:
/bin ; export CROSS_COMPILE=arm-linux-gnueabi- ;
export PKG_CONFIG_SYSROOT_DIR=/opt/eldk-5.4/armv7a-hf/sysroots/
armv7ahf-vfp-neon-linux-gnueabi ;
export PKG_CONFIG_PATH=/opt/eldk-5.4/armv7a-hf/sysroots/
armv7ahf-vfp-neon-linux-gnueabi/usr/lib/pkgconfig ;
export CONFIG_SITE=/opt/eldk-5.4/armv7a-hf/
site-config-armv7ahf-vfp-neon-linux-gnueabi ;
export CC="arm-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork
-mfloat-abi=hard -mfpu=neon
--sysroot=/opt/eldk-5.4/armv7a-hf/sysroots/
armv7ahf-vfp-neon-linux-gnueabi" ;
export CXX="arm-linux-gnueabi-g++ -march=armv7-a -mthumb-interwork
-mfloat-abi=hard -mfpu=neon
--sysroot=/opt/eldk-5.4/armv7a-hf/sysroots/armv7ahf-vfp-neon-linux-gnueabi"
; export CPP="arm-linux-gnueabi-gcc -E -march=armv7-a -mthumb-interwork
-mfloat-abi=hard -mfpu=neon --sysroot=/opt/eldk-5.4/armv7a-hf/
sysroots/armv7ahf-vfp-neon-linux-gnueabi" ; export AS="arm-linux-gnueabi-as " ;
export LD="arm-linux-gnueabi-ld --sysroot=/opt/eldk-5.4/armv7a-hf/sysroots/
armv7ahf-vfp-neon-linux-gnueabi" ; export GDB=arm-linux-gnueabi-gdb ;
export STRIP=arm-linux-gnueabi-strip ; export RANLIB=arm-linux-gnueabi-ranlib
; export OBJCOPY=arm-linux-gnueabi-objcopy ; export OBJDUMP=arm-linux-gnueabi-objdump
; export AR=arm-linux-gnueabi-ar ; export NM=arm-linux-gnueabi-nm ;
export M4=m4 ; export TARGET_PREFIX=arm-linux-gnueabi-
; export CONFIGURE_FLAGS="--target=arm-linux-gnueabi --host=arm-linux-gnueabi
--build=i686-linux --with-libtool-sysroot=/opt/eldk-5.4/armv7a-hf/
sysroots/armv7ahf-vfp-neon-linux-gnueabi" ;
export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types" ;
export CXXFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fpermissive" ;
export LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" ; export CPPFLAGS="" ;
export OECORE_NATIVE_SYSROOT="/opt/eldk-5.4/armv7a-hf/sysroots/i686-eldk-linux" ;
export OECORE_TARGET_SYSROOT="/opt/eldk-5.4/armv7a-hf/sysroots/
armv7ahf-vfp-neon-linux-gnueabi" ;
export OECORE_ACLOCAL_OPTS="-I /opt/eldk-5.4/armv7a-hf/sysroots/
i686-eldk-linux/usr/share/aclocal" ; export OECORE_DISTRO_VERSION="5.4" ;
export OECORE_SDK_VERSION="5.4" ; export PYTHONHOME=/opt/eldk-5.4/armv7a-hf/
sysroots/i686-eldk-linux/usr ; export ARCH=arm ;
root at ad-rts-devel:~# exit
root at ad-rts-devel:~# eldk-switch -q
sed: can't read /version-*: No such file or directory
Environment is not setup to use an ELDK.
To me it looks as if it trys to set the environments as it should. But eldk-switch -q just fails.
Here is the requested output:
root at ad-rts-devel:~# type eldk-switch
eldk-switch is a function
eldk-switch ()
{
eval 'eldk-switch.sh $*'
}
root at ad-rts-devel:~# sh -x eldk-switch-q
sh: 0: Can't open eldk-switch
The last message looks like a problem. . . .
Regards,
Maik
________________________________
Von: Wolfgang Denk [mailto:wd at denx.de]
Gesendet: Do 05.09.2013 10:32
An: Maik Ritter
Cc: eldk at lists.denx.de
Betreff: Re: AW: [ELDK] eldk-switch.sh has no effect
Dear Maik,
In message <6B37B399D1D6114496906FF69514C614337AAD at aero-mail.aerodata.de> you wrote:
>
> I implemented the eldk-switch function. in my bash-profile. It is doing som
> ething on wakeup ...
can you please describe what exactly you mean by "something", and what
by "wakeup" ?
> ... but in the end the call to eldk-switch -q results in the
> following message:
>
> sed: can't read /version-*: No such file or directory
> Environment is not setup to use an ELDK.
The message means that you did not use "eldk-switch" before to select
any specific version of the ELDK, i. e. your PATH does not contain any
ELDK related directory entry.
> I even erased everything of the eldk and started new according to the docum
> entation but in the end I always get this message.
Please provide the complete output of the following commands:
$ type eldk-switch
$ sh -x eldk-switch -q
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A modem is a baudy house.
------------------------------------------------------------------------------------------------------------------------------------
Aerodata AG, Hermann-Blenk-Strasse 34-36, 38108 Braunschweig, Germany
Telefon: 0531-2359-0; Fax: 0531-2359-158
Vorstand: Hans J. Stahl; Vorsitzender des Aufsichtsrates: Prof. Dr. Gunther Schänzer;
Registergericht: Amtsgericht Braunschweig HRB 5217
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5357 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/eldk/attachments/20130905/799b27b8/attachment.bin>
More information about the eldk
mailing list