Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp475070rdb; Tue, 16 Jan 2024 06:20:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHiu3ny7AeUP8hl1+K6RjtcnFr8oQAIzD7CghEPBTTodf8NvJy4YYsSW6H+1vKJhGIWo+ti X-Received: by 2002:a05:6a00:4fc8:b0:6db:319f:ef33 with SMTP id le8-20020a056a004fc800b006db319fef33mr4319241pfb.52.1705414845127; Tue, 16 Jan 2024 06:20:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705414845; cv=none; d=google.com; s=arc-20160816; b=O9SCb2B3OmFk0TXF1/wX0X3DY8NtSGSGG9QdZByiZK+9fQzUns6DSQZlMnejqg1noE r+YnKgdTR++mq4zvTRi9JkCyE3HjWrPlgs1sOqdqOCoQF0/g1m/Tp7PVfoKtgcM0fKgg 6DJ5m9YdgtrZgDgXy2MQrqMkcgDVeHVROjLKJzcYAnT1ae8B7FDlFyl9l8kbHJxLm6P9 HfLTqWjlSuwXOJgJz+JLfLRBU9rSIyDg7nK/sKm7lXk4OTo4i38akesF0E24Xk8IovUq rp1uQ8K75ubwnAeQd0Q13zCcJvCMfzJ6jpeKYj9jswV9tfKmBQvWHMDedoHtWoaTkV4Z InlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=MA+elLFx2w1j80Tmt7+pj4HE77kaeZkACgbDTWTbSIo=; fh=wm3knQjNzlzhSYO3l6/R1dJNTO7aXLaAzT309a/t7Bw=; b=jGjSUISqOCSF8JqUqQdMxZBQoAXVyxeJcBVOiBRY06q7qj3zkTwuyR3HSwpFQtE5Qu /hKHVgltuPmj4yXMgcIJqk10l2jjCSPt+boS2S/Ee+pOQH3dg1A3UUBMuzXokOkk+qQf h+ENiWZF7WJIyVloJuk+SzpAK7F3MAOVNl1Tezs8NcstbJRBz+ZbLUM46QLjYLOghh+Y g73tDsirWmHhqp64WXLkCwuM6RPdUqPIyPs6+MXeCgi4abRWUQYNxRhsFH8+CXXDzCKH +lhwm4GzENkiQhhzw0kacB7LPgMxPDafU+Q+FtLYBXN6HrNwDypWZkCLw2tjVDUwZ3BY fmrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K252JN5p; spf=pass (google.com: domain of linux-bluetooth+bounces-1122-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1122-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id w10-20020a63490a000000b005cdfbb3a766si11178434pga.296.2024.01.16.06.20.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 06:20:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1122-linux.lists.archive=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=@kernel.org header.s=k20201202 header.b=K252JN5p; spf=pass (google.com: domain of linux-bluetooth+bounces-1122-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1122-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 96C8AB2288F for ; Tue, 16 Jan 2024 14:19:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE63E1BF5C; Tue, 16 Jan 2024 14:18:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="K252JN5p" X-Original-To: linux-bluetooth@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2DBC21BDFB for ; Tue, 16 Jan 2024 14:18:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id C7804C43399; Tue, 16 Jan 2024 14:18:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705414737; bh=0Vb7kTdb0A76WHAp/STXf4r8mTrR6YGCiQsMYcyhpGY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=K252JN5pHmW3A2bQowESKprsg9DWLHFas9hyW4dcbQiBXqJi6Nckf5c03O5l+oM2V 8WfX5WL1HhfzllIjc37OFFyJmA1BbXpFqOWcDAPSO3FzpVdPNKvBw8TXanyOe+R6h+ F+X71W7dbkgiNHVw5zdEFduHoKcStiza4dMN3YCjnwGqG1wQqM8fv+gGAtemCIyUXz cbzyg4euBsBa7LlQIjLi5iWy5mMmMiYTqq3eCEiW++TOMAoCdnq5WGwPEkSDrUDrgK PjDI4SYKBfPIk8Qq9toDJHrqQYiFs9a77Y99oqvdDJV8wWFU+a47svP+nnsY0NRH82 idA5I2CdlKybg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B16B9C47DAF; Tue, 16 Jan 2024 14:18:57 +0000 (UTC) From: Emil Velikov via B4 Relay Date: Tue, 16 Jan 2024 14:18:56 +0000 Subject: [PATCH BlueZ 4/8] plugins: convert external sixaxis plugin to builtin Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240116-rm-ext-plugins-v1-4-62990fb07369@gmail.com> References: <20240116-rm-ext-plugins-v1-0-62990fb07369@gmail.com> In-Reply-To: <20240116-rm-ext-plugins-v1-0-62990fb07369@gmail.com> To: linux-bluetooth@vger.kernel.org Cc: Emil Velikov X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1705414735; l=1153; i=emil.l.velikov@gmail.com; s=20230301; h=from:subject:message-id; bh=gF+1Vm3aKqaYd0ZkTF025smVpJMgkegfcG+hjjFJXCw=; b=kUynQFZnYf9MuFjN5dSFlklE/VFaOmgdGXGCWRH1Z4I4pirgmg2Noaf+g0QjP3ytTAm/S5dJz kFqfy1Z5LoAD3O/+OhKY1e2RZIE1SMGdpqrXYCYIOSdmKwCnttfalJO X-Developer-Key: i=emil.l.velikov@gmail.com; a=ed25519; pk=qeUTVTNyI3rcR2CfNNWsloTihgzmtbZo98GdxwZKCkY= X-Endpoint-Received: by B4 Relay for emil.l.velikov@gmail.com/20230301 with auth_id=35 X-Original-From: Emil Velikov Reply-To: From: Emil Velikov Sixaxis plugin is the only external one. It's a tiny 20K binary that distros ship a separate package for. Make it a builtin, which allows distros to drop the separate package, it also enables us to remove support for external modules - both in terms of extra code and hide the internal bluetoothd API. This means that libudev.so is pulled in, which is fine since its ABI has been stable for over a decade. --- Makefile.plugins | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile.plugins b/Makefile.plugins index 5880ed0df..7cf66fd59 100644 --- a/Makefile.plugins +++ b/Makefile.plugins @@ -110,11 +110,9 @@ builtin_modules += battery builtin_sources += profiles/battery/battery.c if SIXAXIS -plugin_LTLIBRARIES += plugins/sixaxis.la -plugins_sixaxis_la_SOURCES = plugins/sixaxis.c -plugins_sixaxis_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version -plugins_sixaxis_la_LIBADD = $(UDEV_LIBS) -plugins_sixaxis_la_CFLAGS = $(AM_CFLAGS) -fvisibility=hidden +builtin_modules += sixaxis +builtin_sources += plugins/sixaxis.c +builtin_ldadd += $(UDEV_LIBS) endif if BAP -- 2.43.0