Go to file
Luca Ceresoli fa711c7e2d pkg-generic: prevent _SITE URLs with a trailing slash
A trailing slash in FOO_SITE is useless, since Buildroot automatically adds
a slash between FOO_SITE and the filename as appropriate.

Moreover it is potentially harmful, which led to introducing a workaround
to strip them:

    commit 1cbffbd015
    Author: Shawn J. Goff <shawn7400@gmail.com>
    Date:   Fri Apr 12 09:40:30 2013 +0000

        eliminate double slashes caused by FOO_SITE ending in a slash

        When a FOO_SITE variable ends in a slash and gets joined with a
        FOO_SOURCE variable like $(FOO_SITE)/$(FOO_SOURCE), the resulting URI
        has a double slash. While double-slashes are fine in unix paths, they
        are reserved in URIs - the part following '//' must be an authority.

So let's ban trailing slashes entirely. They have all been removed in
a 7b0e757fb8, now add a check to error out loudly in case a new one
is added.

Example commands to test this check:

  $ make busybox-dirclean busybox-source
  rm -Rf /home/murray/devel/buildroot/output/build/busybox-1.23.2
  busybox-1.23.2.tar.bz2: OK (md5: 7925683d7dd105aabe9b6b618d48cc73)
  busybox-1.23.2.tar.bz2: OK (sha1: 7f37193cb249f27630e0b2a2c6c9bbb7b1d24c16)
  $
  $ make BUSYBOX_SITE=http://www.busybox.net/downloads/ busybox-dirclean busybox-source
  rm -Rf /home/murray/devel/buildroot/output/build/busybox-1.23.2
  BUSYBOX_SITE (http://www.busybox.net/downloads/) cannot have a trailing slash
  make[1]: *** [/home/murray/devel/buildroot/output/build/busybox-1.23.2/.stamp_downloaded] Error 1
  make: *** [_all] Error 2
  $

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2015-10-04 15:46:29 +01:00
arch arch/arm: add missing arm1136j-s variant 2015-08-24 00:43:12 +02:00
board olimex_a20_olinuxino_lime2: new board 2015-10-03 14:50:47 +01:00
boot grub2: pass target NM, OBJCOPY and STRIP 2015-09-20 14:52:19 +02:00
configs configs: add ARC HS38 VDK virtual boards 2015-10-04 15:39:36 +01:00
docs system: clarify /dev management using devtmpfs + {mdev, eudev} 2015-10-04 11:23:14 +01:00
fs fs: iso9660: change boot menu entry text 2015-08-18 21:42:51 +02:00
linux linux: bump default version to 4.2.3 2015-10-03 23:21:29 +02:00
package pkg-generic: prevent _SITE URLs with a trailing slash 2015-10-04 15:46:29 +01:00
support pkg-perl: refactor perl infrastructure 2015-10-02 20:56:52 +01:00
system system: clarify /dev management using devtmpfs + {mdev, eudev} 2015-10-04 11:23:14 +01:00
toolchain toolchain-external: strip trailing slash from autogenerated FOO_SITE 2015-10-04 15:46:11 +01:00
.defconfig arch: kill avr32 2015-02-14 17:39:50 +01:00
.gitignore update gitignore 2013-05-04 12:41:55 +02:00
CHANGES Update for 2015.08 2015-08-31 23:06:58 +02:00
Config.in blackbox: remove deprecated package 2015-09-13 23:28:42 +02:00
Config.in.legacy zxing-cpp: new package, replacing zxing 2015-10-04 15:11:57 +01:00
COPYING clarify license and fix website license link 2009-05-08 09:29:41 +02:00
Makefile target-finalize: remove extra /usr/libexec/{*.a,*.la} files 2015-09-19 14:59:46 +02:00
Makefile.legacy Makefile.legacy: fix recursive invocation with BUILDROOT_DL_DIR and _CONFIG 2014-02-11 08:14:57 +01:00
README README: mention 'make list-defconfigs' 2015-04-04 15:19:43 +02:00

Buildroot is a simple, efficient and easy-to-use tool to generate embedded
Linux systems through cross-compilation.

The documentation can be found in docs/manual. You can generate a text
document with 'make manual-text' and read output/docs/manual/manual.text.
Online documentation can be found at http://buildroot.org/docs.html

To build and use the buildroot stuff, do the following:

1) run 'make menuconfig'
2) select the target architecture and the packages you wish to compile
3) run 'make'
4) wait while it compiles
5) find the kernel, bootloader, root filesystem, etc. in output/images

You do not need to be root to build or run buildroot.  Have fun!

Buildroot comes with a basic configuration for a number of boards. Run
'make list-defconfigs' to view the list of provided configurations.

Please feed suggestions, bug reports, insults, and bribes back to the
buildroot mailing list: buildroot@buildroot.org
You can also find us on #buildroot on Freenode IRC.