From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/4] TCL: change BR2_PACKAGE_TCL_SHLIB_ONLY option
Date: Thu, 20 Jun 2013 17:59:30 +0200 [thread overview]
Message-ID: <20130620175930.21f6ef3f@skate> (raw)
In-Reply-To: <1371743610-17810-2-git-send-email-richard.genoud@gmail.com>
Dear Richard Genoud,
On Thu, 20 Jun 2013 17:53:27 +0200, Richard Genoud wrote:
> @@ -26,7 +26,7 @@ define TCL_POST_INSTALL_CLEANUP
> -if [ "$(BR2_PACKAGE_TCL_DEL_ENCODINGS)" = "y" ]; then \
> rm -Rf $(TARGET_DIR)/usr/lib/tcl$(TCL_VERSION_MAJOR)/encoding/*; \
> fi
> - -if [ "$(BR2_PACKAGE_TCL_SHLIB_ONLY)" = "y" ]; then \
> + -if [ "$(BR2_PACKAGE_TCL_TCLSH)" != "y" ]; then \
> rm -f $(TARGET_DIR)/usr/bin/tclsh$(TCL_VERSION_MAJOR); \
> fi
> endef
Whenever possible, I think we prefer to use make conditional rather
than shell conditions. So something like:
ifeq ($(BR2_PACKAGE_TCL_DEL_ENCODINGS),y)
define TCL_REMOVE_ENCODINGS
rm -rf $(TARGET_DIR)/usr/lib/tcl$(TCL_VERSION_MAJOR)/encoding/*
endef
TCL_POST_INSTALL_TARGET_HOOKS += TCL_REMOVE_ENCODINGS
endif
ifeq ($(BR2_PACKAGE_TCL_TCLSH),y)
define TCL_SYMLINK_TCLSH
ln -s tclsh$(TCL_VERSION_MAJOR) $(TARGET_DIR)/usr/bin/tclsh
endef
TCL_POST_INSTALL_TARGET_HOOKS += TCL_SYMLINK_TCLSH
else
define TCL_REMOVE_TCLSH
rm -f $(TARGET_DIR)/usr/bin/tclsh$(TCL_VERSION_MAJOR)
endef
TCL_POST_INSTALL_TARGET_HOOKS += TCL_REMOVE_TCLSH
endif
And while you're at it, you could also remove the useless (and
incorrect) :
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libtcl8.4.so
Thanks!
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2013-06-20 15:59 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-20 15:53 [Buildroot] [PATCH 0/4] make usb_modeswitch work with udev Richard Genoud
2013-06-20 15:53 ` [Buildroot] [PATCH 1/4] TCL: change BR2_PACKAGE_TCL_SHLIB_ONLY option Richard Genoud
2013-06-20 15:59 ` Thomas Petazzoni [this message]
2013-06-20 15:53 ` [Buildroot] [PATCH 2/4] tcl: add a tclsh symlink Richard Genoud
2013-06-20 15:53 ` [Buildroot] [PATCH 3/4] usb_modeswitch: bump to 1.2.6 Richard Genoud
2013-06-20 16:00 ` Thomas Petazzoni
2013-06-20 17:02 ` Richard Genoud
2013-06-20 17:04 ` Gustavo Zacarias
2013-06-20 15:53 ` [Buildroot] [PATCH 4/4] usb_modeswitch_data: bump to 20130610 Richard Genoud
2013-06-21 11:56 ` [Buildroot] [PATCH 0/6] tcl rework (was: make usb_modeswitch work with udev) richard.genoud at gmail.com
[not found] ` <1371815822-29453-1-git-send-email-y>
2013-06-21 11:56 ` [Buildroot] [PATCH 1/6] tcl: change BR2_PACKAGE_TCL_SHLIB_ONLY option richard.genoud at gmail.com
2013-06-22 9:15 ` Patrick Ziegler
2013-06-24 7:49 ` Richard Genoud
2013-06-21 11:56 ` [Buildroot] [PATCH 2/6] tcl: use make conditions richard.genoud at gmail.com
2013-06-21 11:56 ` [Buildroot] [PATCH 3/6] tcl: remove strip command richard.genoud at gmail.com
2013-06-21 11:57 ` [Buildroot] [PATCH 4/6] tcl: install the libtcl into staging richard.genoud at gmail.com
2013-06-21 11:57 ` [Buildroot] [PATCH 5/6] tcl: add a tclsh symlink richard.genoud at gmail.com
2013-06-21 11:57 ` [Buildroot] [PATCH 6/6] tcl: make the libtcl writable in order to be stripped richard.genoud at gmail.com
2013-06-24 8:40 ` [Buildroot] [PATCHv3 0/5] tcl rework (was: make usb_modeswitch work with udev) Richard Genoud
2013-06-24 8:40 ` [Buildroot] [PATCHv3 1/5] tcl: use make conditions Richard Genoud
2013-06-24 8:40 ` [Buildroot] [PATCHv3 2/5] tcl: remove strip command Richard Genoud
2013-06-24 8:40 ` [Buildroot] [PATCHv3 3/5] tcl: install the libtcl into staging Richard Genoud
2013-06-24 8:40 ` [Buildroot] [PATCHv3 4/5] tcl: add a tclsh symlink Richard Genoud
2013-06-24 8:40 ` [Buildroot] [PATCHv3 5/5] tcl: make the libtcl writable in order to be stripped Richard Genoud
2013-07-28 14:29 ` [Buildroot] [PATCHv3 0/5] tcl rework (was: make usb_modeswitch work with udev) Thomas Petazzoni
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=20130620175930.21f6ef3f@skate \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.