Skip to contentSkip to conversation

svn commit: trunk/buildroot/target/device

Buildroot aldot at uclibc.org 5 participants 17 messages Sep 17, 2007 – Sep 21, 2007

lore
Share & tools
lore
#0 lore raw

Author: aldot
Date: 2007-09-17 00:54:52 -0700 (Mon, 17 Sep 2007) New Revision: 19862

Log:
- Atmel mirrors are only of interrest for atmel

Modified:
trunk/buildroot/target/device/Mirrors.in

Changeset:
Modified: trunk/buildroot/target/device/Mirrors.in
===================================================================

buildroot/target/device/Mirrors.in +6 -4
@@ -4,14 +4,16 @@
 	string "Sourceforge mirror site"
 	default "easynews"
 	help
-	  Sourceforge has a system of mirror sites.  Some sites may be closer
-	  to your location, and sometimes mirror sites go down and are no longer
-	  available.  This option allows you to select your preferred Sourceforge
-	  mirror site.
+	  Sourceforge has a system of mirror sites.  Some sites may be
+	  closer to your location, and sometimes mirror sites go down
+	  and are no longer available.  This option allows you to select
+	  your preferred Sourceforge mirror site.
 
 	  The list of mirrors is available here:
 	  http://prdownloads.sourceforge.net/index-sf.html?download
 
+if BR2_avr32
 source	"target/device/Atmel/Mirrors.in"
+endif
 
 endmenu
#1 lore raw
Quoted 24 lines · aldot at uclibc.org

Author: aldot
Date: 2007-09-17 00:54:52 -0700 (Mon, 17 Sep 2007) New Revision: 19862

Log:
- Atmel mirrors are only of interrest for atmel

Modified:
trunk/buildroot/target/device/Mirrors.in

Changeset:
Modified: trunk/buildroot/target/device/Mirrors.in
===================================================================

buildroot/target/device/Mirrors.in +0 -3
@@ -4,14 +4,16 @@
 	string "Sourceforge mirror site"
 	default "easynews"
 	help
-	  Sourceforge has a system of mirror sites.  Some sites may be closer
-	  to your location, and sometimes mirror sites go down and are no longer
-	  available.  This option allows you to select your preferred Sourceforge

buildroot/target/device/Mirrors.in line 15

Quoted 10 lines
buildroot/target/device/Mirrors.in +5 -1
-	  mirror site.
+	  Sourceforge has a system of mirror sites.  Some sites may be
+	  closer to your location, and sometimes mirror sites go down
+	  and are no longer available.  This option allows you to select
+	  your preferred Sourceforge mirror site.
 
 	  The list of mirrors is available here:
 	  http://prdownloads.sourceforge.net/index-sf.html?download
 
+if BR2_avr32

Add a "|| BR2_arm", as this is used for AT91 stuff AFAIK.

Quoted 4 lines
buildroot/target/device/Mirrors.in +1 -0
 source	"target/device/Atmel/Mirrors.in"
+endif
 
 endmenu
Signature · 2 lines
With kind regards,
Hans-Christian Egtvedt, Applications Engineer
#2 lore raw
Quoted 31 lines · Hans-Christian Egtvedt
Quoted 30 lines · aldot at uclibc.org

Author: aldot
Date: 2007-09-17 00:54:52 -0700 (Mon, 17 Sep 2007) New Revision: 19862

Log:
- Atmel mirrors are only of interrest for atmel

Modified:
trunk/buildroot/target/device/Mirrors.in

Changeset:
Modified: trunk/buildroot/target/device/Mirrors.in
===================================================================

buildroot/target/device/Mirrors.in +4 -4
@@ -4,14 +4,16 @@
 	string "Sourceforge mirror site"
 	default "easynews"
 	help
-	  Sourceforge has a system of mirror sites.  Some sites may be closer
-	  to your location, and sometimes mirror sites go down and are no longer
-	  available.  This option allows you to select your preferred Sourceforge
-	  mirror site.
+	  Sourceforge has a system of mirror sites.  Some sites may be
+	  closer to your location, and sometimes mirror sites go down
+	  and are no longer available.  This option allows you to select
+	  your preferred Sourceforge mirror site.
 
Quoted 6 lines

buildroot/target/device/Mirrors.in line 15

Quoted 4 lines
buildroot/target/device/Mirrors.in +1 -0
 	  The list of mirrors is available here:
 	  http://prdownloads.sourceforge.net/index-sf.html?download
 
+if BR2_avr32

Add a "|| BR2_arm", as this is used for AT91 stuff AFAIK.

BR2_arm is inaccurate, BR2_TARGET_ATMEL or something like that, dunno.

Quoted 5 lines
Quoted 5 lines
buildroot/target/device/Mirrors.in +1 -0
 source	"target/device/Atmel/Mirrors.in"
+endif
 
 endmenu
#3 lore raw
In reply to aldot at uclibc.org

m?n 2007-09-17 klockan 00:55 -0700 skrev aldot at uclibc.org:

Quoted 4 lines

Author: aldot
Date: 2007-09-17 00:54:52 -0700 (Mon, 17 Sep 2007) New Revision: 19862

Quoted 8 lines

Log:
- Atmel mirrors are only of interrest for atmel

Modified:
trunk/buildroot/target/device/Mirrors.in

And making it depending on BR2_ATMEL or similar makes it impossible to put package support on that ftp site, so don't create any dependency at all.

Quoted 31 lines

Changeset:
Modified: trunk/buildroot/target/device/Mirrors.in
===================================================================

buildroot/target/device/Mirrors.in +6 -4
@@ -4,14 +4,16 @@
 	string "Sourceforge mirror site"
 	default "easynews"
 	help
-	  Sourceforge has a system of mirror sites.  Some sites may be closer
-	  to your location, and sometimes mirror sites go down and are no longer
-	  available.  This option allows you to select your preferred Sourceforge
-	  mirror site.
+	  Sourceforge has a system of mirror sites.  Some sites may be
+	  closer to your location, and sometimes mirror sites go down
+	  and are no longer available.  This option allows you to select
+	  your preferred Sourceforge mirror site.
 
 	  The list of mirrors is available here:
 	  http://prdownloads.sourceforge.net/index-sf.html?download
 
+if BR2_avr32
 source	"target/device/Atmel/Mirrors.in"
+endif
 
 endmenu

_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot

#4 lore raw
Quoted 9 lines · Ulf Samuelsson

m?n 2007-09-17 klockan 00:55 -0700 skrev aldot at uclibc.org:

Quoted 8 lines

Author: aldot
Date: 2007-09-17 00:54:52 -0700 (Mon, 17 Sep 2007) New Revision: 19862

Log:
- Atmel mirrors are only of interrest for atmel

Quoted 8 lines
Quoted 4 lines

Modified:
trunk/buildroot/target/device/Mirrors.in

And making it depending on BR2_ATMEL or similar makes it impossible to put package support on that ftp site, so don't create any dependency at all.

This can depend on BR2_TARGET_ATMEL or some at91 config symbol. Depending on BR2_arm is wrong since i want to build arm toolchains but use upstream sources, not some vendor supplied tarballs.

If we need to mirror certain packages, we can of course do this (as the buildroot project), but using random vendor's locked-down ftp server for this purpose is not a sensible thing to do, IMO.

#5 lore raw

m?n 2007-09-17 klockan 11:27 +0200 skrev Bernhard Fischer:

Quoted 15 lines · Ulf Samuelsson
Quoted 14 lines

m?n 2007-09-17 klockan 00:55 -0700 skrev aldot at uclibc.org:

Quoted 12 lines

Author: aldot
Date: 2007-09-17 00:54:52 -0700 (Mon, 17 Sep 2007) New Revision: 19862

Log:
- Atmel mirrors are only of interrest for atmel

Modified:
trunk/buildroot/target/device/Mirrors.in

Quoted 8 lines
Quoted 3 lines

And making it depending on BR2_ATMEL or similar makes it impossible to put package support on that ftp site, so don't create any dependency at all.

This can depend on BR2_TARGET_ATMEL or some at91 config symbol. Depending on BR2_arm is wrong since i want to build arm toolchains but use upstream sources, not some vendor supplied tarballs.

You asssume that there is never going to be something on the ftp site which is interesting to x86/ppc etc. users.
That assumption is wrong, so therefore the dependency is wrong

/Ulf

Quoted 3 lines

If we need to mirror certain packages, we can of course do this (as the buildroot project), but using random vendor's locked-down ftp server for this purpose is not a sensible thing to do, IMO.

#6 lore raw
Quoted 20 lines · Ulf Samuelsson

m?n 2007-09-17 klockan 11:27 +0200 skrev Bernhard Fischer:

Quoted 19 lines · Ulf Samuelsson
Quoted 17 lines

m?n 2007-09-17 klockan 00:55 -0700 skrev aldot at uclibc.org:

Quoted 4 lines

Author: aldot
Date: 2007-09-17 00:54:52 -0700 (Mon, 17 Sep 2007) New Revision: 19862

Quoted 8 lines

Log:
- Atmel mirrors are only of interrest for atmel

Modified:
trunk/buildroot/target/device/Mirrors.in

And making it depending on BR2_ATMEL or similar makes it impossible to put package support on that ftp site, so don't create any dependency at all.

Quoted 7 lines
Quoted 4 lines

This can depend on BR2_TARGET_ATMEL or some at91 config symbol. Depending on BR2_arm is wrong since i want to build arm toolchains but use upstream sources, not some vendor supplied tarballs.

You asssume that there is never going to be something on the ftp site which is interesting to x86/ppc etc. users.
That assumption is wrong, so therefore the dependency is wrong

You seem to be assuming that there is or will be something on that ftp site that is interresting. What would that be? I don't miss alot of stuff and if so, I somehow doubt that the missing bits would live on an atmel tfp-server.

I ask you to fix the mirror-selection to reflect that a vendor may provide additional patches on their site for their specific products for a short period of time -- i.e. until the fixes are applied to upstream sources -- but _not_ to pollute the rest.

Thank you.

#7 lore raw

m?n 2007-09-17 klockan 13:10 +0200 skrev Bernhard Fischer:

Quoted 25 lines · Ulf Samuelsson
Quoted 24 lines

m?n 2007-09-17 klockan 11:27 +0200 skrev Bernhard Fischer:

Quoted 23 lines · Ulf Samuelsson
Quoted 9 lines

m?n 2007-09-17 klockan 00:55 -0700 skrev aldot at uclibc.org:

Quoted 8 lines

Author: aldot
Date: 2007-09-17 00:54:52 -0700 (Mon, 17 Sep 2007) New Revision: 19862

Log:
- Atmel mirrors are only of interrest for atmel

Quoted 8 lines
Quoted 4 lines

Modified:
trunk/buildroot/target/device/Mirrors.in

And making it depending on BR2_ATMEL or similar makes it impossible to put package support on that ftp site, so don't create any dependency at all.

This can depend on BR2_TARGET_ATMEL or some at91 config symbol. Depending on BR2_arm is wrong since i want to build arm toolchains but use upstream sources, not some vendor supplied tarballs.

Quoted 6 lines
Quoted 3 lines

You asssume that there is never going to be something on the ftp site which is interesting to x86/ppc etc. users.
That assumption is wrong, so therefore the dependency is wrong

You seem to be assuming that there is or will be something on that ftp site that is interresting. What would that be?

There are a couple of packages, that I plan to add at a later stage.

Quoted 10 lines

I don't miss alot of
stuff and if so, I somehow doubt that the missing bits would live on an atmel tfp-server.

I ask you to fix the mirror-selection to reflect that a vendor may provide additional patches on their site for their specific products for a short period of time -- i.e. until the fixes are applied to upstream sources -- but _not_ to pollute the rest.

Exactly what problem are you trying to resolve?

Quoted 1 line

Thank you.

#8 lore raw
Quoted 26 lines · Ulf Samuelsson

m?n 2007-09-17 klockan 13:10 +0200 skrev Bernhard Fischer:

Quoted 25 lines · Ulf Samuelsson
Quoted 24 lines

m?n 2007-09-17 klockan 11:27 +0200 skrev Bernhard Fischer:

Quoted 23 lines · Ulf Samuelsson
Quoted 9 lines

m?n 2007-09-17 klockan 00:55 -0700 skrev aldot at uclibc.org:

Quoted 8 lines

Author: aldot
Date: 2007-09-17 00:54:52 -0700 (Mon, 17 Sep 2007) New Revision: 19862

Log:
- Atmel mirrors are only of interrest for atmel

Quoted 8 lines
Quoted 4 lines

Modified:
trunk/buildroot/target/device/Mirrors.in

And making it depending on BR2_ATMEL or similar makes it impossible to put package support on that ftp site, so don't create any dependency at all.

This can depend on BR2_TARGET_ATMEL or some at91 config symbol. Depending on BR2_arm is wrong since i want to build arm toolchains but use upstream sources, not some vendor supplied tarballs.

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

You asssume that there is never going to be something on the ftp site which is interesting to x86/ppc etc. users.
That assumption is wrong, so therefore the dependency is wrong

You seem to be assuming that there is or will be something on that ftp site that is interresting. What would that be?

There are a couple of packages, that I plan to add at a later stage.

I will revert the wrong include until then, so you can fix that if it's needed. Whether it is BR2_avr32||BR2_at91 or BR2_TARGET_ATMEL is something that i leave up to you.

Quoted 6 lines
Quoted 6 lines

I don't miss alot of
stuff and if so, I somehow doubt that the missing bits would live on an atmel tfp-server.

Quoted 7 lines
Quoted 5 lines

I ask you to fix the mirror-selection to reflect that a vendor may provide additional patches on their site for their specific products for a short period of time -- i.e. until the fixes are applied to upstream sources -- but _not_ to pollute the rest.

Exactly what problem are you trying to resolve?

There is no point in having any atmel mirror in my .config unless i build for at91 or avr32 and choose to use an atmel toolchain or atmel patches.

#9 lore raw
Quoted 6 lines
Quoted 2 lines

Exactly what problem are you trying to resolve?

There is no point in having any atmel mirror in my .config unless i build for at91 or avr32 and choose to use an atmel toolchain or atmel patches.

if/when it will mirror all the tarballs used by Buildroot it will be useful to everyone.
I am lobbying for this to happen.

/BR
Ulf Samuelsson

#10 lore raw

[Buildroot] local mirror management (bug #572)

Quoted 10 lines · Ulf Samuelsson
Quoted 6 lines
Quoted 2 lines

Exactly what problem are you trying to resolve?

There is no point in having any atmel mirror in my .config unless i build for at91 or avr32 and choose to use an atmel toolchain or atmel patches.

if/when it will mirror all the tarballs used by Buildroot it will be useful to everyone.
I am lobbying for this to happen.

No, this is unacceptable. If you want to do stuff like that, look at the "local mirror" patch in mantis (or the ML archives). See 1).

With the patch mentioned above, you (i.e. the user) is free to setup and use any mirror she likes, be it the
http://buildroot.uclibc.org/downloads/buildroot-sources/
or another, potentially local directory (i.e. nothing you can talk to via http or ftp).

We will not accept to rely on a random vendor's ftp collection, this is conceptually broken since we have no influence on their ftp server and the packages they may choose to have there or not.

1) http://bugs.busybox.net/view.php?id=572
has a rough draft that IIRC needs some cleanup and that should be discussed in it's cleaned up version on this list.

#11 lore raw

[Buildroot] local mirror management (bug #572)

ons 2007-09-19 klockan 10:21 +0200 skrev Bernhard Fischer:

Quoted 21 lines · Ulf Samuelsson
Quoted 10 lines
Quoted 6 lines
Quoted 2 lines

Exactly what problem are you trying to resolve?

There is no point in having any atmel mirror in my .config unless i build for at91 or avr32 and choose to use an atmel toolchain or atmel patches.

if/when it will mirror all the tarballs used by Buildroot it will be useful to everyone.
I am lobbying for this to happen.

No, this is unacceptable. If you want to do stuff like that, look at the "local mirror" patch in mantis (or the ML archives). See 1).

With the patch mentioned above, you (i.e. the user) is free to setup and use any mirror she likes, be it the
http://buildroot.uclibc.org/downloads/buildroot-sources/
or another, potentially local directory (i.e. nothing you can talk to via http or ftp).

Quoted 7 lines

We will not accept to rely on a random vendor's ftp collection, this is conceptually broken since we have no influence on their ftp server and the packages they may choose to have there or not.

1) http://bugs.busybox.net/view.php?id=572
has a rough draft that IIRC needs some cleanup and that should be discussed in it's cleaned up version on this list.

Don't be so negative.
Any patch regarding mirrors will need to maintain a list of mirror locations.

All packages should normally be downloaded from their current location and the mirrors should only be used if the packet is not available at the current location for some reason.

Best Regards
Ulf Samuelsson

#12 lore raw

[Buildroot] local mirror management (bug #572)

Quoted 5 lines · Ulf Samuelsson

ons 2007-09-19 klockan 10:21 +0200 skrev Bernhard Fischer:

Quoted 3 lines

With the patch mentioned above, you (i.e. the user) is free to setup and use any mirror she likes, be it the
http://buildroot.uclibc.org/downloads/buildroot-sources/

I've dropped a couple of "our" package-sources there, fyi.

Quoted 8 lines
Quoted 6 lines

or another, potentially local directory (i.e. nothing you can talk to via http or ftp).

1) http://bugs.busybox.net/view.php?id=572
has a rough draft that IIRC needs some cleanup and that should be discussed in it's cleaned up version on this list.

Don't be so negative.

I'm not negative (just look at the patch to see what i mean).

#13 lore raw

[Buildroot] local mirror management (bug #572)

ons 2007-09-19 klockan 23:20 +0200 skrev Bernhard Fischer:

Quoted 12 lines · Ulf Samuelsson
Quoted 5 lines

ons 2007-09-19 klockan 10:21 +0200 skrev Bernhard Fischer:

Quoted 3 lines

With the patch mentioned above, you (i.e. the user) is free to setup and use any mirror she likes, be it the
http://buildroot.uclibc.org/downloads/buildroot-sources/

I've dropped a couple of "our" package-sources there, fyi.

Quoted 2 lines
Quoted 2 lines

or another, potentially local directory (i.e. nothing you can talk to via http or ftp).

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

1) http://bugs.busybox.net/view.php?id=572
has a rough draft that IIRC needs some cleanup and that should be discussed in it's cleaned up version on this list.

Don't be so negative.

I'm not negative (just look at the patch to see what i mean).

I don't see any conflict in these patches.
It is similar to what I had in mind.

You would define BR2_LOCAL_MIRROR_SITE as $(ATMEL_MIRROR) It is not good to define it as the current value of ATMEL_MIRROR since the site will eventually change.

Best Regards

#14 lore raw

[Buildroot] local mirror management (bug #572)

In reply to Bernhard Fischer
Quoted 8 lines · Bernhard Fischer

"local mirror" patch in mantis (or the ML archives). See 1). With the patch mentioned above, you (i.e. the user) is free to setup and use any mirror she likes, be it the
http://buildroot.uclibc.org/downloads/buildroot-sources/
or another, potentially local directory (i.e. nothing you can talk to via http or ftp).

1) http://bugs.busybox.net/view.php?id=572

I'll bite, this is exactly what I need... I tweaked the patch in that bug and attach my version for comment. I dont know what clean up you had in mind but I'm happy to make further attempts.

Beth
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: local-mirror.patch
Url: http://busybox.net/lists/buildroot/attachments/20070920/fd87a513/attachment.diff

#15 lore raw

[Buildroot] local mirror management (bug #572)

Quoted 21 lines · Elizabeth Oldham
Quoted 7 lines · Bernhard Fischer

"local mirror" patch in mantis (or the ML archives). See 1). With the patch mentioned above, you (i.e. the user) is free to setup and use any mirror she likes, be it the
http://buildroot.uclibc.org/downloads/buildroot-sources/
or another, potentially local directory (i.e. nothing you can talk to via http or ftp).
1) http://bugs.busybox.net/view.php?id=572

I'll bite, this is exactly what I need... I tweaked the patch in that bug and attach my version for comment. I dont know what clean up you had in mind but I'm happy to make further attempts.

Beth

Index: Config.in
===================================================================

Config.in line 677

Quoted 6 lines
Config.in +3 -0
@@ -672,6 +672,39 @@
 	string "Wget command"
 	default "wget --passive-ftp -nd"
 
+config BR2_LOCAL_MIRROR
+	bool "Use a local mirror"
+      	default n

Please use just one leading tab. The help-text is usually like this:
<tab>help
<tab><space><space>description that fits in about 70 columns Same for the majority below.

Quoted 41 lines
Config.in +30 -0
+
+config BR2_LOCAL_MIRROR_STRICT
+	bool "Only download from mirror"
+	default n
+
+config BR2_LOCAL_MIRROR_SITE
+	string "Local mirror site:"
+       	default "http://localhost/"
+       	depends on BR2_LOCAL_MIRROR
+
+config BR2_LOCAL_MIRROR_LOCALHOSTS
+      	string "Local hosts"
+      	default ""
+      	depends on BR2_LOCAL_MIRROR
+      	help
+          Do not change URL of specified hosts. Useful if you maintain
+          your own packages.
+
+config BR2_LOCAL_MIRROR_GEN
+      	bool "Update mirror build directory"
+      	depends on !BR2_LOCAL_MIRROR_STRICT
+      	help
+          Update your mirror build directory with the packages that 
+	  cannot be fetched from the mirror.
+
+config BR2_LOCAL_MIRROR_GENDIR
+	string "mirror build directory"
+      	depends on BR2_LOCAL_MIRROR_GEN
+      	default "$(BASE_DIR)/mirror"
+

config BR2_SVN_CO
string "Subversion (svn) command to download source tree" default "svn co"
Index: package/Makefile.in
===================================================================

Makefile.in +0 -0
@@ -62,6 +62,17 @@

endif
#########################################################################

Makefile.in

Quoted 8 lines
Makefile.in +8 -0
+ifeq ($(BR2_LOCAL_MIRROR),y)
+WGET:=MIRROR_WGET="$(strip $(subst ",, $(BR2_WGET)))" \
+       MIRROR_SITE="$(strip $(subst ",, $(BR2_LOCAL_MIRROR_SITE)))" \
+       MIRROR_LOCALHOSTS="$(strip $(subst ",, $(BR2_LOCAL_MIRROR_LOCALHOSTS)))" \
+       MIRROR_STRICT="$(strip $(subst ",, $(BR2_LOCAL_MIRROR_STRICT)))" \
+       MIRROR_GEN="$(strip $(subst ",, $(BR2_LOCAL_MIRROR_GEN)))" \
+       MIRROR_GENDIR="$(strip $(subst ",, $(BR2_LOCAL_MIRROR_GENDIR)))" \
+       $(BASE_DIR)/misc/mirror.sh

This will break vim's syntax highlighting, unfortunately. It needs #"))
here. Fire up vim and :syntax on

Makefile.in

Quoted 2 lines
Makefile.in +2 -0
+else
+WGET:=$(strip $(subst ",, $(BR2_WGET)))

#"))

Quoted 5 lines

+endif

ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y) TOOL_BUILD_DIR=$(BASE_DIR)/$(TOPDIR_PREFIX)toolchain_build_$(ARCH)$(ARCH_FPU_SUFFIX)$(TOPDIR_SUFFIX)
Index: misc/mirror.sh

Please move that somewhere to toolchain/.

mirror.sh line 1

Quoted 5 lines

===================================================================

mirror.sh +1 -0
@@ -0,0 +1,61 @@
+#!/bin/bash

bash is not acceptable. It has to run on a POSIX shell if it can't be done in make (which is clearly to be preferred).

Quoted 4 lines
mirror.sh +4 -0
+
+IFS=" "
+
+OPTIONS=""

mirror.sh line 15

Quoted 10 lines
mirror.sh +10 -0
+USE_LOCAL=0
+
+for i in "$@"
+do
+  echo $i | grep '://' > /dev/null;
+
+  if [ "$?" = 0 ]
+  then
+    EXT_URL=$i
+    HOST=`echo $i |sed 's+^.*://++' |sed 's+/.*++'`

You'll have to pass SED=$(XSED) down to that script (which shouldn't exist in the first place, if possible) since
a) The host may not have sed installed
b) The host sed may be buggy
c) if one of a) b), we built a proper version for our own use.

