From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 01 Aug 2023 13:04:59 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qQnBT-001y1f-Ko for lore@lore.pengutronix.de; Tue, 01 Aug 2023 13:04:59 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1qQnBR-0007dq-SA; Tue, 01 Aug 2023 13:04:57 +0200 Received: from mail-yw1-x1135.google.com ([2607:f8b0:4864:20::1135]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qQnB1-0007dh-Bk for ptxdist@pengutronix.de; Tue, 01 Aug 2023 13:04:31 +0200 Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-583c48a9aa1so58209207b3.1 for ; Tue, 01 Aug 2023 04:04:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690887870; x=1691492670; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=a7LXkcpOK8WvRmYnSNRwKJK1ZzwBZTTUyhYpeTitR44=; b=IfQeArtVAw4qJjoJhZ0m/K3fNSpyayyMIEqAvFhbtO0WOeJ1pvQnFJRjCUIh1KsA6u rNsvPP6fRhbobChxTi98ilFa4FuyscI59lw17MtyCq6g1FH6oGSBGQhg/s7kW5uibBxC UEKPazaE5VmuzcoUIa3E4Mcq4YOfVt23mtzOE5kSWaTDVW5T2pSrdiMOXWbZwNkzEQBs NZu8AKzQYwUEl5j4FoKiB44mHLvsFp5oeqlz/nYfWGn5hSS4AHvUCDJb5snBRD9fLPqU ZeENTyAr48kLs0CVcFPTuU3CxQIwbVh1LmZf0I+Y/qttVABEyZl40ZBX2B7GP2olKXVJ kuOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690887870; x=1691492670; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=a7LXkcpOK8WvRmYnSNRwKJK1ZzwBZTTUyhYpeTitR44=; b=FiSjsofifFmwVV1THDRvBLu2xd1S9DORnbquLf4fWGNMqFT0T170H9ynlhKaYWWhr9 QjPClKmry6eg9EW1kO4nPHC86CRxiQBj5QYgFdFf+Q4IQQxuvN+KjWa6JRx5zclTiOez vBHPHH7fQyKGASpVWTdOvKhx/oFEjP1xrwDsFt5iKpSnyBE9ghsqgFUGa0QDH6jHNvn7 730XycxcFG85q0oWo9OnCBQqbfTJOIVRQB2ac9/m2FupdYtJ+CEw7akRCybGP8dqUoHl AG0KV0gltLgzVu/pE79MBdQdwi5JN8qYSutkwA4DuYmLYRVfEc+q/XrSnDoeaOSWSv5l U7pg== X-Gm-Message-State: ABy/qLbRD/EmZZe3+OuK3mi4peFO8wWiLzxB2kL2aq/atmhy4qh3Ez3v GD7BJ/OnlOyCOt4cznSO5orC9q+w4sOr7C6zrg0= X-Google-Smtp-Source: APBJJlFnmpQpY+20LRCMkUNIdCGgF0LP3GQjFoYcxnFRls7pOxYGqu/QP30pY9kOPdQl6BZAdU4CSdBQoj9bYkFWf+M= X-Received: by 2002:a5b:ecc:0:b0:cba:dd41:612f with SMTP id a12-20020a5b0ecc000000b00cbadd41612fmr9035851ybs.9.1690887869788; Tue, 01 Aug 2023 04:04:29 -0700 (PDT) MIME-Version: 1.0 References: <20230717135228.5490-1-bruno.thomsen@gmail.com> In-Reply-To: From: Bruno Thomsen Date: Tue, 1 Aug 2023 13:04:13 +0200 Message-ID: To: Bruno Thomsen , ptxdist@pengutronix.de Content-Type: text/plain; charset="UTF-8" X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.7 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [ptxdist] [PATCH] uhubctl: add missing GCCLIBS_ATOMIC select X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Den fre. 28. jul. 2023 kl. 08.54 skrev Michael Olbrich : > > On Thu, Jul 27, 2023 at 06:42:43PM +0200, Bruno Thomsen wrote: > > Den man. 17. jul. 2023 kl. 15.52 skrev Bruno Thomsen : > > > > > > Without this dependency the following runtime error can be observed: > > > > > > uhubctl: error while loading shared libraries: libatomic.so.1: cannot > > > open shared object file: No such file or directory > > > > Please drop this patch. > > I cannot recreate the issue in an ARM v7a project, only in a ARM v5te project, > > so it must be a local issue. > > It's an architecture issue. libatomic implements primitives that are not > available in hardware. For ARM v5 it's probably related to atomics. > So I won't apply this, because it does not effect the 'major' > architectures. Unfortunately we don't have a way to specify architecture > specific dependencies. > Hi, thanks for the info. We have solved this architecture (hardware generation) issue in a component called octopus with a Kconfig generation choice, ex. 2GEN or 3GEN. The component contains many small systemd services that execute Bash scripts, so it already has many Kconfig selects on various command line tools. As not all services run on all hardware generations, ex. Only 3GEN[1][2] has a TPM chip: select TPM2_TOOLS if RUNTIME && OCTOPUS_3GEN It's one of these services that require uhubctl so now we do: select UHUBCTL if RUNTIME select GCCLIBS_ATOMIC if RUNTIME && OCTOPUS_2GEN /Bruno [1] https://elixir.bootlin.com/linux/latest/source/arch/arm/boot/dts/imx7d-flex-concentrator.dts [2] https://elixir.bootlin.com/barebox/latest/source/arch/arm/dts/imx7d-flex-concentrator-mfg.dts