external-common.bbclass: import oe.external right away

This aligns with what base.bbclass does.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
Christopher Larson
2018-03-03 01:19:18 +05:00
parent 07ee6ebdb5
commit 0954fed02c

View File

@@ -1,4 +1,5 @@
OE_IMPORTS += "oe.external"
OE_IMPORTED := "${@oe_import(d)}"
EXTERNAL_TOOLCHAIN_SYSROOT ?= "${@oe.external.run(d, 'gcc', *(TARGET_CC_ARCH.split() + ['-print-sysroot'])).rstrip()}"
EXTERNAL_TOOLCHAIN_LIBROOT ?= "${@oe.external.run(d, 'gcc', *(TARGET_CC_ARCH.split() + ['-print-file-name=crtbegin.o'])).rstrip().replace('/crtbegin.o', '')}"