* [Buildroot] [PATCH 1/1] package/xxhash: optimize XXHASH_{TARGETS, INSTALL_TARGETS}
@ 2022-12-29 9:20 Fabrice Fontaine
2022-12-29 9:34 ` Thomas Petazzoni via buildroot
2023-01-02 16:56 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2022-12-29 9:20 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine
Optimize XXHASH_{TARGETS,INSTALL_TARGETS} as suggested by Thomas
Petazzoni in
https://patchwork.ozlabs.org/project/buildroot/patch/20221228221522.280696-1-fontaine.fabrice@gmail.com/
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/xxhash/xxhash.mk | 34 +++++++++++++---------------------
1 file changed, 13 insertions(+), 21 deletions(-)
diff --git a/package/xxhash/xxhash.mk b/package/xxhash/xxhash.mk
index 6932113f14..04bc98690f 100644
--- a/package/xxhash/xxhash.mk
+++ b/package/xxhash/xxhash.mk
@@ -10,28 +10,20 @@ XXHASH_LICENSE = BSD-2-Clause (library), GPL-2.0+ (xxhsum)
XXHASH_LICENSE_FILES = LICENSE cli/COPYING
XXHASH_INSTALL_STAGING = YES
-XXHASH_TARGETS = xxhsum
-XXHASH_INSTALL_TARGETS = install_xxhsum
-
-ifeq ($(BR2_STATIC_LIBS),y)
-XXHASH_TARGETS += libxxhash.a libxxhash.pc
-XXHASH_INSTALL_TARGETS += \
- install_libxxhash.a \
- install_libxxhash.includes \
- install_libxxhash.pc
-else ifeq ($(BR2_SHARED_LIBS),y)
-XXHASH_TARGETS += libxxhash libxxhash.pc
-XXHASH_INSTALL_TARGETS += \
- install_libxxhash \
- install_libxxhash.includes \
- install_libxxhash.pc
-else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
-XXHASH_TARGETS += libxxhash.a libxxhash libxxhash.pc
-XXHASH_INSTALL_TARGETS += \
- install_libxxhash.a \
- install_libxxhash \
+XXHASH_TARGETS = xxhsum libxxhash.pc
+XXHASH_INSTALL_TARGETS = \
install_libxxhash.includes \
- install_libxxhash.pc
+ install_libxxhash.pc \
+ install_xxhsum
+
+ifeq ($(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
+XXHASH_TARGETS += libxxhash.a
+XXHASH_INSTALL_TARGETS += install_libxxhash.a
+endif
+
+ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
+XXHASH_TARGETS += libxxhash
+XXHASH_INSTALL_TARGETS += install_libxxhash
endif
define XXHASH_BUILD_CMDS
--
2.35.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [Buildroot] [PATCH 1/1] package/xxhash: optimize XXHASH_{TARGETS, INSTALL_TARGETS}
2022-12-29 9:20 [Buildroot] [PATCH 1/1] package/xxhash: optimize XXHASH_{TARGETS, INSTALL_TARGETS} Fabrice Fontaine
@ 2022-12-29 9:34 ` Thomas Petazzoni via buildroot
2023-01-02 16:56 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-12-29 9:34 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
On Thu, 29 Dec 2022 10:20:33 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Optimize XXHASH_{TARGETS,INSTALL_TARGETS} as suggested by Thomas
> Petazzoni in
> https://patchwork.ozlabs.org/project/buildroot/patch/20221228221522.280696-1-fontaine.fabrice@gmail.com/
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/xxhash/xxhash.mk | 34 +++++++++++++---------------------
> 1 file changed, 13 insertions(+), 21 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [Buildroot] [PATCH 1/1] package/xxhash: optimize XXHASH_{TARGETS, INSTALL_TARGETS}
2022-12-29 9:20 [Buildroot] [PATCH 1/1] package/xxhash: optimize XXHASH_{TARGETS, INSTALL_TARGETS} Fabrice Fontaine
2022-12-29 9:34 ` Thomas Petazzoni via buildroot
@ 2023-01-02 16:56 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2023-01-02 16:56 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Optimize XXHASH_{TARGETS,INSTALL_TARGETS} as suggested by Thomas
> Petazzoni in
> https://patchwork.ozlabs.org/project/buildroot/patch/20221228221522.280696-1-fontaine.fabrice@gmail.com/
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2022.11.x and 2022.02.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-02 16:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-29 9:20 [Buildroot] [PATCH 1/1] package/xxhash: optimize XXHASH_{TARGETS, INSTALL_TARGETS} Fabrice Fontaine
2022-12-29 9:34 ` Thomas Petazzoni via buildroot
2023-01-02 16:56 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox