From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-co1nam11on2129.outbound.protection.outlook.com ([40.107.220.129] helo=NAM11-CO1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kb0VQ-0007bm-3H for barebox@lists.infradead.org; Fri, 06 Nov 2020 12:06:15 +0000 From: "Barbier, Renaud" Date: Fri, 6 Nov 2020 12:06:08 +0000 Message-ID: References: <20201102131343.eez2qi4pxq56gfo6@pengutronix.de> In-Reply-To: <20201102131343.eez2qi4pxq56gfo6@pengutronix.de> Content-Language: en-US MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: RE: bareboxenv-target To: Roland Hieber Cc: "barebox@lists.infradead.org" > > > > > > It looks like sysroot is missing as when I add to scripts/Makefile: > > ifdef SDKTARGETSYSROOT > > userccflags += --sysroot=$(SDKTARGETSYSROOT) > > endif > > > > It builds. > > > > Not much came out from search on google but one thread that refers to > this problem when building with Yocto. In barebox.inc of the Yocto recipe, I replaced export TARGETCFLAGS="${TARGET_LDFLAGS}${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" with export userccflags="${TARGET_LDFLAGS}${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" It builds. Would that be the way to pass sysroot to scripts/Makefile? Cheers, Renaud _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox