Received: from mga14.intel.com (mga14.intel.com []) by mx.groups.io with SMTP id smtpd.web11.2357.1575284695016860916 for ; Mon, 02 Dec 2019 03:05:02 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: naveen.kumar.saini@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Dec 2019 03:05:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,268,1571727600"; d="scan'208";a="411723538" Received: from saininav-desk1.png.intel.com ([172.30.199.23]) by fmsmga006.fm.intel.com with ESMTP; 02 Dec 2019 03:05:01 -0800 From: "Naveen Saini" To: yocto@lists.yoctoproject.org Subject: [meta-zephyr][PATCH 09/13] zephyr-helloworld: update recipe to build against zephyr v2.0 Date: Mon, 2 Dec 2019 19:08:45 +0800 Message-Id: <20191202110849.31494-9-naveen.kumar.saini@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191202110849.31494-1-naveen.kumar.saini@intel.com> References: <20191202110849.31494-1-naveen.kumar.saini@intel.com> Signed-off-by: Naveen Saini --- recipes-kernel/zephyr-kernel/zephyr-helloworld.bb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb b/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb index 8900bfd..7c0823c 100644 --- a/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb +++ b/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb @@ -1,18 +1,19 @@ require zephyr-kernel.inc require zephyr-kernel-common.inc -inherit deploy +inherit cmake pkgconfig deploy ZEPHYR_SRC_DIR = "${S}/samples/hello_world" ZEPHYR_BASE = "${S}" +OECMAKE_SOURCEPATH = "${ZEPHYR_SRC_DIR}" -do_compile () { - cd ${ZEPHYR_SRC_DIR} - oe_runmake ${ZEPHYR_MAKE_ARGS} -} +DEPENDS += "gperf-native" + +EXTRA_OECMAKE = " -DZEPHYR_BASE=${S} -DZEPHYR_GCC_VARIANT=yocto -DBOARD=${BOARD} -DARCH=${ARCH} -DCROSS_COMPILE=${CROSS_COMPILE} -DZEPHYR_SYSROOT=${ZEPHYR_SYSROOT} -DZEPHYR_TOOLCHAIN_VARIANT=yocto" +export ZEPHYR_BASE="${S}" do_deploy () { - install -D samples/hello_world/outdir/${BOARD}/zephyr.elf ${DEPLOYDIR}/${PN}.elf - install -D samples/hello_world/outdir/${BOARD}/zephyr.bin ${DEPLOYDIR}/${PN}.bin + install -D ${B}/zephyr/zephyr.elf ${DEPLOYDIR}/${PN}.elf } addtask deploy after do_compile +do_install[noexec] = "1" -- 2.17.1