Message ID | 20240216174227.409400-13-gregory.clement@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-69094-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp693330dyb; Fri, 16 Feb 2024 10:12:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUwReh9R3PXQSrQo61NiILIcM9To6pXwbGAiCM8Zb269o/PL51oGYvtEDrE2ZfZNeR3iF5DOieCt+8RaWiEOmmd0d6KBA== X-Google-Smtp-Source: AGHT+IFQgf/qr9K/nR37ZG3wIZNIPflIHZt2CK9P20V76jKvdOmFG5nDOJ5MYiQuQSYuIUc7QPjD X-Received: by 2002:a05:6e02:1b0a:b0:363:81a2:2915 with SMTP id i10-20020a056e021b0a00b0036381a22915mr7160983ilv.19.1708107121338; Fri, 16 Feb 2024 10:12:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708107121; cv=pass; d=google.com; s=arc-20160816; b=WvFIrHeKRKUWAVpa9rU2RH9utqTZfBtyiB+6t6nwOP+RF/uyt6KHT7IjCMT5bf7sVo ZpkNdzS4HxB2tJKsZKVZPvF0hSX1RatLT6zf66oTxGVMXr0rnJnDgb+u/Qak5CR5fq7w OeWHfAXwIHYoyrAmUEv8YybWPiI2M/vcDMKI9acc/P04tqnxkmqOhiqx9ogOrYlXTi6q OF+51cUc6gLjsjp2krdy/Pw3YlwfIt6IavJTsUDmYoWYX4pPRCZ/8Y2GL2QauVY2y/cO 7GGRzT+koPNtgbmWbz9W5GlLg5hS3qg/81ZWukKGEXTF5MxPNWV15/vtRVGDJBPj+DUT Ut7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=bQ4JZ6IQLu/PlyZzbHme0fXEJFmS6Qd3821XRXAYit4=; fh=jshYI2NwtEb4RFDet1CibhjijWOL1JdxV9n387woDuM=; b=QRJZ6jbLU7FXN6Fi/yUVUw+42kvq5e4RIvfpUK/FooEDIohNeSX4LHFn6PkFoqu+t0 GAN7vJdORJI0D5ti7OdI7x7GjJj18YLvMgJpLnAaGKj8DGkAanFG+hY+e70pIW/obxFt OhXhzPjbx8BeOzW4LQmCUUd8jxXUVywyffJBcbA4wt8YbcdBLGYHQDvxtA+DeknEmxDC Y54jAamdV5K882RoM4xWfuRqlp8g8plxUaIjwaolxPggCo/6RPfNPSQg6cDmxAZ8Xlyb e9KFKWWDJgfkkFKhP4cvLq/CSbGgxIuwh+No4shn5Sk3RMdH5hVg/C+nISCtAEZTKDiF MX8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Bnt1BzpK; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-69094-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69094-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ch3-20020a056a0208c300b005dbec91be93si221292pgb.595.2024.02.16.10.12.00 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 10:12:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69094-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Bnt1BzpK; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-69094-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69094-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3A62BB25FE1 for <ouuuleilei@gmail.com>; Fri, 16 Feb 2024 17:45:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7252A13957E; Fri, 16 Feb 2024 17:42:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Bnt1BzpK" Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 949751353E2; Fri, 16 Feb 2024 17:42:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708105365; cv=none; b=mvyG3Q7GLv554GhLXSTdYHpqZHLv4QGaspUtQ4WjhbHclR1bxdcrjRwrwSNRHDTD3VNR2nzfVsoURx1ABWwTSPKJvRlabxooqy12jyS3Knapp/Ao4iYgHUPWt3iK107RQrs95ixuSf9xy/LlFgx3Bzsr5ibYw7fXbw/WM329tdg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708105365; c=relaxed/simple; bh=1MQtowLsqNnUAtF7k2m7ABSUA8raDS+7g0jCaM4jd/8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IVt2H8RspuLD2Qy4MtJ9AulB8QWgNHlXn0vl0gs1b6j05oxN7Brhqu0LH1c/X9Fu+yWp/uHuOw3I9ZUYO6YWlKydJlL0B7105j6NbpScjBaYcmndt1tpXVBwIilu3qUJsEEw0vj1PiHMCozEoFyruYO/BbWeKUaKHwtE2AHdlOY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=Bnt1BzpK; arc=none smtp.client-ip=217.70.183.193 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 536F2240002; Fri, 16 Feb 2024 17:42:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708105361; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bQ4JZ6IQLu/PlyZzbHme0fXEJFmS6Qd3821XRXAYit4=; b=Bnt1BzpKaZvhFgM9qnJiViQlFu22FurjerkDxdon4W6SuFwXs25VRhtTK+JbP2FpppOjkB IZnKtBB9Dk2VvtGLig+xQpu9ZlLClxOaRX25I32URFCJZxaFex23GS/P1PmVn79w5IhHUI 67JUsglDUIQ54lqCF/csfOkXBv3lwnsfUX0smiJCL8r2MW5/Sn6mwjpdY0MHQK1lTg/PWI n6Avq63EWLfnZ5hqvBpTKZYe8J3iKW9pkIVw8ROsNgaAVW8YzDdzoe0nRIgox3glBBPenp hxnqdql32MsE+g1ukbD1EKabFVR2bwR90hqVLJmW+m6zJemr56dGS8ofjBGKxA== From: Gregory CLEMENT <gregory.clement@bootlin.com> To: Paul Burton <paulburton@kernel.org>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, linux-mips@vger.kernel.org, Jiaxun Yang <jiaxun.yang@flygoat.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Vladimir Kondratiev <vladimir.kondratiev@mobileye.com>, Tawfik Bayouk <tawfik.bayouk@mobileye.com>, Alexandre Belloni <alexandre.belloni@bootlin.com>, =?utf-8?q?Th=C3=A9o_Lebr?= =?utf-8?q?un?= <theo.lebrun@bootlin.com>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Gregory CLEMENT <gregory.clement@bootlin.com> Subject: [PATCH v8 12/14] MIPS: Share generic kernel code with other architecture Date: Fri, 16 Feb 2024 18:42:21 +0100 Message-ID: <20240216174227.409400-13-gregory.clement@bootlin.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240216174227.409400-1-gregory.clement@bootlin.com> References: <20240216174227.409400-1-gregory.clement@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: gregory.clement@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791080133184025927 X-GMAIL-MSGID: 1791080133184025927 |
Series |
Add support for the Mobileye EyeQ5 SoC
|
|
Commit Message
Gregory CLEMENT
Feb. 16, 2024, 5:42 p.m. UTC
Some architectures might seek to utilize a significant portion of the generic kernel code while maintaining independence from the generic kernel due to specific peculiarities. This patch allows for the reuse of core code, preventing unnecessary duplication. Suggested-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com> --- arch/mips/Kbuild | 1 + arch/mips/Kconfig | 3 +++ arch/mips/generic/Makefile | 6 +++--- 3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/arch/mips/Kbuild b/arch/mips/Kbuild index e2d623621a00e..e901bf554483b 100644 --- a/arch/mips/Kbuild +++ b/arch/mips/Kbuild @@ -11,6 +11,7 @@ obj- := $(platform-y) # mips object files # The object files are linked as core-y files would be linked +obj-y += generic/ obj-y += kernel/ obj-y += mm/ obj-y += net/ diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 797ae590ebdba..5549d26448941 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -109,6 +109,9 @@ config MIPS_FIXUP_BIGPHYS_ADDR config MIPS_GENERIC bool +config MACH_GENERIC_CORE + bool + config MACH_INGENIC bool select SYS_SUPPORTS_32BIT_KERNEL diff --git a/arch/mips/generic/Makefile b/arch/mips/generic/Makefile index e37a59bae0a62..56011d738441f 100644 --- a/arch/mips/generic/Makefile +++ b/arch/mips/generic/Makefile @@ -4,9 +4,9 @@ # Author: Paul Burton <paul.burton@mips.com> # -obj-y += init.o -obj-y += irq.o -obj-y += proc.o +obj-$(CONFIG_MACH_GENERIC_CORE) += init.o +obj-$(CONFIG_MACH_GENERIC_CORE) += irq.o +obj-$(CONFIG_MACH_GENERIC_CORE) += proc.o obj-$(CONFIG_YAMON_DT_SHIM) += yamon-dt.o obj-$(CONFIG_LEGACY_BOARD_SEAD3) += board-sead3.o