mirror of
https://git.yoctoproject.org/meta-zephyr
synced 2026-01-29 21:58:41 +01:00
zephyr-image.inc: cleanup
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
This commit is contained in:
@@ -12,25 +12,17 @@ LIB_INCLUDE_DIR = "-L`dirname \`$CC -print-libgcc-file-name\``"
|
||||
CROSS_COMPILE = "${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}"
|
||||
QEMU_BIN_PATH = "${STAGING_BINDIR_NATIVE}"
|
||||
|
||||
ARCH_arm = "${TRANSLATED_TARGET_ARCH}"
|
||||
ARCH_x86 = "x86"
|
||||
|
||||
OE_TERMINAL_EXPORTS += "CROSS_COMPILE"
|
||||
OE_TERMINAL_EXPORTS += "BOARD"
|
||||
OE_TERMINAL_EXPORTS += "ARCH"
|
||||
|
||||
BOARD_arm ?= "qemu_cortex_m3"
|
||||
BOARD_x86 ?= "qemu_x86"
|
||||
|
||||
# oe_runmake isn't used because of the make -e causing issues with some
|
||||
# make variables.
|
||||
MAKE_COMMAND = "make -j V=1 BOARD=${BOARD} ARCH=${ARCH} CROSS_COMPILE=${CROSS_COMPILE} LIB_INCLUDE_DIR=${LIB_INCLUDE_DIR}"
|
||||
MAKE_COMMAND = "make -j V=1 BOARD=${BOARD} CROSS_COMPILE=${CROSS_COMPILE} LIB_INCLUDE_DIR=${LIB_INCLUDE_DIR}"
|
||||
|
||||
do_configure[noexec] = "1"
|
||||
|
||||
# The makefiles are explicit about the flags they want, so don't unset
|
||||
# them so zephyr flags actually get used. Should we set EXTRA_CFLAGS so our
|
||||
# additional flags get picked up?
|
||||
# them so zephyr flags actually get used.
|
||||
# This is done here rather than in the task so that things still work
|
||||
# in devshell.
|
||||
python () {
|
||||
@@ -39,14 +31,11 @@ python () {
|
||||
d.delVar('LDFLAGS')
|
||||
}
|
||||
|
||||
# oe_runmake isn't used because of the make -e causing issues with some
|
||||
# make variables.
|
||||
do_compile () {
|
||||
cd ${S}
|
||||
export ZEPHYR_BASE=${S}
|
||||
#source ${S}/zephyr-env.sh
|
||||
|
||||
#${MAKE_COMMAND} -C ${ZEPHYR_IMAGE_SRCDIR} pristine
|
||||
${MAKE_COMMAND} -C ${ZEPHYR_IMAGE_SRCDIR} pristine
|
||||
${MAKE_COMMAND} -C ${ZEPHYR_IMAGE_SRCDIR}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user