mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Lars Alex Pedersen <lapeddk@gmail.com>
Subject: Re: [ptxdist] [APPLIED] spdlog: New package
Date: Tue, 16 Sep 2025 21:44:39 +0200	[thread overview]
Message-ID: <20250916194439.567914-1-m.olbrich@pengutronix.de> (raw)
In-Reply-To: <20250908083537.250822-1-lapeddk@gmail.com>

Thanks, applied as 377cbd8680fe919d176fd674c5d73539c307fa55.

Michael

[sent from post-receive hook]

On Tue, 16 Sep 2025 21:44:39 +0200, Lars Alex Pedersen <lapeddk@gmail.com> wrote:
> Fast C++ logging library.
> 
> Configured to use fmt as external dependency, otherwise the rest of the
> options is leaved default.
> 
> Signed-off-by: Lars Alex Pedersen <lapeddk@gmail.com>
> Message-Id: <20250908083537.250822-1-lapeddk@gmail.com>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/spdlog.in b/rules/spdlog.in
> new file mode 100644
> index 000000000000..0ee8ca144717
> --- /dev/null
> +++ b/rules/spdlog.in
> @@ -0,0 +1,9 @@
> +## SECTION=system_libraries
> +
> +config SPDLOG
> +	tristate
> +	select HOST_CMAKE
> +	select FMT
> +	prompt "spdlog"
> +	help
> +	  Fast C++ logging library
> diff --git a/rules/spdlog.make b/rules/spdlog.make
> new file mode 100644
> index 000000000000..ce452515d52c
> --- /dev/null
> +++ b/rules/spdlog.make
> @@ -0,0 +1,87 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2025 by Lars Pedersen <lapeddk@gmail.com>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_SPDLOG) += spdlog
> +
> +#
> +# Paths and names
> +#
> +SPDLOG_VERSION		:= 1.15.3
> +SPDLOG_MD5		:= fffda902bb4a04ce814ddd5328d95e8a
> +SPDLOG			:= spdlog-$(SPDLOG_VERSION)
> +SPDLOG_SUFFIX		:= tar.gz
> +SPDLOG_URL		:= https://github.com/gabime/spdlog/archive/refs/tags/v$(SPDLOG_VERSION).$(SPDLOG_SUFFIX)
> +SPDLOG_SOURCE		:= $(SRCDIR)/$(SPDLOG).$(SPDLOG_SUFFIX)
> +SPDLOG_DIR		:= $(BUILDDIR)/$(SPDLOG)
> +SPDLOG_LICENSE		:= MIT
> +SPDLOG_LICENSE_FILES	:= file://LICENSE;md5=9573510928429ad0cbe5ba4de77546e9
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# cmake
> +#
> +SPDLOG_CONF_TOOL	:= cmake
> +SPDLOG_CONF_OPT	:=  \
> +	$(CROSS_CMAKE_USR) \
> +	-DSPDLOG_BUILD_ALL:BOOL=OFF \
> +	-DSPDLOG_BUILD_BENCH:BOOL=OFF \
> +	-DSPDLOG_BUILD_EXAMPLE:BOOL=OFF \
> +	-DSPDLOG_BUILD_EXAMPLE_HO:BOOL=OFF \
> +	-DSPDLOG_BUILD_PIC:BOOL=ON \
> +	-DSPDLOG_BUILD_SHARED:BOOL=ON \
> +	-DSPDLOG_BUILD_TESTS:BOOL=OFF \
> +	-DSPDLOG_BUILD_TESTS_HO:BOOL=OFF \
> +	-DSPDLOG_BUILD_WARNINGS:BOOL=OFF \
> +	-DSPDLOG_CLOCK_COARSE:BOOL=OFF \
> +	-DSPDLOG_DISABLE_DEFAULT_LOGGER:BOOL=OFF \
> +	-DSPDLOG_ENABLE_PCH:BOOL=OFF \
> +	-DSPDLOG_FMT_EXTERNAL:BOOL=ON \
> +	-DSPDLOG_FMT_EXTERNAL_HO:BOOL=OFF \
> +	-DSPDLOG_FWRITE_UNLOCKED:BOOL=ON \
> +	-DSPDLOG_INSTALL:BOOL=ON \
> +	-DSPDLOG_NO_ATOMIC_LEVELS:BOOL=OFF \
> +	-DSPDLOG_NO_EXCEPTIONS:BOOL=OFF \
> +	-DSPDLOG_NO_THREAD_ID:BOOL=OFF \
> +	-DSPDLOG_NO_TLS:BOOL=OFF \
> +	-DSPDLOG_PREVENT_CHILD_FD:BOOL=OFF \
> +	-DSPDLOG_SANITIZE_ADDRESS:BOOL=OFF \
> +	-DSPDLOG_SANITIZE_THREAD:BOOL=OFF \
> +	-DSPDLOG_SYSTEM_INCLUDES:BOOL=OFF \
> +	-DSPDLOG_TIDY:BOOL=OFF \
> +	-DSPDLOG_USE_STD_FORMAT:BOOL=OFF \
> +	-DSPDLOG_WCHAR_CONSOLE:BOOL=OFF \
> +	-DSPDLOG_WCHAR_FILENAMES:BOOL=OFF \
> +	-DSPDLOG_WCHAR_SUPPORT:BOOL=OFF
> +
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/spdlog.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, spdlog)
> +	@$(call install_fixup, spdlog,PRIORITY,optional)
> +	@$(call install_fixup, spdlog,SECTION,base)
> +	@$(call install_fixup, spdlog,AUTHOR,"Lars Pedersen <lapeddk@gmail.com>")
> +	@$(call install_fixup, spdlog,DESCRIPTION,missing)
> +
> +	@$(call install_lib, spdlog, 0, 0, 0644, libspdlog)
> +
> +	@$(call install_finish, spdlog)
> +
> +	@$(call touch)
> +
> +# vim: ft=make



      reply	other threads:[~2025-09-16 19:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-08  8:35 [ptxdist] [PATCH] " Lars Alex Pedersen
2025-09-16 19:44 ` Michael Olbrich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250916194439.567914-1-m.olbrich@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=lapeddk@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox