* [Buildroot] question about my pevious dhcpcd patch
@ 2013-03-13 18:30 John Stile
2013-03-13 20:46 ` Arnout Vandecappelle
2013-03-14 18:42 ` Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: John Stile @ 2013-03-13 18:30 UTC (permalink / raw)
To: buildroot
I have an update to my patch to add dhcpd.
First issue: I discovered I also need to copy a script directory, but
don't see a good method to copy more than each file one at a time.
Is there a good way to copy all files in dhcpcd-hooks except the
Makefile, into $(TARGET_DIR)/libexec/dhcpcd-hooks?
Right now I'm doing it one at a time like this:
$(INSTALL) -D -m 0755 \
$(@D)/dhcpcd-hooks/01-test \
$(TARGET_DIR)/libexec/dhcpcd-hooks/01-test
$(INSTALL) -D -m 0755 \
$(@D)/dhcpcd-hooks/02-dump \
$(TARGET_DIR)/libexec/dhcpcd-hooks/02-dump
$(INSTALL) -D -m 0755 \
$(@D)/dhcpcd-hooks/20-resolv.conf \
$(TARGET_DIR)/libexec/dhcpcd-hooks/20-resolv.conf
$(INSTALL) -D -m 0755 \
$(@D)/dhcpcd-hooks/29-lookup-hostname \
$(TARGET_DIR)/libexec/dhcpcd-hooks/29-lookup-hostname
...etc...
Second issue: how do I submit an updated patch? The first one was
submitted a few days ago. Do i just do a fresh clone, and then try to
add my stuff and submit via send-email, and pretend the first patch was
never sent?
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] question about my pevious dhcpcd patch
2013-03-13 18:30 [Buildroot] question about my pevious dhcpcd patch John Stile
@ 2013-03-13 20:46 ` Arnout Vandecappelle
2013-03-14 18:42 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2013-03-13 20:46 UTC (permalink / raw)
To: buildroot
On 03/13/13 19:30, John Stile wrote:
> I have an update to my patch to add dhcpd.
>
> First issue: I discovered I also need to copy a script directory, but
> don't see a good method to copy more than each file one at a time.
>
> Is there a good way to copy all files in dhcpcd-hooks except the
> Makefile, into $(TARGET_DIR)/libexec/dhcpcd-hooks?
>
> Right now I'm doing it one at a time like this:
> $(INSTALL) -D -m 0755 \
> $(@D)/dhcpcd-hooks/01-test \
> $(TARGET_DIR)/libexec/dhcpcd-hooks/01-test
> $(INSTALL) -D -m 0755 \
> $(@D)/dhcpcd-hooks/02-dump \
> $(TARGET_DIR)/libexec/dhcpcd-hooks/02-dump
> $(INSTALL) -D -m 0755 \
> $(@D)/dhcpcd-hooks/20-resolv.conf \
> $(TARGET_DIR)/libexec/dhcpcd-hooks/20-resolv.conf
> $(INSTALL) -D -m 0755 \
> $(@D)/dhcpcd-hooks/29-lookup-hostname \
> $(TARGET_DIR)/libexec/dhcpcd-hooks/29-lookup-hostname
Just do
mkdir -p $(TARGET_DIR)/libexec/dhcpcd-hooks
cp $(@D)/dhcpcd-hooks/* $(TARGET_DIR)/libexec/dhcpcd-hooks
If permissions of the original files are wrong, just add a chmod.
By the way, we don't have a /libexec at the moment, but we do have a
/usr/libexec. So I would put it there.
> ...etc...
>
> Second issue: how do I submit an updated patch? The first one was
> submitted a few days ago. Do i just do a fresh clone, and then try to
> add my stuff and submit via send-email, and pretend the first patch was
> never sent?
Assuming your patch is in git, you can make more changes, and then
update your patch with "git commit --amend". Then you can just use git
send-email like before.
If you have made other changes in the mean time, you can commit your
changes and squash them with the patch with 'git rebase -i origin/master'
Also make sure you update your git repository with 'git pull --rebase'
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] question about my pevious dhcpcd patch
2013-03-13 18:30 [Buildroot] question about my pevious dhcpcd patch John Stile
2013-03-13 20:46 ` Arnout Vandecappelle
@ 2013-03-14 18:42 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2013-03-14 18:42 UTC (permalink / raw)
To: buildroot
Dear John Stile,
On Wed, 13 Mar 2013 11:30:49 -0700, John Stile wrote:
> First issue: I discovered I also need to copy a script directory, but
> don't see a good method to copy more than each file one at a time.
>
> Is there a good way to copy all files in dhcpcd-hooks except the
> Makefile, into $(TARGET_DIR)/libexec/dhcpcd-hooks?
>
> Right now I'm doing it one at a time like this:
> $(INSTALL) -D -m 0755 \
> $(@D)/dhcpcd-hooks/01-test \
> $(TARGET_DIR)/libexec/dhcpcd-hooks/01-test
> $(INSTALL) -D -m 0755 \
> $(@D)/dhcpcd-hooks/02-dump \
> $(TARGET_DIR)/libexec/dhcpcd-hooks/02-dump
> $(INSTALL) -D -m 0755 \
> $(@D)/dhcpcd-hooks/20-resolv.conf \
> $(TARGET_DIR)/libexec/dhcpcd-hooks/20-resolv.conf
> $(INSTALL) -D -m 0755 \
> $(@D)/dhcpcd-hooks/29-lookup-hostname \
> $(TARGET_DIR)/libexec/dhcpcd-hooks/29-lookup-hostname
> ...etc...
You should probably use $(MAKE) -C $(@D) install in order to use the
integrated installation procedure of dhcpcd Makefile.
> Second issue: how do I submit an updated patch? The first one was
> submitted a few days ago. Do i just do a fresh clone, and then try to
> add my stuff and submit via send-email, and pretend the first patch was
> never sent?
Since your patch has not yet been merged, you should resent an updated
version.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-14 18:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-13 18:30 [Buildroot] question about my pevious dhcpcd patch John Stile
2013-03-13 20:46 ` Arnout Vandecappelle
2013-03-14 18:42 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox