Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v4] New package: linux-firmware
Date: Thu, 26 Jan 2012 18:02:04 +0100	[thread overview]
Message-ID: <20120126180204.5900134e@skate> (raw)
In-Reply-To: <87bopq30ii.fsf@macbook.be.48ers.dk>

Le Thu, 26 Jan 2012 17:13:25 +0100,
Peter Korsgaard <jacmet@sunsite.dk> a ?crit :

>  yegorslists> +define LINUX_FIRMWARE_INSTALL_TARGET_CMDS
>  yegorslists> +	mkdir -p $(TARGET_DIR)/lib/firmware
>  yegorslists> +	for i in $(LINUX_FIRMWARE_FILES_y); do \
>  yegorslists> +		cp -af $(@D)/$$i
>  yegorslists> $(TARGET_DIR)/lib/firmware/$$i; \
>  yegorslists> +	done
> 
> That won't work as cp doesn't create the destination directories -
> install -D is also not really good as that doesn't handle symlinks,
> so I think the best approach is to use tar.

What about:

	mkdir -p $(dirname $(TARGET_DIR)/lib/firmware/$$i)
 	cp -af $(@D)/$$i $(TARGET_DIR)/lib/firmware/$$i

 ?

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2012-01-26 17:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-26 15:13 [Buildroot] [PATCH v4] New package: linux-firmware yegorslists at googlemail.com
2012-01-26 15:16 ` Yegor Yefremov
2012-01-26 15:23   ` Peter Korsgaard
2012-01-26 15:33     ` Gustavo Zacarias
2012-01-26 15:41       ` Yegor Yefremov
2012-01-26 16:13 ` Peter Korsgaard
2012-01-26 17:02   ` Thomas Petazzoni [this message]
2012-01-26 19:15     ` Peter Korsgaard
2012-01-26 18:58 ` Peter Korsgaard
2012-01-26 20:05   ` Yegor Yefremov
2012-01-26 20:49     ` Michael S. Zick

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=20120126180204.5900134e@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox