Re: do_package() failing due to "no attribute"


Quentin Schulz
 

Hi Itai,

On Tue, Aug 04, 2020 at 03:11:55PM +0000, Itai Kleiman via lists.yoctoproject.org wrote:
export SDKTARGETSYSROOT = "${TMPDIR}/sysroots/x86_64-linux/usr/bin/mips64-poky-linux/"
SDKTARGETSYSROOT = "${STAGING_BINDIR_NATIVE}/mips64-poky-linux"

do_configure() {
cd ${S}
./runConfigure -plinux -minmem -nsocket -rpthread -z--sysroot=${TMPDIR}/sysroots/${MACHINE} \
--sysroot=${STAGING_DIR_TARGET} \
-C--build=${BUILD_SYS} \
-C--host=${HOST_SYS} \
-C--target=${TARGET_SYS}
}

do_compile() {
cd ${S}
${MAKE} CXX="mips64-poky-linux-g++ -meb -mabi=64 -mhard-float -march=mips64r2 -march=xlp --sysroot=${TMPDIR}/sysroots/${MACHINE}" CC="mips64-poky-linux-gcc -meb -mabi=64 -mhard-float -march=mips64r2 -march=xlp --sysroot=${TMPDIR}/sysroots/${MACHINE}" AR="mips64-poky-linux-ar" LDFLAGS="-L/${TMPDIR}/sysroots/${MACHINE}/usr/lib -Wl,-O1 -Wl,--as-needed"
--sysroot=${STAGING_DIR_TARGET}
--sysroot=${STAGING_DIR_TARGET} -L/${STAGING_LIBDIR}

At least for the path, haven't checked anything else.

Also, most of those arguments should be passed by Yocto already to your
recipe's makefile.

Quentin

Join yocto@lists.yoctoproject.org to automatically receive all group messages.