From patchwork Tue Aug 6 06:48:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 170638 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp5278691ile; Mon, 5 Aug 2019 23:49:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMta7efIVGOjkk1T4JJBO8BbIeXfBsYAfpCoX5Aggcxk50NyqHnZnPhFAatMyZaswAJQJS X-Received: by 2002:a17:902:467:: with SMTP id 94mr1630042ple.131.1565074144832; Mon, 05 Aug 2019 23:49:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565074144; cv=none; d=google.com; s=arc-20160816; b=QHuqEqNO8vMxNZJ+VYRuYvoi042ObrK4SH1Au5hfgN741ebZldUGBF3HtiFwFwwdw8 zAhl0tSY6tW0Rk6xfhXsKyGToZMHBqW35wjT+L/5jMADR8gTm5iNmUGF2d2CWNZJKkhI 5lTicviLMTRJ/2O1NubI8e65eyU4g+TcwTglI3ep78j2WJzarMuGBz61LRDIpHTR6cW9 4z3Je9hGCXoKm+dPLAfpWyPxyzEKzatyz+95yILjAU+IE/or4zaq2IGm8NoMDlwlh40/ FIpT0Wyr26/oBv/lBDaLb5wu5Fsbzl+r0L/vH4r67rS3QSJrVzJZRkAMltNLu8LhpOhm bsdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=eJXoV7U2mryi8GdOHPdbvlihA0krENDLnFUeFJjOnp0=; b=bNiybn+38pFVcSzi4D7jPeSzRfoBvWYowc48BKvKSNcPqEkf7TZt5YxtZGj6pXJGGY THUwEIU6rsaxcNGbR+9XnUI+XM4odsGtciZ7nGVoM8uM2CPq8E8v749+fRwb06hewXoJ hCb6SXxJWjYpSr+1P/Z40jk86ASwaC5Gs31xH7CP1VtBQcaftXFaMnGZjLPOeH13KR/g PRXlnoIVi/U/60+6hamqsG7eO4sg+hCFh147Ur4s+2mK9uGdTW5psugVywY6mG2OyFpU URXJBHiG4iNyd28SQpkSH1iDkGIEyqmphotgNNxc40FpdZ9mFueXpeQ0NhLG380sm0KD LedQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Nm35KZW0; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id q15si11027015pls.184.2019.08.05.23.49.04; Mon, 05 Aug 2019 23:49:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Nm35KZW0; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 7E4957F376; Tue, 6 Aug 2019 06:48:57 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by mail.openembedded.org (Postfix) with ESMTP id DD2A37F316 for ; Tue, 6 Aug 2019 06:48:48 +0000 (UTC) Received: by mail-pl1-f195.google.com with SMTP id b3so37482640plr.4 for ; Mon, 05 Aug 2019 23:48:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yTs2b9vV4R4rswWIbAvkR76E6nxWsy0sOCSiSHg5xts=; b=Nm35KZW0hJ4GLkdmw59mvKR8rhXQYVz49sRklKL8rfmR3EVFlOHmGsxWw4tSAnoIak NUdx0x6SWo1hfAzrKrP7xPyp+r+6rRB0GGRqEctIvL+xgb62mv2ODVNxafc4uF71YI+E 2z5TB2HxqU+MYUewXtLsYeZmYun8EQzChH9I03L85QdwVOGnz48mbQuU7XjHCtRayTDs VchEbQRiluKWDV6Qnp0MZC3peqMBbCTobzEBGEjFsZoktqh0C+WN+41TMHlkuZisjQ6F v+Rz13E//Dh+I7TrqakrSZYg9i06DHolXUOM3pMQ3OzDFkh/IRM99V/eja/Yajf3U3qZ MRTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yTs2b9vV4R4rswWIbAvkR76E6nxWsy0sOCSiSHg5xts=; b=lxK+gPlM5lJBHjAMT8zkGo1DcfN9iP+GitbrXLhLm+J/GptjqnPgsjei+fY/Tm5jG+ b9HM8nAJYoicKib4543TOaN08SpFOIwGk7acxJgZiTsc4hyLOQSiYh2zZRxqhJANappD SYyasGxuLPnsLhAFZIhnISzhVjR5h96n5biAHsro1xlG/Fz7S04JPBYKCfVo+1GVe5xu dfoBguyBgj3mU80cYoRPMm577cuheF97dE0UwEQkQZcMNV9IJrl7ElC68HaqocsX6Tml 6QzA4n8rtCfpWLYUwh+UgL6R51r4qs4zBQcDKH9qWpfFRbgKB/0rX4QzeIcM98m8WdUM hN6Q== X-Gm-Message-State: APjAAAVpeTIc3Ev29XVkj8wuarFLq5folHTPaBpgzZMLtV8kd/vaUE94 daOrI95mdPGfuLmKuqQzBG4Q+/6WE5I= X-Received: by 2002:a17:902:4401:: with SMTP id k1mr1634598pld.193.1565074129563; Mon, 05 Aug 2019 23:48:49 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id u23sm89377775pfn.140.2019.08.05.23.48.48 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 05 Aug 2019 23:48:49 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Mon, 5 Aug 2019 23:48:35 -0700 Message-Id: <20190806064835.33856-4-raj.khem@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190806064835.33856-1-raj.khem@gmail.com> References: <20190806064835.33856-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 4/4] kpatch: Pass ARCH from environment X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org If not passed then it computes arch from `uname` and uname will be wrong on cross compiles when target != host Signed-off-by: Khem Raj --- meta-oe/recipes-kernel/kpatch/kpatch.inc | 1 + 1 file changed, 1 insertion(+) -- 2.22.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-kernel/kpatch/kpatch.inc b/meta-oe/recipes-kernel/kpatch/kpatch.inc index cd819f31f8..e6c4f64ce1 100644 --- a/meta-oe/recipes-kernel/kpatch/kpatch.inc +++ b/meta-oe/recipes-kernel/kpatch/kpatch.inc @@ -16,6 +16,7 @@ EXTRA_OEMAKE = " \ MANDIR=${D}${mandir}/man1 \ SYSTEMDDIR=${D}${systemd_system_unitdir} \ DESTDIR=${D} \ + ARCH=${TARGET_ARCH} \ BUILDMOD=no \ CC='${CC}' \ "