From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 03/51] package/dtc: add option to install programs
Date: Thu, 29 Nov 2012 16:00:02 +0100 [thread overview]
Message-ID: <50B77872.80005@mind.be> (raw)
In-Reply-To: <1354146890-27380-4-git-send-email-yann.morin.1998@free.fr>
On 29/11/12 00:54, Yann E. MORIN wrote:
> By default, we only install the libfdt library.
>
> As suggested by Arnout, add an option that also
> installs the few dtc programs.
>
> Cc: Arnout Vandecappelle<arnout@mind.be>
> Signed-off-by: "Yann E. MORIN"<yann.morin.1998@free.fr>
[snip]
> +# libfdt_install is our own install rule added by our patch
> +DTC_BUILD_RULE=$(if $(BR2_PACKAGE_DTC_BINARY),,libfdt)
> +DTC_INSTALL_RULE=$(if $(BR2_PACKAGE_DTC_BINARY),install,libfdt_install)
> +
I (and I think Peter as well) prefer the more verbose
ifeq ($(BR2_PACKAGE_DTC_BINARY),y)
DTC_INSTALL_RULE = install
else
DTC_BUILD_RULE = libfdt
DTC_INSTALL_RULE = libfdt_install
endif
I would also call it _TARGET instead of _RULE.
> define DTC_BUILD_CMDS
> $(TARGET_CONFIGURE_OPTS) \
> CFLAGS="$(TARGET_CFLAGS)" \
> - $(MAKE) -C $(@D) PREFIX=/usr libfdt
> + $(MAKE) -C $(@D) PREFIX=/usr $(DTC_BUILD_RULE)
> endef
>
> -# libfdt_install is our own install rule added by our patch
> +# For staging, only the library is needed
> define DTC_INSTALL_STAGING_CMDS
> $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) PREFIX=/usr libfdt_install
> endef
>
> define DTC_INSTALL_TARGET_CMDS
> - $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) PREFIX=/usr libfdt_install
> + $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) PREFIX=/usr $(DTC_INSTALL_RULE)
> endef
I would prefer the same rule for staging and target install:
- it doesn't hurt to have the executable in staging;
- it's easier to read if it's the same;
- when we finally get around to creating $(make-package), the default install
commands will be
$(MAKE) -C $(@D) DESTDIR=... $($(PKG)_INSTALL_TARGET)
(where _INSTALL_TARGET is the same for target and staging and defaults to
'install')
Regards,
Arnout
>
> define DTC_CLEAN_CMDS
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
next prev parent reply other threads:[~2012-11-29 15:00 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-28 23:53 [Buildroot] [PATCH for-next 0/51 v3] Add QEMU for runing on the target Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 01/51] package/cURL: fix static link whith openSSL Yann E. MORIN
2012-12-03 7:21 ` Peter Korsgaard
2012-11-28 23:54 ` [Buildroot] [PATCH 02/51] package/dtc: new package Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 03/51] package/dtc: add option to install programs Yann E. MORIN
2012-11-29 8:40 ` Thomas Petazzoni
2012-12-03 18:10 ` Yann E. MORIN
2012-11-29 15:00 ` Arnout Vandecappelle [this message]
2012-11-30 16:38 ` Yann E. MORIN
2012-12-04 21:28 ` Arnout Vandecappelle
2012-12-04 22:10 ` Yann E. MORIN
2012-12-05 6:30 ` Arnout Vandecappelle
2012-11-28 23:54 ` [Buildroot] [PATCH 04/51] package/vde2: new package Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 05/51] package/libiscsi: " Yann E. MORIN
2012-11-29 8:39 ` Thomas Petazzoni
2012-12-03 18:11 ` Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 06/51] package/usbredir: " Yann E. MORIN
2012-11-29 8:42 ` Thomas Petazzoni
2012-11-29 8:50 ` [Buildroot] Buildroot and ClassPath Alain Mouflet
2012-11-29 13:10 ` Thomas Petazzoni
2012-11-30 16:48 ` [Buildroot] [PATCH 06/51] package/usbredir: new package Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 07/51] package/celt051: " Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 08/51] package/python-pyparsing: " Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 09/51] package/spice-protocol: " Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 10/51] package/cegui06: " Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 11/51] package/slirp: " Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 12/51] package/spice: " Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 13/51] package/spice: enable client Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 14/51] package/spice: enable GUI Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 15/51] package/spice: enable slirp support Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 16/51] package/libseccomp: new package Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 17/51] package/keyutils: " Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 18/51] package/pmake: add host pmake Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 19/51] package/libbsd: new package Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 20/51] package/libedit2: " Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 21/51] package/ceph: " Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 22/51] package/qemu: add license information Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 23/51] package/qemu: bump version Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 24/51] package/qemu: fix host-qemu variable names Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 25/51] package/qemu: build for the target (i386 or x86_64 only) Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 26/51] package/qemu: add basic target selection Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 27/51] package/qemu: add fine-grained " Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 28/51] package/qemu: add SDL frontends Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 29/51] package/qemu: add option to enable/disable the VNC frontend Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 30/51] package/qemu: add VNC jpeg and png compression Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 31/51] package/qemu: add VNC TLS-encryption Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 32/51] package/qemu: add option to not install blobs Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 33/51] package/qemu: add option to remove unwanted keymaps Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 34/51] package/qemu: add uuid support Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 35/51] package/qemu: add support for capabilities Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 36/51] package/qemu: add attr/xattr option Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 37/51] package/qemu: add support for virtfs Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 38/51] package/qemu: add support for cURL Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 39/51] package/qemu: enable use of the curses frontend Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 40/51] package/qemu: add BlueZ connectivity Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 41/51] package/qemu: add AIO support Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 42/51] package/qemu: add support for FDT Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 43/51] package/qemu: add support for VDE switches Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 44/51] package/qemu: add iSCSI support Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 45/51] package/qemu: add support for USB redirection Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 46/51] package/qemu: add support for Spice Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 47/51] package/qemu: enable sound Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 48/51] package/qemu: add support for libseccomp Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 49/51] package/qemu: option to build the docs Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 50/51] package/qemu: move sub-options into a sub-menu Yann E. MORIN
2012-11-28 23:54 ` [Buildroot] [PATCH 51/51] package/qemu: enable a static build Yann E. MORIN
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=50B77872.80005@mind.be \
--to=arnout@mind.be \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox