Hi All,
I'm cross compiling an third party source code to powerpc platform by writing an bitbake file. In third party source code for an particular directory alone I need to compile it for x86 since it need to generate binary to execute in x86 system.
So I replaced the env variable in the script of that directory, setting host env, and also exported shell env variables to x86.
But even after replacing the env variables, while compiling it is taking as powerpc only.
I have tried all different possible ways, but whatever the changes I did, while compilation its got replaced with powerpc.
Im not sure where I miss the stuff..
Can anyone help me in this ??
FYI below is my bbfile,
##########################################################
DESCRIPTION = "Thirdparty source code"
LICENSE = "Apache license"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ffsfdf7hmgc7db22bbabf6h8787667df"
DEPENDS = "python-scons-native git python wget gcc patch make autoconf automake vim python-lxml unzip flex bison openssl protobuf tbb libipfix librdkafka"
inherit autotools
do_fetch() {
cd ${WORKDIR}/source-2.20
repo init path
repo sync
}
do_compile() {
cd ${WORKDIR}/source-2.20/
compile source
}
##########################################################
--thanks
Hello,
I guess this is still related to env variables. I think you could refer to the environment-setup-<core> file in freescale toolchain, to check those related env variables one by one, if they are set correctly for x86 or still as in the file for ppc.
Regards
Hi lunminliang,
Thanks for you suggestion. I have tried exporting the environment variable file in freescale toolchain and compiled my source code. But still it is giving the same issue. It is giving issue. It is taking as powerpc only. Not as x86 as I have mentioned in the environment file. What change should be done ??