mirror.sh line 19

Quoted 4 lines
mirror.sh +4 -0
+    
+    for j in $MIRROR_LOCAL_HOSTS
+    do
+      if [ "$j" = "$HOST" ]

Several test(1) impls will get this wrong if one of them is empty. Prefix that with a char, like [ "x$j" = "x$HOST" ]

mirror.sh line 22

Quoted 3 lines
mirror.sh +3 -0
+      then
+        USE_LOCAL=1;
+      fi

These four lines try to say

	[ "x$j" = "x$HOST" ] && USE_LOCAL=1

mirror.sh line 25

Quoted 3 lines
mirror.sh +3 -0
+    done
+    
+    if [ "$USE_LOCAL" -eq 1 ]

You shall not compare a string to an int

Quoted 4 lines
mirror.sh +4 -0
+    then
+      URL=$i
+    else
+      URL="$MIRROR_SITE/`basename $i`"

mirror.sh line 39

Quoted 10 lines
mirror.sh +10 -0
+    fi
+  else
+    OPTIONS="$OPTIONS $i"
+  fi
+done;
+
+$MIRROR_WGET $OPTIONS $URL
+URL_RES=$?
+
+if [ "$URL_RES" = 0 ]

nah. If you're comparing an int, you're supposed to use the integer comparison funcs.

mirror.sh line 45

Quoted 6 lines
mirror.sh +6 -0
+then
+  exit 0
+fi
+
+# first download failed
+if [ "$USE_LOCAL" = 1 ]

ditto.

mirror.sh line 50

Quoted 5 lines
mirror.sh +5 -0
+then
+  exit 1
+fi
+
+if [ "$MIRROR_STRICT" = "y" ]

may barf with some test(1) impls if the var is empty. See prefixing above

mirror.sh line 57

Quoted 7 lines
mirror.sh +7 -0
+then
+  exit 1;
+fi
+  
+$MIRROR_WGET $OPTIONS $EXT_URL
+
+if [ "$?" = 0 -a "$MIRROR_GEN" = "y" ]

See last two comments.

Quoted 4 lines
mirror.sh +4 -0
+then
+  mkdir -p $MIRROR_GENDIR
+  $MIRROR_WGET $OPTIONS -P $MIRROR_GENDIR/ $EXT_URL
+fi
#16 lore raw
In reply to aldot at uclibc.org

m?n 2007-09-17 klockan 00:55 -0700 skrev aldot at uclibc.org:

Quoted 8 lines

Author: aldot
Date: 2007-09-17 00:54:52 -0700 (Mon, 17 Sep 2007) New Revision: 19862

Log:
- Atmel mirrors are only of interrest for atmel

You just broke AT91 ARM support.
Please revert!

Quoted 35 lines

Modified:
trunk/buildroot/target/device/Mirrors.in

Changeset:
Modified: trunk/buildroot/target/device/Mirrors.in
===================================================================

buildroot/target/device/Mirrors.in +6 -4
@@ -4,14 +4,16 @@
 	string "Sourceforge mirror site"
 	default "easynews"
 	help
-	  Sourceforge has a system of mirror sites.  Some sites may be closer
-	  to your location, and sometimes mirror sites go down and are no longer
-	  available.  This option allows you to select your preferred Sourceforge
-	  mirror site.
+	  Sourceforge has a system of mirror sites.  Some sites may be
+	  closer to your location, and sometimes mirror sites go down
+	  and are no longer available.  This option allows you to select
+	  your preferred Sourceforge mirror site.
 
 	  The list of mirrors is available here:
 	  http://prdownloads.sourceforge.net/index-sf.html?download
 
+if BR2_avr32
 source	"target/device/Atmel/Mirrors.in"
+endif
 
 endmenu

_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot