[riot-notifications] [RIOT-OS/RIOT] Makefile.include: Fix BUILDRELPATH when RIOTPROJECT is CURDIR [backport 2018.10] (#10313)

José Alamos notifications at github.com
Fri Nov 2 13:14:28 CET 2018


Test pass. Without PR:
```archlinux% RIOTBASE=~/Development/RIOT BUILD_IN_DOCKER=1 make
Launching build container using image "riot/riotbuild:latest".
docker run --rm -t -u "$(id -u)" \
    -v '/home/jialamos/Development/RIOT:/data/riotbuild/riotbase' \
    -v '/home/jialamos/Development/RIOT/cpu:/data/riotbuild/riotcpu' \
    -v '/home/jialamos/Development/RIOT/boards:/data/riotbuild/riotboard' \
    -v '/home/jialamos/Development/RIOT/makefiles:/data/riotbuild/riotmake' \
    -v '/tmp/hello-world:/data/riotbuild/riotproject' \
    -v /etc/localtime:/etc/localtime:ro \
    -e 'RIOTBASE=/data/riotbuild/riotbase' \
    -e 'CCACHE_BASEDIR=/data/riotbuild/riotbase' \
    -e 'RIOTCPU=/data/riotbuild/riotcpu' \
    -e 'RIOTBOARD=/data/riotbuild/riotboard' \
    -e 'RIOTMAKE=/data/riotbuild/riotmake' \
    -e 'RIOTPROJECT=/data/riotbuild/riotproject' \
    -v /home/jialamos/.gitcache:/data/riotbuild/gitcache -e GIT_CACHE_DIR=/data/riotbuild/gitcache \
     \
    -w '/data/riotbuild/riotproject//tmp/hello-world/' \
    'riot/riotbuild:latest' make  
make: *** No targets specified and no makefile found.  Stop.
make: *** [/home/jialamos/Development/RIOT/makefiles/docker.inc.mk:101: ..in-docker-container] Error 2
```
With PR:
```
Launching build container using image "riot/riotbuild:latest".
docker run --rm -t -u "$(id -u)" \
    -v '/home/jialamos/Development/RIOT:/data/riotbuild/riotbase' \
    -v '/home/jialamos/Development/RIOT/cpu:/data/riotbuild/riotcpu' \
    -v '/home/jialamos/Development/RIOT/boards:/data/riotbuild/riotboard' \
    -v '/home/jialamos/Development/RIOT/makefiles:/data/riotbuild/riotmake' \
    -v '/tmp/hello-world:/data/riotbuild/riotproject' \
    -v /etc/localtime:/etc/localtime:ro \
    -e 'RIOTBASE=/data/riotbuild/riotbase' \
    -e 'CCACHE_BASEDIR=/data/riotbuild/riotbase' \
    -e 'RIOTCPU=/data/riotbuild/riotcpu' \
    -e 'RIOTBOARD=/data/riotbuild/riotboard' \
    -e 'RIOTMAKE=/data/riotbuild/riotmake' \
    -e 'RIOTPROJECT=/data/riotbuild/riotproject' \
    -v /home/jialamos/.gitcache:/data/riotbuild/gitcache -e GIT_CACHE_DIR=/data/riotbuild/gitcache \
     \
    -w '/data/riotbuild/riotproject/' \
    'riot/riotbuild:latest' make  
Building application "hello-world" for "native" with MCU "native".

"make" -C /data/riotbuild/riotbase/core
"make" -C /data/riotbuild/riotbase/drivers
"make" -C /data/riotbuild/riotbase/drivers/periph_common
"make" -C /data/riotbuild/riotbase/sys
"make" -C /data/riotbuild/riotbase/sys/auto_init
"make" -C /data/riotbuild/riotboard/native
"make" -C /data/riotbuild/riotboard/native/drivers
"make" -C /data/riotbuild/riotcpu/native
"make" -C /data/riotbuild/riotcpu/native/periph
"make" -C /data/riotbuild/riotcpu/native/vfs
   text    data     bss     dec     hex filename
  20669     372   47684   68725   10c75 /data/riotbuild/riotproject/bin/native/hello-world.elf
archlinux% 
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10313#issuecomment-435359529
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20181102/ab127e64/attachment-0001.html>


More information about the notifications mailing list