svn commit: trunk/buildroot/target/linux
Author: ulf
Date: 2008-04-15 10:10:24 -0700 (Tue, 15 Apr 2008) New Revision: 21739
Log:
Reversing bad tftpboot patch resulting in two identical targets
Modified:
trunk/buildroot/target/linux/Makefile.in.advanced
Changeset:
Modified: trunk/buildroot/target/linux/Makefile.in.advanced
===================================================================
buildroot/target/linux/Makefile.in.advanced +4 -4
@@ -230,7 +230,7 @@ endif ifeq ($(BR2_LINUX_COPYTO_TFTPBOOT),y) -LINUX26_TARGETS+=$(BR2_LINUX_COPYTO)/$(LINUX26_KERNEL_NAME) +LINUX26_TARGETS+=/tftpboot/$(LINUX26_KERNEL_NAME) endif ifneq ($(strip $(subst ",,$(BR2_LINUX_COPYTO))),)
@@ -437,9 +437,9 @@ mkdir -p $(TARGET_DIR)/boot cp -dpf .config $(TARGET_DIR)/boot/busybox.config -$(BR2_LINUX_COPYTO)/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL) - mkdir -p $(BR2_LINUX_COPYTO) - cp -dpf $(LINUX26_KERNEL) $(BR2_LINUX_COPYTO)/$(LINUX26_KERNEL_NAME) +/tftpboot/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL) + mkdir -p /tftpboot + cp -dpf $(LINUX26_KERNEL) /tftpboot/$(LINUX26_KERNEL_NAME) $(LINUX_COPYTO)/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL) mkdir -p $(LINUX_COPYTO)
ulf at uclibc.org a ?crit :
Quoted 9 lines
Author: ulf
Date: 2008-04-15 10:10:24 -0700 (Tue, 15 Apr 2008) New Revision: 21739Log:
Reversing bad tftpboot patch resulting in two identical targetsModified:
trunk/buildroot/target/linux/Makefile.in.advanced
Ouch! Can you please explain why did you re-introduce this bug ? The BR2_LINUX_COPYTO variable have absolutely no way to work with a hard coded "/tftpboot/". Just try to copy to /var/lib/tftpboot for example.
Please expose a test case so this "resulting in two identical targets" issue can be resolved the right way. Because reversing this patch is just plain wrong.
Quoted 33 lines
Changeset:
Modified: trunk/buildroot/target/linux/Makefile.in.advanced
===================================================================buildroot/target/linux/Makefile.in.advanced +4
-4@@ -230,7 +230,7 @@ endif ifeq ($(BR2_LINUX_COPYTO_TFTPBOOT),y) -LINUX26_TARGETS+=$(BR2_LINUX_COPYTO)/$(LINUX26_KERNEL_NAME) +LINUX26_TARGETS+=/tftpboot/$(LINUX26_KERNEL_NAME) endif ifneq ($(strip $(subst ",,$(BR2_LINUX_COPYTO))),)@@ -437,9 +437,9 @@ mkdir -p $(TARGET_DIR)/boot cp -dpf .config $(TARGET_DIR)/boot/busybox.config -$(BR2_LINUX_COPYTO)/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL) - mkdir -p $(BR2_LINUX_COPYTO) - cp -dpf $(LINUX26_KERNEL) $(BR2_LINUX_COPYTO)/$(LINUX26_KERNEL_NAME) +/tftpboot/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL) + mkdir -p /tftpboot + cp -dpf $(LINUX26_KERNEL) /tftpboot/$(LINUX26_KERNEL_NAME) $(LINUX_COPYTO)/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL) mkdir -p $(LINUX_COPYTO)_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot
Signature · 1 line
Jean-Christian de Rivaz
----- Original Message -----
From: "Jean-Christian de Rivaz" <[email protected]>
To: <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, April 15, 2008 7:43 PM
Subject: Re: [Buildroot] svn commit: trunk/buildroot/target/linux
Quoted 8 lines
ulf at uclibc.org a ?crit :
Quoted 7 lines
Author: ulf
Date: 2008-04-15 10:10:24 -0700 (Tue, 15 Apr 2008) New Revision: 21739Log:
Reversing bad tftpboot patch resulting in two identical targets
Quoted 6 lines
Quoted 2 lines
Modified:
trunk/buildroot/target/linux/Makefile.in.advancedOuch! Can you please explain why did you re-introduce this bug ? The
BR2_LINUX_COPYTOvariable have absolutely no way to work with a hard coded "/tftpboot/". Just try to copy to/var/lib/tftpbootfor example.
Because it is not a bug.
The Configuration now allows you to
1) Copy to /tftpboot (if BR2_LINUX_COPYTO_TFTPBOOT is set)
2) Copy to $(BR2_LINUX_COPYTO) (if BR2_LINUX_COPYTO is non-empty)
Before the patch you would have (a little simplified)
++++++++++++++++++++++++++++++++++++++++++++++++++++++
LINUX_COPYTO:=BR2_LINUX_COPYTO
$(BR2_LINUX_COPYTO)/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL)
mkdir -p $(BR2_LINUX_COPYTO)
cp -dpf $(LINUX26_KERNEL) $(BR2_LINUX_COPYTO)/$(LINUX26_KERNEL_NAME)$(LINUX_COPYTO)/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL)
mkdir -p $(LINUX_COPYTO)
cp -dpf $(LINUX26_KERNEL) $(LINUX_COPYTO)/$(LINUX26_KERNEL_NAME)--------------------------------------------------------------------------------------------------
Since LINUX_COPYTO is identical to BR2_LINUX_COPYTO you have two IDENTICAL rules, which makes no sense.
If you want to copy to "/var/lib/tftpboot" your .config should contain:
BR2_LINUX_COPYTO_TFTPBOOT=n
BR2_LINUX_COPYTO="/var/lib/tftpboot"
Quoted 30 lines
Please expose a test case so this "resulting in two identical targets" issue can be resolved the right way. Because reversing this patch is just plain wrong.
Quoted 25 lines
Changeset:
Modified: trunk/buildroot/target/linux/Makefile.in.advanced
===================================================================buildroot/target/linux/Makefile.in.advanced 2008-04-15 17:10:24 UTC (rev 21739) renamed from buildroot/target/linux/Makefile.in.advanced 2008-04-15 08:27:24 UTC (rev 21738) +4
-4@@ -230,7 +230,7 @@ endif ifeq ($(BR2_LINUX_COPYTO_TFTPBOOT),y) -LINUX26_TARGETS+=$(BR2_LINUX_COPYTO)/$(LINUX26_KERNEL_NAME) +LINUX26_TARGETS+=/tftpboot/$(LINUX26_KERNEL_NAME) endif ifneq ($(strip $(subst ",,$(BR2_LINUX_COPYTO))),)@@ -437,9 +437,9 @@ mkdir -p $(TARGET_DIR)/boot cp -dpf .config $(TARGET_DIR)/boot/busybox.config -$(BR2_LINUX_COPYTO)/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL) - mkdir -p $(BR2_LINUX_COPYTO) - cp -dpf $(LINUX26_KERNEL) $(BR2_LINUX_COPYTO)/$(LINUX26_KERNEL_NAME) +/tftpboot/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL) + mkdir -p /tftpboot + cp -dpf $(LINUX26_KERNEL) /tftpboot/$(LINUX26_KERNEL_NAME)
Quoted 12 lines
Quoted 8 lines
buildroot/target/linux/Makefile.in.advanced 2008-04-15 17:10:24 UTC (rev 21739) renamed from buildroot/target/linux/Makefile.in.advanced 2008-04-15 08:27:24 UTC (rev 21738) +0
-0$(LINUX_COPYTO)/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL) mkdir -p $(LINUX_COPYTO)_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildrootSignature · 1 line
Jean-Christian de Rivaz
Best Regards
Ulf Samuelsson ulf at atmel.com
Atmel Nordic AB
Mail: Box 2033, 174 02 Sundbyberg, Sweden Visit: Kavalleriv?gen 24, 174 58 Sundbyberg, Sweden
Phone +46 (8) 441 54 22 Fax +46 (8) 441 54 29
GSM +46 (706) 22 44 57
Technical support when I am not available:
AT90 AVR Applications Group: mailto:avr at atmel.com AT91 ARM Applications Group: mailto:at91support at atmel.com
AVR32 Applications Group mailto:avr32 at atmel.com
http://www.avrfreaks.net/; http://avr32linux.org/
http://www.at91.com/ ; http://www.linux4sam.org/
Ulf Samuelsson a ?crit :
Quoted 43 lines
----- Original Message -----
From: "Jean-Christian de Rivaz" <[email protected]>
To: <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, April 15, 2008 7:43 PM
Subject: Re: [Buildroot] svn commit: trunk/buildroot/target/linuxQuoted 5 lines
ulf at uclibc.org a ?crit :
Quoted 4 lines
Author: ulf
Date: 2008-04-15 10:10:24 -0700 (Tue, 15 Apr 2008) New Revision: 21739Quoted 8 lines
Quoted 5 lines
Log:
Reversing bad tftpboot patch resulting in two identical targetsModified:
trunk/buildroot/target/linux/Makefile.in.advancedOuch! Can you please explain why did you re-introduce this bug ? The
BR2_LINUX_COPYTOvariable have absolutely no way to work with a hard coded "/tftpboot/". Just try to copy to/var/lib/tftpbootfor example.Because it is not a bug.
The Configuration now allows you to
1) Copy to /tftpboot (if
BR2_LINUX_COPYTO_TFTPBOOTis set)
2) Copy to $(BR2_LINUX_COPYTO) (ifBR2_LINUX_COPYTOis non-empty)Before the patch you would have (a little simplified)
++++++++++++++++++++++++++++++++++++++++++++++++++++++
LINUX_COPYTO:=BR2_LINUX_COPYTO$(BR2_LINUX_COPYTO)/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL)
mkdir -p $(BR2_LINUX_COPYTO) cp -dpf $(LINUX26_KERNEL) $(BR2_LINUX_COPYTO)/$(LINUX26_KERNEL_NAME)$(LINUX_COPYTO)/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL)
mkdir -p $(LINUX_COPYTO) cp -dpf $(LINUX26_KERNEL) $(LINUX_COPYTO)/$(LINUX26_KERNEL_NAME)--------------------------------------------------------------------------------------------------
Quoted 7 lines
Since
LINUX_COPYTOis identical toBR2_LINUX_COPYTOyou have two IDENTICAL rules, which makes no sense.If you want to copy to "
/var/lib/tftpboot" your .config should contain:BR2_LINUX_COPYTO_TFTPBOOT=n
BR2_LINUX_COPYTO="/var/lib/tftpboot"
Ok, I understand your point now, but I still maintain that hardcoded "/tftpboot" is not a solution for this problem, because on many systems there is no "/tftpboot" in the root filesystem, because the users don't have the right to create it, and because new distributions use /var/lib/tftpboot instead of /tftpboot.
The main problem is that there is two rules that make exactly the same things, so one of them must be simply removed. Either remove the BR2_LINUX_COPYTO or the LINUX_COPYTO, but nerver use hardcoded "/tftpboot".
Signature · 1 line
Jean-Christian de Rivaz
Quoted 51 lines
Ulf Samuelsson a ?crit :
Quoted 48 lines
----- Original Message -----
From: "Jean-Christian de Rivaz" <[email protected]>
To: <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, April 15, 2008 7:43 PM
Subject: Re: [Buildroot] svn commit: trunk/buildroot/target/linuxQuoted 5 lines
ulf at uclibc.org a ?crit :
Quoted 4 lines
Author: ulf
Date: 2008-04-15 10:10:24 -0700 (Tue, 15 Apr 2008) New Revision: 21739Quoted 8 lines
Quoted 5 lines
Log:
Reversing bad tftpboot patch resulting in two identical targetsModified:
trunk/buildroot/target/linux/Makefile.in.advancedOuch! Can you please explain why did you re-introduce this bug ? The
BR2_LINUX_COPYTOvariable have absolutely no way to work with a hard coded "/tftpboot/". Just try to copy to/var/lib/tftpbootfor example.Because it is not a bug.
The Configuration now allows you to
1) Copy to /tftpboot (if
BR2_LINUX_COPYTO_TFTPBOOTis set)
2) Copy to $(BR2_LINUX_COPYTO) (ifBR2_LINUX_COPYTOis non-empty)Before the patch you would have (a little simplified)
++++++++++++++++++++++++++++++++++++++++++++++++++++++
LINUX_COPYTO:=BR2_LINUX_COPYTO$(BR2_LINUX_COPYTO)/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL)
mkdir -p $(BR2_LINUX_COPYTO) cp -dpf $(LINUX26_KERNEL) $(BR2_LINUX_COPYTO)/$(LINUX26_KERNEL_NAME)$(LINUX_COPYTO)/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL)
mkdir -p $(LINUX_COPYTO) cp -dpf $(LINUX26_KERNEL) $(LINUX_COPYTO)/$(LINUX26_KERNEL_NAME)--------------------------------------------------------------------------------------------------
Since
LINUX_COPYTOis identical toBR2_LINUX_COPYTOyou have two IDENTICAL rules, which makes no sense.If you want to copy to "
/var/lib/tftpboot" your .config should contain:
Quoted 9 lines
Quoted 2 lines
BR2_LINUX_COPYTO_TFTPBOOT=n
BR2_LINUX_COPYTO="/var/lib/tftpboot"Ok, I understand your point now, but I still maintain that hardcoded "/tftpboot" is not a solution for this problem, because on many systems there is no "/tftpboot" in the root filesystem, because the users don't have the right to create it, and because new distributions use
/var/lib/tftpbootinstead of /tftpboot.
If you cannot use "/tftpboot" then don't use it!
The purpose of BR2_LINUX_COPYTO is to allow people
to copy to any directory of their choice and this includes "/var/lib/tftpboot".
I have told you how to configure buildroot to do the copy the files to where you want.
Please change your configuration files and get on with other things.
Best Regards
Ulf Samuelsson
Ulf Samuelsson a ?crit :
Quoted 58 lines
Quoted 49 lines
Ulf Samuelsson a ?crit :
Quoted 47 lines
----- Original Message -----
From: "Jean-Christian de Rivaz" <[email protected]>
To: <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, April 15, 2008 7:43 PM
Subject: Re: [Buildroot] svn commit: trunk/buildroot/target/linuxQuoted 5 lines
ulf at uclibc.org a ?crit :
Quoted 4 lines
Author: ulf
Date: 2008-04-15 10:10:24 -0700 (Tue, 15 Apr 2008) New Revision: 21739Quoted 8 lines
Quoted 5 lines
Log:
Reversing bad tftpboot patch resulting in two identical targetsModified:
trunk/buildroot/target/linux/Makefile.in.advancedOuch! Can you please explain why did you re-introduce this bug ? The
BR2_LINUX_COPYTOvariable have absolutely no way to work with a hard coded "/tftpboot/". Just try to copy to/var/lib/tftpbootfor example.Because it is not a bug.
The Configuration now allows you to
1) Copy to /tftpboot (if
BR2_LINUX_COPYTO_TFTPBOOTis set)
2) Copy to $(BR2_LINUX_COPYTO) (ifBR2_LINUX_COPYTOis non-empty)Before the patch you would have (a little simplified)
++++++++++++++++++++++++++++++++++++++++++++++++++++++
LINUX_COPYTO:=BR2_LINUX_COPYTO$(BR2_LINUX_COPYTO)/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL)
mkdir -p $(BR2_LINUX_COPYTO) cp -dpf $(LINUX26_KERNEL) $(BR2_LINUX_COPYTO)/$(LINUX26_KERNEL_NAME)$(LINUX_COPYTO)/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL)
mkdir -p $(LINUX_COPYTO) cp -dpf $(LINUX26_KERNEL) $(LINUX_COPYTO)/$(LINUX26_KERNEL_NAME)--------------------------------------------------------------------------------------------------
Since
LINUX_COPYTOis identical toBR2_LINUX_COPYTOyou have two IDENTICAL rules, which makes no sense.If you want to copy to "
/var/lib/tftpboot" your .config should contain:Quoted 8 lines
Quoted 2 lines
BR2_LINUX_COPYTO_TFTPBOOT=n
BR2_LINUX_COPYTO="/var/lib/tftpboot"Ok, I understand your point now, but I still maintain that hardcoded "/tftpboot" is not a solution for this problem, because on many systems there is no "/tftpboot" in the root filesystem, because the users don't have the right to create it, and because new distributions use
/var/lib/tftpbootinstead of /tftpboot.
Quoted 8 lines
If you cannot use "/tftpboot" then don't use it!
The purpose of
BR2_LINUX_COPYTOis to allow people
to copy to any directory of their choice and this includes "/var/lib/tftpboot".I have told you how to configure buildroot to do the copy the files to where you want.
Please change your configuration files and get on with other things.
Why not simply removing BR2_LINUX_COPYTO_TFTPBOOT and set by default BR2_LINUX_COPYTO="/tftpboot" ? Peoples that wants to copy elsewhere can simply change BR2_LINUX_COPYTO according to there setup.
This will simplify the whole things without losing any possibility.
Signature · 1 line
Jean-Christian de Rivaz
Quoted 68 lines
Ulf Samuelsson a ?crit :
Quoted 65 lines
Quoted 49 lines
Ulf Samuelsson a ?crit :
Quoted 47 lines
----- Original Message -----
From: "Jean-Christian de Rivaz" <[email protected]>
To: <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, April 15, 2008 7:43 PM
Subject: Re: [Buildroot] svn commit: trunk/buildroot/target/linuxQuoted 5 lines
ulf at uclibc.org a ?crit :
Quoted 4 lines
Author: ulf
Date: 2008-04-15 10:10:24 -0700 (Tue, 15 Apr 2008) New Revision: 21739Quoted 8 lines
Quoted 5 lines
Log:
Reversing bad tftpboot patch resulting in two identical targetsModified:
trunk/buildroot/target/linux/Makefile.in.advancedOuch! Can you please explain why did you re-introduce this bug ? The
BR2_LINUX_COPYTOvariable have absolutely no way to work with a hard coded "/tftpboot/". Just try to copy to/var/lib/tftpbootfor example.Because it is not a bug.
The Configuration now allows you to
1) Copy to /tftpboot (if
BR2_LINUX_COPYTO_TFTPBOOTis set)
2) Copy to $(BR2_LINUX_COPYTO) (ifBR2_LINUX_COPYTOis non-empty)Before the patch you would have (a little simplified)
++++++++++++++++++++++++++++++++++++++++++++++++++++++
LINUX_COPYTO:=BR2_LINUX_COPYTO$(BR2_LINUX_COPYTO)/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL)
mkdir -p $(BR2_LINUX_COPYTO) cp -dpf $(LINUX26_KERNEL) $(BR2_LINUX_COPYTO)/$(LINUX26_KERNEL_NAME)$(LINUX_COPYTO)/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL)
mkdir -p $(LINUX_COPYTO) cp -dpf $(LINUX26_KERNEL) $(LINUX_COPYTO)/$(LINUX26_KERNEL_NAME)--------------------------------------------------------------------------------------------------
Since
LINUX_COPYTOis identical toBR2_LINUX_COPYTOyou have two IDENTICAL rules, which makes no sense.If you want to copy to "
/var/lib/tftpboot" your .config should contain:Quoted 8 lines
Quoted 2 lines
BR2_LINUX_COPYTO_TFTPBOOT=n
BR2_LINUX_COPYTO="/var/lib/tftpboot"Ok, I understand your point now, but I still maintain that hardcoded "/tftpboot" is not a solution for this problem, because on many systems there is no "/tftpboot" in the root filesystem, because the users don't have the right to create it, and because new distributions use
/var/lib/tftpbootinstead of /tftpboot.If you cannot use "/tftpboot" then don't use it!
The purpose of
BR2_LINUX_COPYTOis to allow people
to copy to any directory of their choice and this includes "/var/lib/tftpboot".I have told you how to configure buildroot to do the copy the files to where you want.
Quoted 8 lines
Quoted 1 line
Please change your configuration files and get on with other things.
Why not simply removing
BR2_LINUX_COPYTO_TFTPBOOTand set by default BR2_LINUX_COPYTO="/tftpboot" ? Peoples that wants to copy elsewhere can simply changeBR2_LINUX_COPYTOaccording to there setup.This will simplify the whole things without losing any possibility.
The default is no copy for BR2_LINUX_COPYTO and I did not want to force other people to do the copy, and I did not want to type "/tftpboot" to replace a default "" either.
I think it now works as intended.
It is always possible to make a link from /tftpboot to anywhere if you are superuser and if you are not, you can ask any friendly superuser to fix that for you once and for all.
If you do not like the existing defconfigs, you can always create your own defconfig using the "make saveconfig" feature and use that for new svn checkouts.
Best Regards
Ulf Samuelsson