From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Wed, 3 Dec 2014 23:39:39 +0100 Subject: [Buildroot] [PATCH 2/2] rp-pppoe: install helper scripts In-Reply-To: <20141203233832.4499c590@free-electrons.com> References: <1417562463-26561-1-git-send-email-bluemrp9@gmail.com> <1417562463-26561-2-git-send-email-bluemrp9@gmail.com> <20141203232625.0ce7b9a5@free-electrons.com> <87tx1cwejb.fsf@dell.be.48ers.dk> <20141203233832.4499c590@free-electrons.com> Message-ID: <20141203233939.1b8a856a@free-electrons.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Dear Thomas Petazzoni, On Wed, 3 Dec 2014 23:38:32 +0100, Thomas Petazzoni wrote: > Dear Peter Korsgaard, > > On Wed, 03 Dec 2014 23:32:08 +0100, Peter Korsgaard wrote: > > >> @@ -23,6 +25,9 @@ define RP_PPPOE_INSTALL_TARGET_CMDS > > >> for ff in $(RP_PPPOE_TARGET_FILES); do \ > > >> $(INSTALL) -m 0755 $(@D)/src/$$ff $(TARGET_DIR)/usr/sbin/$$ff || exit 1; \ > > >> done > > >> + for ff in $(RP_PPPOE_TARGET_SCRIPTS); do \ > > >> + $(INSTALL) -m 0755 $(@D)/scripts/$$ff $(TARGET_DIR)/usr/sbin/$$ff || exit 1; \ > > >> + done > > > > > Both variables do the same thing. > > > > No, they copy from two different subdirs? > > Gaah, my bad, I overlooked that. Indeed, both variables are needed > then. So the patch looks OK to me. > > Sorry for the noise :/ On a second thought, we could do: RP_PPPOE_TARGET_FILES = src/foo src/bar scripts/baz scripts/bleh and then do: for ff in $(RP_PPPOE_TARGET_FILES); do \ $(INSTALL) -m 0755 $(@D)/$$ff $(TARGET_DIR)/usr/sbin/$$ff || exit 1; \ done Not sure it matters much, though. Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com