From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 03 Jan 2024 20:24:20 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rL6qj-002TOT-0e for lore@lore.pengutronix.de; Wed, 03 Jan 2024 20:24:20 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1rL6qi-0005WV-8m; Wed, 03 Jan 2024 20:24:20 +0100 Received: from mail-vi1eur05on2088.outbound.protection.outlook.com ([40.107.21.88] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rL6qQ-0005WM-6o for ptxdist@pengutronix.de; Wed, 03 Jan 2024 20:24:03 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZZc0FPsvW7YS7iYTmODYbgbWUj1gKPKyQ3jZkVGVtvlNcePR5Xzuj3M77X1PNtcyzF47ewWAwdHwA6ctsY/wop/vgl2GmGbmw92pIyENR/4RVc2r2rEw8r1hhFn7DzryqnNFfoXEgvarFbjYJZLqNgBN+PqhvM/TgisHVIDEo71N9s9h3Vsx2JiHsRZ7PnPWjwANxzWac6Pc78I5Vt75fthxgyby8RLx9ooYtBV7Y2pakhqtpiK9DiaXB+2Br9e87I/xZD/5p4V4qMWcAOW78TAj+3F2DiXrmu3lb134dBQ8sv48aXxvtY8Qn+Mnrp1BHEAbw9n8hfpX1QnpNNgVdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FrIZpTlBMZBPmAoUFvye03XHbVaz0UftAZo+4YpYXl0=; b=cw7QNxgj3/vC3/6rs0+rTyNiFZk12qpFRZIXxxkFuTdf2YARdZbep0CP5rnoNWoeL/0ZE5MG6VXvNVkoINwgM5fHtX3o1oQNmUjaBGj4uhXdXEwRmf+XR2lnzQ/7vozIrRQiB0DwVcPWyq0uOryC+uL5wMsE0wfMlj8wwgzela/LUVu/lcPfKj0vVGfgMuerAyYeoCpVi5ZR283AuDUs4Z5ftg1KhhU4as4Z0gLDYXy7k/p8ripTdQk7Gs9pqcHiXGxO2bEv3iGVc/oxnYs+ipWtwcavDAIjusSiZAjdqlgYE1EYwNHNNBU81fQvWADmXen5NiL/GZ+zUNRmNU04gg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=t2data.com; dmarc=pass action=none header.from=t2data.com; dkim=pass header.d=t2data.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=t2datacom.onmicrosoft.com; s=selector1-t2datacom-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FrIZpTlBMZBPmAoUFvye03XHbVaz0UftAZo+4YpYXl0=; b=O1Fa53fgNvvoK6KpPIbSN7YCaD7CWRVN601wc8LCAi6v1B90e6rfEA0u9anROyHGWil8c1TbNR7ykP5VC1VBe9ay8h7/9GqoRlM9OkjqSczy/ghlfs8C0SPW0kLwSsS7vd9Y93KAsLbzzRBPzbRqmI9y1iGVgo78a3ZU5xwpGa8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=t2data.com; Received: from DB9P251MB0618.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:334::22) by DU0P251MB0573.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:328::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.12; Wed, 3 Jan 2024 19:23:58 +0000 Received: from DB9P251MB0618.EURP251.PROD.OUTLOOK.COM ([fe80::4aef:7398:a753:3fe8]) by DB9P251MB0618.EURP251.PROD.OUTLOOK.COM ([fe80::4aef:7398:a753:3fe8%4]) with mapi id 15.20.7159.013; Wed, 3 Jan 2024 19:23:58 +0000 From: Christian Melki To: ptxdist@pengutronix.de Date: Wed, 3 Jan 2024 20:23:52 +0100 Message-Id: <20240103192352.3447044-1-christian.melki@t2data.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: GV3P280CA0081.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:a::21) To DB9P251MB0618.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:334::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9P251MB0618:EE_|DU0P251MB0573:EE_ X-MS-Office365-Filtering-Correlation-Id: cd682f57-13e1-4e6d-5cec-08dc0c9188d1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RYbBePIWPXC8anH2yK96hI/eJ0lSEkJBCUyA8rmlQhC9HZqgLdELIovCcWP58c0u80g8ETIciFQAV6xoHWn/9HSZwu9wzx7GU4obDtGROuE+j4cD2yJnrOtTa7cB2VoH1gTN0GLjwFGETCQNdS1RsWo+QAEQinxvCjcGAIKznEtNlm3Saw6nb0Tz+EttT4NlcY4/7dnebaM9lMGdxHpTmP0/XE5ggnWDDfpMSkwcifLL1AFOs+AuC1rMXP02M3hADNvOxibgUsp/zpWA92A2adoRm9eCIZjFpsiyQN1UFuM1Oa5uua+9uiKu5q8eFnFIw6Kxi94cnI+accfWk9QODLOZTe4tPlYQut7rbS1GLxXU03EFJwzKP6phG7LEDVnXicXuLH01E8o0vjP0SYsOfz93BtzkjO9iGTxGHetkRBabx6oxSVSDpDjK3WqBpzfR/Y5W6dHvXrDEFjnzxtNOo+BxbWGZy4ggJrT5WGoqa7QFxFZABdkqjMA2W3lHTkvEXi5kaIfeEUikN6ZQBAj5WWQRZf5E8gTnkCkFunlGglOLMBwt1pjeqvQOp1CD3IKNYPn14ZFEo96qSUcV+rRV6MrFPzqFvPqFUeRae+xpOpJoBdnqG9+eMU9fe/Ao8xsJugQpV9AK6vRoLB2ExyuRFw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9P251MB0618.EURP251.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230031)(136003)(376002)(396003)(39830400003)(346002)(366004)(230922051799003)(230273577357003)(230173577357003)(186009)(451199024)(1800799012)(64100799003)(41300700001)(1076003)(2616005)(38100700002)(83380400001)(8936002)(8676002)(316002)(2906002)(5660300002)(966005)(478600001)(26005)(44832011)(66946007)(66476007)(6486002)(52116002)(6666004)(66556008)(6512007)(6506007)(6916009)(86362001)(38350700005)(36756003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?TsICybc7IlYDD6vG97eq0cCf472zDO5SxMydkRgfZyySAAbrXnYUefUYnu5C?= =?us-ascii?Q?zHa1vFbRbIQIuySKthPkoLPx1FoY/9d6yK5Lm54DcQ5c9edzJrNdXyqMmJ8E?= =?us-ascii?Q?8wAjRWgayx2etacdjQKIAGlQQJzojjSjHYzfWhCj+eI8rxNVuVQCeAp0DV6w?= =?us-ascii?Q?qYFBv/Zs+PoZFk+KNAk86hWFzerbBjxe6KPM5neKNZtehSZuG425+F+1Is87?= =?us-ascii?Q?8fkfpXzigvMy289K5Q7KyajB4JU/1W9p6gJv7c/pWBAe6wnpYXZBQ1062jom?= =?us-ascii?Q?eFsGTlUV1ALBXP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g/?= =?us-ascii?Q?knKDBSDZcsSauxdL0+vqKNYiGRaQIBh3vByx6P0CbrgdK9qKhqYWpxkYjBE9?= =?us-ascii?Q?d0wrUSuhikFIDln09BSX+/p4BiWncaPCeWM+qRhY1hIGMpepIOhaziG49Qb7?= =?us-ascii?Q?sh+AmcMZka6xvP3GTnToFnzUXLCvK65PejY08Zx6WMjtJnAJFoMhhgHqAm3G?= =?us-ascii?Q?6tU0cDlEF/R/7Y5HgUj9C7XLQ6vhDzb8SMQhYg+CCge3lbYyJMXh6xrzUyWg?= =?us-ascii?Q?i+4Ab7ZCknYKaY+jpstEoWJV/vZLWQ7HXFpC43AtTjqmMu3rFvIv2Gaaw6LU?= =?us-ascii?Q?lQKjvID4Vk3LDCzF9Y1I3SyNG+rxknv+Prq+1tdXVdC3L33+kFqbDPJuet8e?= =?us-ascii?Q?Dwot83W8jiKOL2/2hKffSBFyw2hKt0uwcYFZdSvASSvEjTGJw1dakQmaRWdU?= =?us-ascii?Q?5w=3D=3D?= X-OriginatorOrg: t2data.com X-MS-Exchange-CrossTenant-Network-Message-Id: cd682f57-13e1-4e6d-5cec-08dc0c9188d1 X-MS-Exchange-CrossTenant-AuthSource: DB9P251MB0618.EURP251.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2024 19:23:58.6035 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 27928da5-aacd-4ba1-9566-c748a6863e6c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: y8Av8qvguM6JkckNyITt1SsxSHICH3o5AAP69tjnYzncyJ/QpD85Z9YiM7x48GK+LC/e+7fYG8Sfhn3mc18Z+++kOLdzQ6EN4SQoNwiIP6M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0P251MB0573 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH] libfdt: New package. 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.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Add the device-tree-compiler source as libfdt. I guess the package could have been named dtc as a target variant with libfdt, but I don't know of any uses of the dtc on target environments. So the only use I can think of is libfdt. I think the name is more accurate towards usage, but it isn't as symmetrical as the typical host-* and normal variants. The use of libfdt is separate from the host-dtc usage too, so whatever version you'd use for external device trees are probably not the same as target lifdt. There you'd typically want the latest version. This work is prepping for qemu 8.2.0+, as it requires libfdt as a separate library. It has stopped providing one internally. Signed-off-by: Christian Melki --- rules/libfdt.in | 9 +++++++ rules/libfdt.make | 69 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 rules/libfdt.in create mode 100644 rules/libfdt.make diff --git a/rules/libfdt.in b/rules/libfdt.in new file mode 100644 index 000000000..3e30062e9 --- /dev/null +++ b/rules/libfdt.in @@ -0,0 +1,9 @@ +## SECTION=system_libraries + +menuconfig LIBFDT + tristate + prompt "libfdt " + help + libfdt is the flattend device tree library. + It's technically a part of the device tree compiler code, + but for target uses, libfdt is sometimes required. \ No newline at end of file diff --git a/rules/libfdt.make b/rules/libfdt.make new file mode 100644 index 000000000..a7f5cc566 --- /dev/null +++ b/rules/libfdt.make @@ -0,0 +1,69 @@ +# -*-makefile-*- +# +# Copyright (C) 2023 Christian Melki +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LIBFDT) += libfdt + +# +# Paths and names +# +LIBFDT_VERSION := 1.7.0 +LIBFDT_MD5 := f8b4469ad89f4b882091895ec60dde6b +LIBFDT := dtc-$(LIBFDT_VERSION) +LIBFDT_SUFFIX := tar.gz +LIBFDT_URL := https://git.kernel.org/pub/scm/utils/dtc/dtc.git/snapshot/$(LIBFDT).$(LIBFDT_SUFFIX) +LIBFDT_SOURCE := $(SRCDIR)/$(LIBFDT).$(LIBFDT_SUFFIX) +LIBFDT_DIR := $(BUILDDIR)/$(LIBFDT) +LIBFDT_LICENSE := BSD-2-Clause OR GPL-2.0 +LIBFDT_LICENSE_FILES := \ + file://README.license;md5=a1eb22e37f09df5b5511b8a278992d0e \ + file://GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ + file://BSD-2-Clause;md5=5d6306d1b08f8df623178dfd81880927 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +LIBFDT_CONF_TOOL := NO + +LIBFDT_MAKE_ENV := \ + $(CROSS_ENV) + +LIBFDT_MAKE_OPT := \ + PREFIX=/usr \ + NO_PYTHON=1 \ + NO_VALGRIND=1 \ + NO_YAML=1 + +LIBFDT_INSTALL_OPT := \ + $(LIBFDT_MAKE_OPT) \ + install-includes \ + install-lib + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libfdt.targetinstall: + @$(call targetinfo) + + @$(call install_init, libfdt) + @$(call install_fixup, libfdt,PRIORITY,optional) + @$(call install_fixup, libfdt,SECTION,base) + @$(call install_fixup, libfdt,AUTHOR,"Christian Melki ") + @$(call install_fixup, libfdt,DESCRIPTION,missing) + + @$(call install_lib, libfdt, 0, 0, 0644, libfdt-$(LIBFDT_VERSION)) + + @$(call install_finish, libfdt) + + @$(call touch) + +# vim: syntax=make -- 2.34.1